Re: classpath problem ?
Frederick Smith wrote:
1 - Yes - I double click on the .jar in the explorer
A: Trim-and-inline posting: trim the parts that don't pertain to your
responses, and interject your remarks inline.
Q: What should I do instead?
A: Because it makes it harder to follow the flow of the conversation.
Q: Why is it bad?
A: Placing your response above the entire body of the post to which you are
responding.
Q: What is top-posting?
Frederick Smith wrote:
I get the "could not find the main class. Program will exit" message.
( the program runs within the IDE with no problem )
Lew wrote:
Did you set up a 'Main-Class' in the manifest?
Frederick Smith wrote:
2 - No
NetBeans probably did that for you. Did you check?
6 - The program runs OK when I invoke it using "java -jar filename.jar"
More evidence that there is indeed a 'Main-Class' in the manifest. Did you check?
- maybe its a file association problem in Windows ?
That seems likely.
What are the contents of the JAR's manifest?
Inquiring minds still want to know - it seems likely that it contains a
'Main-Class' already. The request for this information was not purposeless.
--
Lew