wood burning stoves 2.0*
The moose likes Java in General and the fly likes Executable jar file not running. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Executable jar file not running." Watch "Executable jar file not running." New topic
Author

Executable jar file not running.

Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
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


Thanks and Regards,
Suhas
http://www.xplore-java.blogspot.com/
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

You need a Swing Application Framework library inside your classpath. You can download it here.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
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

Joined: Sep 11, 2006
Posts: 959

Your library isn't in the classpath.

Do this.
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
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
 
subject: Executable jar file not running.
 
Similar Threads
Executable jar file
Exception error:Cannot run program "C:\Users\x\Desktop": CreateProcess error=5, Access is denied.
Package Help
using an executable jar file
Create setup file of Java Application