Can't open a .JAR file

Soldato
Joined
12 Jan 2009
Posts
6,504
I have this .JAR file which is a tiny little program we use at work. Unfortunately the PC that had this software on had malfunctioned and so a replacement was installed. However after copying the software files when double clicking the ‘DesktopApplication1.JAR’ file nothing happens, the software doesn’t load.

Anyone know how to run .JAR files in a Windows environment? Windows 7 says it's en 'executable JAR file' so I presumed by double clicking on it it would open up. I can upload the software into my Dropbox if someone can help me out please, it's only 300kb in size.
 
I get an error saying ''java' is not recognized as an internal or external command,
operable program or batch file.'

I have JRE installed
 
no luck I'm afraid:

C:\Program Files (x86)\Java\jre7>java -jar DesktopApplication1
'java' is not recognized as an internal or external command,
operable program or batch file.
 
OK tried again this morning and I get this:


C:\Windows\System32>java -jar "C:\Program Files\Java\jre7\DesktopApplication1.jar"

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: gnu/io/Co
mmPortIdentifier
at desktopapplication1.TwoWaySerialComm.connect(TwoWaySerialComm.java:33
)
at desktopapplication1.DesktopApplication1View.<init>(DesktopApplication
1View.java:48)
at desktopapplication1.DesktopApplication1.startup(DesktopApplication1.j
ava:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: gnu.io.CommPortIdentifier
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more


EDIT: tried in the bin folder and I get the same error
 
Back
Top Bottom