Menu

#20 How do you launch in Linux? I get error.

open
None
3
2015-01-12
2005-05-04
Anonymous
No

Ran on my wifes XP system great! Double clicking
opened the jar archive in the unzip program, but right
clicking > open with JRE worked fine.

Not sure how to run a .jar in Debian Linux (kde),
double clicking in linux also opened the jar archive in
the unzip program: Right click > open with
/usr/java/jre1.5.0_01/bin/java gives me this error:

Exception in thread "main"
java.lang.NoClassDefFoundError:
/home/lance/Desktop/JBidWatcher-0/9/7pre2/jar

Any suggestions?

Thanks,

Lance

Discussion

  • Lance W. Haverkamp

    Logged In: YES
    user_id=1271859

    Solved:

    The command in Linux (if you're using the console) is

    java -jar JBidWatcher-0.9.7pre2.jar [or whatever your
    jar is called]

    In kde, right-click > open with > browse (up top) >
    /path/to/your/java -jar
    (don't enter a space after -jar, kde will do that for you)

    Thanks,

    Lance

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks lance that was enough to help get me running.........

     
  • Morgan Schweers

    Morgan Schweers - 2005-08-09
    • assigned_to: nobody --> cyberfox
     
  • Morgan Schweers

    Morgan Schweers - 2005-08-09

    Logged In: YES
    user_id=19745

    Greetings,
    As noted, the answer to how to run under Linux is:
    java -jar JBidWatcher-0.9.8.jar

    If you're running on a version that has a bad default Java
    (most of the Redhat's, for example), you'll need to have
    installed the Sun JRE from:
    http://java.sun.com/getjava

    You also may have to provide the specific path to the Java
    install above, if you didn't automatically put Sun's Java in
    your path. Usually the path is something like:
    /usr/java/j2sdk1.4.2_08/bin

    So the whole command would be:
    /usr/java/j2sdk1.4.2_08/bin/java -jar JBidWatcher-0.9.8.jar
    presuming the JBidWatcher-0.9.8.jar file was in the current
    directory.

    Hope that info helps... I'll try to get it into the
    Quickstart Guide.

    I'm leaving this support entry open, because it may help
    others until I can get it documented elsewhere.

    -- Morgan Schweers, CyberFOX!

     
  • Morgan Schweers

    Morgan Schweers - 2005-08-09
    • priority: 5 --> 9
     
  • Morgan Schweers

    Morgan Schweers - 2007-08-15
    • priority: 9 --> 3
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.