Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jar is not functioning

 
Sukitha Ranaba
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I made a JFrame using NetBeans. I built the project and the jar file is been created. When I double click the jar icon, it does nothing. Nothing displays. (plz do note.. in my code setVisible(true)) Why is that. I m using MS windows xp.

thanx
 
Sukitha Ranaba
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally I got it corrct. There was something wrong with the main class. When I set the main class as my Jframe class, it worked.
Thank god. Many thanks to all who tried out my problem.
 
shansi raj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check with your Manifest.mf too.
Edit it and add the dependant jar files path to the class-path.It should look like the following.

Manifest-Version: 1.0
Main-Class: com.src.main
Class-Path: log4j.jar ./conf/ .
 
shansi raj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check with your Manifest.mf too.
Edit it and add the dependant jar files path to the class-path.It should look like the following.

Manifest-Version: 1.0
Main-Class: com.src.main
Class-Path: log4j.jar ./conf/ .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!