|
-
Oct 17th, 2005, 10:59 PM
#1
Thread Starter
Frenzied Member
need help...success in compile with .jar, but fail in running
I have a jar file that contains a package. I enter this command and it compiles:
javac -cp "C:\Program Files\Java\jdk1.5.0_05\bin\myPac.jar" app.java
but when I try to run the program by typing this command:
java -cp "C:\Program Files\Java\jdk1.5.0_05\bin\myPac.jar" app
It doesn't run and i get this exception error:
Exception in thread "main" java.lang.NoClassDefFoundError: app
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|