Check that '.' in the name of your Documents and Settings directory.
It looks like java changes it to a slash as if it were in a
subdirectory.

Perhaps cd to the NetBeansProjects directory and try running it from
there with java -classpath . foodpackage\FoodMain - but i'm not sure
that is the 100% correct way to do it.



On Feb 10, 3:53 am, [email protected] wrote:
> 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