I will do the following to make sure java is in my classpath

Under System Variables

add .; (dot semicolon) as the first entry in CLASSPATH 

and add java to PATH variable in your case it will be 
C:\JavaClass\jdk1.6_11\bin; 

Close all command prompts, subsequent compilation should take care of it.

Give it a try.






________________________________
From: "[email protected]" <[email protected]>
To: [email protected]
Sent: Monday, February 9, 2009 2:53:30 PM
Subject: [java programming] package java classpath  command call windows.

All, 
  
     I ran into a problem trying to run my java package program. The classpath 
is not found even though I know it is correct. I have tried running this 
several diffirent ways including setting multiple claspath = to my directory 
paths and running the code with no success. Here is the error I am seeing 
below. 
  
C:\JavaClass\jdk1.6.0_11>java -classpath . "C:\Documents and 
Settings\wendell.ha 
tcher\My Documents\NetBeansProjects\foodpackage\FoodMain" 
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Documents and 
Sett 
ings\wendell/hatcher\My Documents\NetBeansProjects\foodpackage\FoodMain 
Sent via BlackBerry by AT&T


      
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to