Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find or load main class upon deployment

Status
Not open for further replies.

OAKEJ

Programmer
Apr 13, 2005
39
0
0
US
I created a standalone java desktop application using netbeans. It works on my pc both in the IDE and without the IDE. The issue is when I put all of the objects that are in the project folder into a zip file and email it. When the pc tries to use the executable jar file it comes back saying "Cannot Find or Load Main Class". I assume that I am not sending everything that is needed but since it does run on my pc without issue. I am sure that the class is in the zip file that I emailed.


Netbeans project properties/run/Main Class: My.ratecalculator.RateCalculatorUI
(which is located within the project folder) so I'm not sure what the issue is other than being new to this. Any help or direction to resolving the issue is greatly appreciated.
 
And maybe also set the classpath to add the current folder .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top