J
James Alan Farrell
Hello all,
Apologies if this is not the most appropriate group for this question.
Please feel free to direct me to a better one.
I have a small utility program that sets up a dialog which takes
several pieces of data (file names) from the user and stores them into
a file. All code resides in a single file. I attempt to create a jar
file so that the user may run it conveniently from the windows
desktop. When I attempt to run the jar file, I get an error: "Could
not find main class. Program will exit!"
I've looked at the jar file with winzip, and I've looked at the
manifest. Everything looks right as far as I can tell. That is
everything looks like it does for a very similar program that is
working.
Can anyone tell me what might be going wrong here. (Please don't say
the problem is that I'm using Windows. My customer is adamant that we
use Windows - it is what his customers - several hundred of them -
use)
I will attempt to include the jar file with this posting, so that you
can see the files in it and the manifest. I'll also stash the source
code into it, so that you may verify that main is declared correctly.
The environment I am using is NetBeans 3.1, with the included jar
packager. I've already checked the online documentation and other
online sources. As far as I can see, syntax is correct.
Thank you for your help,
James Alan Farrell
Apologies if this is not the most appropriate group for this question.
Please feel free to direct me to a better one.
I have a small utility program that sets up a dialog which takes
several pieces of data (file names) from the user and stores them into
a file. All code resides in a single file. I attempt to create a jar
file so that the user may run it conveniently from the windows
desktop. When I attempt to run the jar file, I get an error: "Could
not find main class. Program will exit!"
I've looked at the jar file with winzip, and I've looked at the
manifest. Everything looks right as far as I can tell. That is
everything looks like it does for a very similar program that is
working.
Can anyone tell me what might be going wrong here. (Please don't say
the problem is that I'm using Windows. My customer is adamant that we
use Windows - it is what his customers - several hundred of them -
use)
I will attempt to include the jar file with this posting, so that you
can see the files in it and the manifest. I'll also stash the source
code into it, so that you may verify that main is declared correctly.
The environment I am using is NetBeans 3.1, with the included jar
packager. I've already checked the online documentation and other
online sources. As far as I can see, syntax is correct.
Thank you for your help,
James Alan Farrell