Results 1 to 5 of 5
Thread: classpath problem
- 03-31-2009, 03:03 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
classpath problem
hi
iv exported a project as a runnable jar file, but when i try to run it it shows a class not found exception...
-jar HTTPserver
-com
-HTTPserver
-HTTPserver.class
-META-INF
-manifest file
manifest file details->
Manifest version 1.1
Class-Path: .
Main Class: com.HTTPserver.HTTPserver
- 03-31-2009, 04:41 PM #2
can you post the exception as well? the more detail the better.
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
- 03-31-2009, 11:45 PM #3
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
thanks for reply
the full error is:
Exception in thread "main" java.lang.NoClassDefFoundError: HTTPserver
Caused by: java.lang.ClassNotFoundException: HTTPserver
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: HTTPserver. Program will exit.
- 04-01-2009, 03:48 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you sure that HTTPServer class is exists in the correct package?
- 04-01-2009, 12:32 PM #5
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
Similar Threads
-
j3d classpath
By sales1 in forum New To JavaReplies: 3Last Post: 12-23-2008, 01:51 AM -
Problem with CLASSPATH for STRUTS
By bhupal4all in forum Web FrameworksReplies: 2Last Post: 11-07-2008, 05:48 AM -
Classpath
By Preethi in forum New To JavaReplies: 5Last Post: 06-20-2008, 09:00 AM -
Classpath on mac osx
By jacobb in forum JDBCReplies: 0Last Post: 06-12-2008, 09:41 PM -
GNU Classpath 0.96.1
By JavaBean in forum Java SoftwareReplies: 0Last Post: 11-01-2007, 04:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks