Results 1 to 2 of 2
- 08-06-2007, 04:31 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
Exception in thread "main" java.lang.NoClassDefFoundError
Hi, for my class lab assignment I had to copy files from one directory and put them in my /Java/Lab4/inventory/ directory, I can compile my Inventory.java file by typing
that then creates Inventory.class file in that same directory... and i want to run it; that's where the problem is; to run it I'm typingJava Code:javac -classpath $HOME/Java/Lab4 Inventory.java
I've also triedJava Code:java -classpath $HOME/Java/Lab4 Inventory.class
java Inventory.class
The error I'm getting is
Thanks.Java Code:Exception in thread "main" java.lang.NoClassDefFoundError: /users/klepeis/Java/Lab4
- 08-06-2007, 06:07 AM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 135
- Rep Power
- 0
Similar Threads
-
ERROR: Exception in thread "main" java.lang.NoSuchMethodError: main
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:10 AM -
Exception in thread "main" java.lang.NoClassDefFoundError
By carl in forum New To JavaReplies: 2Last Post: 08-01-2007, 05:26 AM -
Exception in thread "main" java.lang.NoClassesDefFoundError
By tommy in forum New To JavaReplies: 1Last Post: 07-31-2007, 01:54 PM -
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
By romina in forum New To JavaReplies: 1Last Post: 07-25-2007, 10:55 PM -
ArrayList: Exception in thread "main" java.lang.NullPointerException
By susan in forum New To JavaReplies: 1Last Post: 07-16-2007, 06:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks