First Time - ClassNotFoundException

28 views
Skip to first unread message

msappler

unread,
May 29, 2010, 1:56:36 PM5/29/10
to counterclockwise-users
Hi
I just moved my clojure project to counterclockwise.
Before I just used counterclockwise as an editor but now I want to use
the features like debug and integrated repl.

But I can not fix this problem:
ClassNotFoundException -

I added slick.jar as you can see in the screenshot.

http://www.cip.ifi.lmu.de/~sappler/classnotfound.JPG

Laurent PETIT

unread,
May 30, 2010, 3:01:48 AM5/30/10
to clojured...@googlegroups.com
2010/5/29 msappler <msap...@web.de>


Hello,

Weird, first time I see a problem like this.
Oh wait. You added the slick.jar lib as a project lib after having created a REPL for the first time ? Then maybe it's just that's it's in your project's classpath, but not in your REPL associated launch configuration classpath (maybe) ?

Try this:
  * close any running REPL
  * Project > Clean
  * Run > Run configuration > [locate the clojure launch configuration corresponding to your project] > Delete (red cross)
  * Try again


msappler

unread,
May 31, 2010, 5:24:16 AM5/31/10
to counterclockwise-users
Thank you now it works.

But I have another problem now:

My Game-loop runs on one thread which blocks the repl in/out so in
order to use the repl while the game is running I started the game-
loop in another thread.

like this
(.start (Thread. #(.start container)))

Always worked on my standalone command-line-repl - startup looked like
this:

Clojure 1.1.0
Mon May 31 11:20:26 CEST 2010 INFO:Slick Build #237
Mon May 31 11:20:26 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:20:26 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:20:26 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
Mon May 31 11:20:27 CEST 2010 INFO:Starting display 800x600
Mon May 31 11:20:27 CEST 2010 INFO:Use Java PNG Loader = true
Mon May 31 11:20:27 CEST 2010 INFO:Controllers not available
Initialising animation data/player/stand/ stand
Mon May 31 11:20:28 CEST 2010 INFO:Initialising sounds..
Mon May 31 11:20:28 CEST 2010 INFO:- Sound works
Mon May 31 11:20:28 CEST 2010 INFO:- 64 OpenAL source available
Mon May 31 11:20:28 CEST 2010 INFO:- Sounds source generated
Initialising animation data/player/running/ mov
Initialising animation data/player/casting/ cast
Initialising animation data/player/die/ l
succeeded spawns: 542
ibxm alpha 45 (c)2006 mum...@gmail.com
user=>


But in counterclockwise it the new thread is not updated anymore it
seems. The game does load only partially and then when I type in some
things in the repl the new thread is updating and loading the game.
This happends at 2-3 evaluations.

So it starts like this, the new thread loading only partially - not
doing anything on the new thread it seems

Clojure 1.1.0
Mon May 31 11:22:15 CEST 2010 INFO:Slick Build #237
Mon May 31 11:22:15 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:22:15 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:22:15 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
1:1 user=> #<Namespace game.game>
1:2 game.game=>

Then I evaluate some numbers and the game loads (stopping completely
in between)

Clojure 1.1.0
Mon May 31 11:22:15 CEST 2010 INFO:Slick Build #237
Mon May 31 11:22:15 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:22:15 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:22:15 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
1:1 user=> #<Namespace game.game>
1:2 game.game=> 1
1
1:3 game.game=> 2
2
1:4 game.game=> Mon May 31 11:22:50 CEST 2010 INFO:Starting display
800x600
Mon May 31 11:22:50 CEST 2010 INFO:Use Java PNG Loader = true
Mon May 31 11:22:50 CEST 2010 INFO:Controllers not available
Initialising animation data/player/stand/ stand
Mon May 31 11:22:51 CEST 2010 INFO:Initialising sounds..
3
3
1:5 game.game=> 4
4
1:6 game.game=> Mon May 31 11:23:36 CEST 2010 INFO:- Sound works
Mon May 31 11:23:36 CEST 2010 INFO:- 64 OpenAL source available
Mon May 31 11:23:36 CEST 2010 INFO:- Sounds source generated
Initialising animation data/player/running/ mov
Initialising animation data/player/casting/ cast
Initialising animation data/player/die/ l
5
5
1:7 game.game=> succeeded spawns: 595
ibxm alpha 45 (c)2006 mum...@gmail.com

Then the game is fully loaded and running - but it takes 5 times
refreshing? the repl with some manual input.
Reply all
Reply to author
Forward
0 new messages