Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Your site was well structured and I found what I was looking for in about 2 minutes. I am looking forward to participating with you in the future..."

Geography

Where in the world do Tek-Tips members come from?

Cannot find or load main class upon deployment

OAKEJ (Programmer)
25 May 12 10:25
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.
TonHu (Programmer)
29 May 12 6:14
You need to have a manifest, and set the Main-Class property there: http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html
MoreFeo (TechnicalUser)
8 Jun 12 6:25
And maybe also set the classpath to add the current folder .

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close