File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executable jar file not running.

 
Suhas Bilaye
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an executable jar file with a class named UTSApp this class contains the main method used to run the application. This class extends from SingleFrameApplication of JDIC components API in java6. I want to execute this file. I have this file at my desktop and i m trying to execute it using the command sequence. Current directory is the desktop.


I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication

What is to be included in the classpath so that java will detect this SingleFrameApplication class

Regards,
Suhas
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need a Swing Application Framework library inside your classpath. You can download it here.
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the library in my classpath it is named appframework-1.0.3 which has the swing based class SingleFrameApplication.
I have included the same now as follows:



But still I encounter the same error. Please advise.

Regards,
Suhas
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your library isn't in the classpath.

Do this.
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did exactly as you suggested but it is still showing the same error. The code in the netbeans tool is running fine but if try to run it from command prompt it is showing error.

Regards,
Suhas
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic