Results 1 to 8 of 8
Thread: Help. Java run time error
- 05-15-2010, 03:16 PM #1
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Help. Java run time error
I keep getting this java error and don't know what it means or how to resolve it. Program compiles with javac xxxxxxxxx.java but generates the following error with java xxxxxxxxxxx
D:\Documents and Settings\Desktop\MyJava>java SecureWebServer
Exception in thread "main" java.lang.NoClassDefFoundError: SecureWebServe
Caused by: java.lang.ClassNotFoundException: SecureWebServer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: SecureWebServer. Program will exit.
- 05-15-2010, 03:21 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
For now, try to start the JVM like this:
kind regards,Java Code:java -cp . SecureWebServer
Jos
- 05-15-2010, 03:31 PM #3
Also make sure the SecureWebServer.class file is there. Do a dir command to show what is in the folder before doing the java command.
Is the classpath environment variable set? You could set it to . to not have to enter -cp . on your command line.
- 05-15-2010, 03:44 PM #4
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Thanks Josah for Responding ....the command specified did work but generated this error
java.io.IOException: Could not open socketjava.io.FileNotFoundException: mystore.ks (The system cannot find the file specified)
do I need to put Mystore.ks in the bin directory and any link or idea of how to fix this error ll be very much appreciated
- 05-15-2010, 03:46 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 05-15-2010, 03:48 PM #6
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Thanks also Norm for responding - the classpath environment variable is set and working properly.......the command specified did work but generated this error posted above
- 05-15-2010, 03:52 PM #7
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Thanks
at list I know it’s a path issue.... ll try and figure it out
- 05-15-2010, 04:15 PM #8
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
JAVA Programmers Wanted - Full-Time and Part-Time Positions open
By javatrek2020 in forum Jobs OfferedReplies: 3Last Post: 08-23-2011, 12:46 PM -
Class Time - represents time of day
By verbazon in forum New To JavaReplies: 1Last Post: 04-13-2009, 01:06 AM -
How to use time in java
By Manfizy in forum New To JavaReplies: 3Last Post: 03-16-2009, 12:25 PM -
Java 1.5 compile time error
By ank_k in forum New To JavaReplies: 4Last Post: 11-13-2008, 11:12 AM -
i click on it,then first time error page comes,second time click then product page co
By 82rathi.angara in forum New To JavaReplies: 21Last Post: 08-01-2008, 11:13 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks