M
Mark H
I just got started with NetBeans 4.1 yesterday.
I want to make a double-clickable jar file, but whenever I try opening
the .jar in Windows Explorer, I get the error message:
====================================
Java Virtual Machine Launcher
Could not find the main class. Program will exit!
====================================
I unzipped the jar file to see what was wrong and it looks like
everything is okay. Here is my ./META-INF/MANIFEST.MF file:
====================================
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
Main-Class: edu.ccp.its.inventory.SwInvMerge
X-COMMENT: Main-Class will be added automatically by build
====================================
The class file is stored in
\edu\ccp\its\inventory\SwInvMerge.class
(Note the Windows path)
It looks like this should be working but it doesn't. Any thoughts?
FWIW, I can run the application from NetBeans and from the command line
just fine. I'm just trying to add the option of double-clicking so that
user's aren't forced to use the command prompt.
Thanks, Mark
I want to make a double-clickable jar file, but whenever I try opening
the .jar in Windows Explorer, I get the error message:
====================================
Java Virtual Machine Launcher
Could not find the main class. Program will exit!
====================================
I unzipped the jar file to see what was wrong and it looks like
everything is okay. Here is my ./META-INF/MANIFEST.MF file:
====================================
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
Main-Class: edu.ccp.its.inventory.SwInvMerge
X-COMMENT: Main-Class will be added automatically by build
====================================
The class file is stored in
\edu\ccp\its\inventory\SwInvMerge.class
(Note the Windows path)
It looks like this should be working but it doesn't. Any thoughts?
FWIW, I can run the application from NetBeans and from the command line
just fine. I'm just trying to add the option of double-clicking so that
user's aren't forced to use the command prompt.
Thanks, Mark