so i did
java -jar JSymphonic_v0.3.0a2.jar
but nothing happens
if anyone can download the file JSymphonic_v0.3.0a2.jar and see if it works
im here thinking java should work the same regardless of OS. im going to try this on my vista machine to see what happens.
using Java 1.6.0 update 13
couldn’t get it to work either.
This is what happens when I try it:
ian@linux-0gou:~/Desktop/JSymphonic_0.3.0alpha2> java -jar JSymphonic_v0.3.0a2.jar
28-Mar-09 4:21:32 AM org.danizmax.jsymphonic.gui.SettingsHandler <init>
WARNING: File JSymphonic.xml does not exist!, Creating new default config file
28-Mar-09 4:21:32 AM org.danizmax.jsymphonic.gui.SettingsHandler writeXMLFile
INFO: Writing config file/home/ian/Desktop/JSymphonic_0.3.0alpha2/JSymphonic.xml...
28-Mar-09 4:21:32 AM org.danizmax.jsymphonic.gui.SettingsHandler writeXMLFile
INFO: Done writing file
28 Mar 2009 04:21:32 [INFO] org.danizmax.jsymphonic.gui.JSymphonicWindow:<init> : Initializing JSymphonic...
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
at java.lang.reflect.Method.invoke(libgcj.so.9)
at javax.swing.UIDefaults.getUI(libgcj.so.9)
at javax.swing.UIManager.getUI(libgcj.so.9)
at javax.swing.JTree.updateUI(libgcj.so.9)
at javax.swing.JTree.<init>(libgcj.so.9)
at javax.swing.JTree.<init>(libgcj.so.9)
at org.danizmax.jsymphonic.gui.local.LocalPanel.initComponents(LocalPanel.java:120)
at org.danizmax.jsymphonic.gui.local.LocalPanel.<init>(LocalPanel.java:51)
at org.danizmax.jsymphonic.gui.JSymphonicWindow.<init>(JSymphonicWindow.java:108)
at org.danizmax.jsymphonic.gui.JSymphonic.main(JSymphonic.java:34)
Caused by: java.awt.IllegalComponentStateException: component java.awt.Label not showing
at java.awt.Component.getLocationOnScreen(libgcj.so.9)
at java.awt.event.MouseEvent.<init>(libgcj.so.9)
at java.awt.event.MouseEvent.<init>(libgcj.so.9)
at javax.swing.plaf.basic.BasicTreeUI.<clinit>(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
...11 more
I finally got the program to launch. Turns out my java was fine i was just initiating the launch from the terminal incorrectly.
I somehow got the terminal to change directory to the desktop
so terminal shows up like @linux-ux1g:~/Desktop>
so i put the file JSymphonic_v0.3.0a2.jar on my desktop
from there i did
java -jar JSymphonic_v0.3.0a2.jar
and i got
@linux-ux1g:~/Desktop> java -jar JSymphonic_v0.3.0a2.jar
Mar 28, 2009 12:07:17 PM org.danizmax.jsymphonic.gui.SettingsHandler startDocument
INFO: Reading file /home/edgar/Desktop/JSymphonic.xml...!
Mar 28, 2009 12:07:17 PM org.danizmax.jsymphonic.gui.SettingsHandler endDocument
INFO: Done reading file
28 Mar 2009 12:07:17 [INFO] org.danizmax.jsymphonic.gui.JSymphonicWindow:<init> : Initializing JSymphonic...
28 Mar 2009 12:07:18 [INFO] org.danizmax.jsymphonic.gui.device.DeviceManager:initOmgPath : Initializing OMG path
28 Mar 2009 12:07:18 [WARNING] org.danizmax.jsymphonic.gui.device.DeviceManager:initOmgPath : The device path /media/disk-1/omgaudio does not exist!
28 Mar 2009 12:07:18 [INFO] org.danizmax.jsymphonic.gui.device.DeviceManager:mountDevice : Mounting the device Walkman
28 Mar 2009 12:07:18 [WARNING] org.danizmax.jsymphonic.gui.device.DeviceManager:mountDevice : The OMG path is not set! Please set the device path!
28 Mar 2009 12:07:18 [WARNING] org.danizmax.jsymphonic.gui.device.DevicePanel:reloadTree : Cannot find OMG path. The device path is probably wrong!
28 Mar 2009 12:07:18 [INFO] org.danizmax.jsymphonic.gui.JSymphonicWindow:<init> : JSymphonic is ready!
is there any way i can launch the program from my mp3 player HDD because the program contains an xml file (i believe saves settings such as the players directory). this way i can transfer music from different computers easily.
Im guessing in terminal i would have to change directory to my mp3 players hard disk then java -jar JSymphonic_v0.3.0a2.jar.
But i would like a method of double click and have the program launch
It looks like your original problem is that you separated the jar file from the xml file (which I assume comes out of the zip file also). It seems you have to launch the jar in the same directory as the xml file.
You could create an iconic launcher that would first change directory to wherever you decide to store both the jar and the xml. From the desktop choose Create New > Link to Application. The working directory is specified under Application as Work Path.