problems installing in eclipse

Hello.
I’ve installed LWJGL as instructed and that flashing test window works fine. I have some problems getting it to work in eclipse 3.1. First I add new LWJGL library, window -> preferences -> java -> build path -> user libraries -> new -> add those 5 jars. I go to project preferences and add library to classpath. It works, compiler recognizes classes and compiles the code.
I have problems running it. From standard windows command line everything is ok, it runs, but It seems I can’t get -Djava.library.path argument to work in eclipse. I go to Run dialog and in VM arguments I put “-Djava.library.path=E:\Java\lwjgl-1.0\native\win32” … doesn’t work, I get “Exception in thread “main” java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path” … I’ve also tried to change working directory to lwjgl folder and use only “native\win32” as in test example, but still same thing. What am I doing wrong? Can I see final output to the console that eclipse is calling to run java program?

thank ppl at #lwjgl for trying

[12.03.2007][23:13] kappaOne: kova you sure the path is correct to the native files?
[12.03.2007][23:13] gareth0: Kova: try refreshing ur project
[12.03.2007][23:14] *** Dragonene has signed off IRC (Read error: 104 (Connection reset by peer)).
[12.03.2007][23:14] Kova: yeah, path is pretty straight forward, no typos or anything…
[12.03.2007][23:14] Kova: i’ll try refreshing…
[12.03.2007][23:15] Kova: same thing
[12.03.2007][23:15] kappaOne: are the lwjgl*.dll files in that folder?
[12.03.2007][23:15] *** Dragonene has joined #lwjgl.
[12.03.2007][23:15] Kova: yes
[12.03.2007][23:16] Kova: i’ve tried changing working directory to lwjgl folder and then use … native\win32 , doesn’t work also
[12.03.2007][23:17] kappaOne: have you put the speech marks in the vm arguments box?
[12.03.2007][23:17] Kova: "? no
[12.03.2007][23:17] kappaOne: like “-Djava.library.path=E:\Java\lwjgl-1.0\native\win32”
[12.03.2007][23:18] kappaOne: could try -Djava.library.path=“E:\Java\lwjgl-1.0\native\win32”
[12.03.2007][23:18] gareth0: maybe put them around the actaul path
[12.03.2007][23:18] gareth0: :stuck_out_tongue:
[12.03.2007][23:18] Betalord: Kova: there is some tutorial how to “install” lwjgl in eclipse
[12.03.2007][23:18] Kova: think I tried that :slight_smile: … i’ll try again… but in example on lwjgl there isn’t any speech marks or in command line (where thing works)
[12.03.2007][23:18] Betalord: and it works, since I did it a couple of weeaks ago (following that tutorial)
[12.03.2007][23:18] Dragonene: haha
[12.03.2007][23:19] kappaOne: yup should just be -Djava.library.path=E:\Java\lwjgl-1.0\native\win32
[12.03.2007][23:19] *** dave_des has signed off IRC (Read error: 110 (Connection timed out)).
[12.03.2007][23:19] Dragonene: if you type “/.” in the adress field in opera you end up on slashdot
[12.03.2007][23:19] Kova: i’ve read the official tutorial
[12.03.2007][23:19] Betalord: this one? http://lwjgl.org/installation.php#eclipse
[12.03.2007][23:20] Kova: yes
[12.03.2007][23:20] kappaOne: it is on E: right?
[12.03.2007][23:21] Kova: yes :slight_smile:
[12.03.2007][23:21] kappaOne: not sure what else it could be
[12.03.2007][23:22] kappaOne: maybe try -Djava.library.path=E:/Java\lwjgl-1.0/native/win32
[12.03.2007][23:22] Kova: yeah… weird… is there a way to know what command line looks like when eclipse calls it?
[12.03.2007][23:22] kappaOne: ah missed a slash -Djava.library.path=E:/Java/lwjgl-1.0/native/win32
[12.03.2007][23:23] Kova: …nothing, but I tried it once before
[12.03.2007][23:23] kappaOne: maybe -Djava.library.path=e:\Java\lwjgl-1.0\native\win32
[12.03.2007][23:24] Kova: hmm :slight_smile: haven’t tried that
[12.03.2007][23:24] kappaOne: is the case-sesitive correct (shouldn’t really matter on windows though)
[12.03.2007][23:25] Kova: nothing… yes, path is ok in case-sensitive, i’ve copied it directly from adress bar
[12.03.2007][23:25] kappaOne: windows xp?
[12.03.2007][23:25] Kova: yes
[12.03.2007][23:27] Betalord: and you’re actually running the correct run configuration?
[12.03.2007][23:27] Betalord: (the same run configuration where you specified the -D path)
[12.03.2007][23:27] Betalord: because if you just click on the run button it will run the last configuration, not the last one you created
[12.03.2007][23:28] Kova: yes, that’s the one
well nothing much to do in “run” except add .jars to classpath and that argument to VM :frowning:
[12.03.2007][23:28] Betalord: you only need to add 1.jar btw
[12.03.2007][23:28] Betalord: 1 jar

[12.03.2007][23:28] Kova: what about other 4?
[12.03.2007][23:28] Betalord: no need for those
[12.03.2007][23:28] Kova: in test example, all 5 were added
[12.03.2007][23:28] Betalord: just the lwjgl.jar
[12.03.2007][23:29] Betalord: in the tutorial it adds only lwjgl.jar, this is what I did as well and it works
[12.03.2007][23:29] Betalord: but it probably doesn’t matter if you add all of them
[12.03.2007][23:29] kappaOne: you could also try right click the main class file, -> Run As -> Run … and check if the vm argument is there
[12.03.2007][23:30] *** Betalord is now known as Betalord|away.
[12.03.2007][23:31] Kova: yes, it’s there… now I’ll copy all dlls to project dir to make things simpler…

any ides?
I’m now downloading latest eclipse, 3.3.somehting… hope it will work

problem solved, I appereantly checked “system library” when creating LWJGL library in eclipse… special thanks to paulweb515 on #eclipse (irc.freenode.net) who get me started, he told me how to see what was eclipse’s command line. To see that go to debug mode, run debug and check process proparties.