Results 1 to 4 of 4
Thread: Main Class not found
- 01-08-2010, 08:57 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
[Solved] Main Class not found
Hi, I have a strange issue. Before everything, I'd like to say that my program works well on Linux, but gives me "could not find main class: app.App" error when I run it in the Windows environment. Here's the picture:
ImageBanana - screenshot_055.png
On the left, the same jar running on Linux, and on the right is an error message displayed in Windows environment. What could be the problem?Last edited by Draugnar; 01-09-2010 at 03:13 AM. Reason: Solved
- 01-08-2010, 09:02 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Did you specify the main class in the manifest of the jar file then?
- 01-08-2010, 09:04 PM #3
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
I'm not sure what you mean, here's my manifest file:
The program is written and built in netbeans 6.8, by the way.
Java Code:Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 14.2-b01 (Sun Microsystems Inc.) Main-Class: app.App Class-Path: lib/appframework-1.0.3.jar lib/swing-worker-1.1.jar X-COMMENT: Main-Class will be added automatically by build
Last edited by Draugnar; 01-08-2010 at 09:07 PM.
- 01-09-2010, 03:12 AM #4
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
main class not found
By abhijit in forum NetworkingReplies: 3Last Post: 10-01-2009, 09:05 AM -
No Class Def Found Error:
By fithous in forum Java AppletsReplies: 0Last Post: 04-02-2009, 05:30 PM -
No main class found error
By jhering1986 in forum New To JavaReplies: 17Last Post: 03-28-2009, 02:34 AM -
Simple program compiles but main class is not found-- not sure why
By damong in forum New To JavaReplies: 4Last Post: 01-01-2009, 03:58 AM -
xception in thread "main" java.util.NoSuchElementException: No line found
By Tenn in forum New To JavaReplies: 12Last Post: 12-05-2008, 05:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks