Results 1 to 9 of 9

Thread: Help with a .jar file

  1. #1

    Default Help with a .jar file

    I have a sony walkman mp3 player. Im trying to use a java program called jsymphonic that somebody created.

    I have java version "1.6.0_12"

    problem is double clicking the jar opens up in file roller

    If i right click and execute jar it seems to open something. The screen flashes something really quick, then nothing.

    i tried terminal
    java -jar filename.jar

    I get Unable to access jarfile

    ubuntu users seems to get it to work
    HOWTO: Transfer files to/from Sony Walkman MP3 player NW-E003F. - Ubuntu Forums

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Help with a .jar file

    Make sure you type the filename correctly with uppercase where necessary:

    java -jar JSymphonic_0.2b.jar

    (I know nothing about this app and do not have a Sony player, I just cut and pasted the filename from that Ubuntu posting.)

  3. #3

    Default Re: Help with a .jar file

    Quote Originally Posted by ken_yap View Post
    Make sure you type the filename correctly with uppercase where necessary:

    java -jar JSymphonic_0.2b.jar

    (I know nothing about this app and do not have a Sony player, I just cut and pasted the filename from that Ubuntu posting.)
    i downloaded the latest version of jsymphonic(at least i think i did)
    from SourceForge.net: Symphonic: Files

    it is JSymphonic_v0.3.0a2.jar

    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.

  4. #4
    Join Date
    Jan 2009
    Location
    USA Pennsylvania
    Posts
    1,287

    Default Re: Help with a .jar file

    using Java 1.6.0 update 13
    couldn't get it to work either.

    This is what happens when I try it:

    Code:
    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
    Laptop: Dell Inspiron E1505 | OpenSUSE 12.1/Windows Vista | KDE | Intel CPU T2050 1.6 GHz | Intel 945GM | 3.2GB RAM
    Box: OpenSUSE 12.1/Windows 7 | KDE | Intel Core 2 Quad 8300 2.5GHz/core | nVidia Geforce 9500GT 1GB| 4 GB RAM

  5. #5

    Default Re: Help with a .jar file

    hm that is strange

    I just tried it on vista and the program loaded fine
    Sent an email to the devolper. Hopefully i will get an answer

    Thanks for testing it out. I thought maybe I did not install java correctly as have tried the latest version and a downgraded version.

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Help with a .jar file

    From the error messages you are getting, it looks like you are actually running gcj, the GNU version of Java. Do:

    Code:
    /usr/sbin/update-alternatives --display java
    If gcj is mentioned in there, you have to make it default to the Sun Java instead. This can also be done by update-alternatives, see the man page.

    Or uninstall gcj.

  7. #7

    Default Re: Help with a .jar file

    Quote Originally Posted by ken_yap View Post
    From the error messages you are getting, it looks like you are actually running gcj, the GNU version of Java. Do:

    Code:
    /usr/sbin/update-alternatives --display java
    If gcj is mentioned in there, you have to make it default to the Sun Java instead. This can also be done by update-alternatives, see the man page.

    Or uninstall gcj.
    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

    Code:
    @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

  8. #8

    Default Re: Help with a .jar file

    Also no problems here:

    Code:
    java -jar JSymphonic_v0.3.0a2.jar
    28.03.2009 20:22:24 org.danizmax.jsymphonic.gui.SettingsHandler startDocument
    INFO: Reading file /tmp/JSymphonic.xml...!
    28.03.2009 20:22:24 org.danizmax.jsymphonic.gui.SettingsHandler endDocument
    INFO: Done reading file
    28 Mrz 2009 20:22:24 [INFO]    org.danizmax.jsymphonic.gui.JSymphonicWindow:<init> : Initializing JSymphonic...
    28 Mrz 2009 20:22:25 [INFO]    org.danizmax.jsymphonic.gui.device.DeviceManager:initOmgPath : Initializing OMG path
    28 Mrz 2009 20:22:25 [WARNING] org.danizmax.jsymphonic.gui.device.DeviceManager:initOmgPath : The device path /tmp/Invalid path/omgaudio does not exist!
    28 Mrz 2009 20:22:25 [INFO]    org.danizmax.jsymphonic.gui.device.DeviceManager:mountDevice : Mounting the device  Walkman
    28 Mrz 2009 20:22:25 [WARNING] org.danizmax.jsymphonic.gui.device.DeviceManager:mountDevice : The OMG path is not set! Please set the device path!
    28 Mrz 2009 20:22:25 [WARNING] org.danizmax.jsymphonic.gui.device.DevicePanel:reloadTree : Cannot find OMG path. The device path is probably wrong!
    28 Mrz 2009 20:22:25 [INFO]    org.danizmax.jsymphonic.gui.JSymphonicWindow:<init> : JSymphonic is ready!
    Quote Originally Posted by ijbreakey View Post
    using Java 1.6.0 update 13
    couldn't get it to work either.
    Running on openSUSE 11.1 x86_64 java-1_6_0-sun-u13 (rebuild from src.rpm of u12, so my Java-installation is certainly "openSUSE-compatible")

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Help with a .jar file

    Quote Originally Posted by edgar_eche View Post
    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

    Code:
    @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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •