Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

creating setup file

 
Greenhorn
Posts: 11
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Greenhorn
Posts: 17
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Tharaka Peiris
Greenhorn
Posts: 11
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tnx abhijeeth... I'll check that...
 
Marshal
Posts: 70286
282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tharaka Peiris wrote:tnx . . .

Please don't use that sort of abbreviation.
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic