aspose file tools
The moose likes Java in General and the fly likes creating setup file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "creating setup file" Watch "creating setup file" New topic
Author

creating setup file

Tharaka Peiris
Greenhorn

Joined: Jan 05, 2011
Posts: 11

I have developed a system using netbeans and I also have generated the jar file using netbeans(which was generated in dest file in the project folder). But the problem is when I move the jar file into another folder and and try to run it there, there is an error pops up mentioning that the main class can't be found....

What should I do?


Thank you...
Abhijeet Sutar
Greenhorn

Joined: Feb 28, 2010
Posts: 17

In Jar file ,which is created make sure follwing,
you have manifest file MANIFEST.MF under META-INF directory
and it has the Main-Class header as follwing
Main-Class: <classname_which_contains_main_method>


OCPJP 6 93%
Tharaka Peiris
Greenhorn

Joined: Jan 05, 2011
Posts: 11

tnx abhijeeth... I'll check that...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32689
    
    4
Tharaka Peiris wrote:tnx . . .
Please don't use that sort of abbreviation.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: creating setup file
 
Similar Threads
NoClassDefFoundError - where to put Javamail JAR file?
Problem using external jar file
Signed an applet
classpath ?
connection to mssql server database