Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jar file not working - sometimes?

807600Sep 21 2007 — edited Sep 24 2007
I have a jar file with the following Manifest file:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.6.0_02-b06 (Sun Microsystems Inc.)
Main-Class: windows.ItemCreatorUI
Class-Path: lib/AbsoluteLayout.jar
X-COMMENT: Main-Class will be added automatically by build

The class under the Main-Class header has a main method in it, and the jar file is executable on the six computers I have tested and had others test. However, two of my users have reported a "Can not find main method, the program will now exit" error and subsequent crash. They are using a copy of the file downloaded directly from my personal ftp, so I'm fairly certain that it's something on their end. Further, they have sent me the file that they downloaded and I was able to run it without fail.

Does anybody have any experience with this sort of problem, and know a fix? Both users have the most current version of Java (in fact, one of them updated to the latest version while I was working with him).

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2007
Added on Sep 21 2007
18 comments
764 views