|
eclipse/vistajava.lang.NoClassDefFoundError: –Djava/library/path=//lib Exception main -
11-15-2008, 06:52 AM
hello everybody,
i am using vista home and i'm using eclipse for writing some java programs.
when i use VM arguments to a java program i created, i get the error message the title mentions
" java.lang.NoClassDefFoundError: –Djava/library/path=//lib
Exception in thread "main" " and i get a screen error message "could not find the main class. program will exit"
i've set the PATH variable on Vista as : C:\j2sdk1.4.2_18\bin;C:\j2sdk1.4.2_18\jre; (where i've installed jdk and jre).
my guess is there's something wrong with how i've set the path, after some searching i did on the internet.
here i mention that on my XP pc i've set everything pretty much the same way, and it works fine.
could anyone tell me what i am doing wrong with VISTA?
p.s as i've mentioned, i have set the PATH variable, not the System Path, dunno if that has something to do, maybe i'm not setting it correctly. path variable did not exist before + maybe i should add some more symbols before the C:\j2sdk1.4.2_18\bin;C:\j2sdk1.4.2_18\jre; ? sth like indicating the directory of the user e.g?
thank you
|