DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page eclipse/vistajava.lang.NoClassDefFoundError: –Djava/library/path=//lib Exception main
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default 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
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default 11-15-2008, 11:52 AM

also, when i pass NO VM argument to my java program, it compilers fine, and the application runs. but the thing is, to get the program working correctly afterwards, i need to pass that VM argument too, " –Djava/library/path=./lib " , which as i told you doesnt compiler & run, mentioning the error I posted at my first post.

please can anyone help?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassNotFound exception when running Java Application fron within Eclipse smillington Eclipse 3 10-06-2009 05:01 AM
Show JRE library in project? lumbergh Eclipse 3 06-11-2009 02:27 AM
Web App Library Empty?! burtonrhodes Eclipse 0 12-04-2008 09:24 AM
Eclipse 3.2 java.lang.OutOfMemoryError dekapx Eclipse 0 09-23-2008 01:44 AM
keep the main thread alive mitroiasi Java 0 03-13-2008 12:37 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com