Results 1 to 6 of 6

Thread: .jar File

  1. #1
    Join Date
    Jun 2010
    Location
    Florida
    Posts
    74

    Default .jar File

    Hi, I am trying to run a .jar file, and I have both JDK and JRE installed. This is the error I keep getting.

    Code:
    jonathan@linux-d0g9:~> cd Downloads
    jonathan@linux-d0g9:~/Downloads> java -jar RSBot2.jar
    jonathan@linux-d0g9:~/Downloads> 
    jonathan@linux-d0g9:~/Downloads> java -f -jar RSBot2.jar
    Unrecognized option: -f
    Could not create the Java virtual machine.
    jonathan@linux-d0g9:~/Downloads>
    Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: .jar File

    Hello!

    If you by JRE mean the official Sun Java and by JDK the 'Java-openjdk' you could try uninstalling one of the packages, + plugins etc, and try again. 'Java-openjdk' is an open source alternative to the Sun Java package. Maybe it causes some kind of confusion within your system having both installed?
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  3. #3
    Join Date
    Jun 2010
    Location
    Florida
    Posts
    74

    Default Re: .jar File

    Thnx for the reply!

    I uninstalled JDK, and Sun Java. I still have the same error. I have no idea what to do.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: .jar File

    On 2010-12-18 18:36, Rabbitdog wrote:
    >
    > Thnx for the reply!
    >
    > I uninstalled JDK, and Sun Java. I still have the same error. I have
    > no idea what to do.


    You can not uninstall both and expect java to run... You need one.

    Use "update-alternatives" to tell the system which java is the default one.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  5. #5
    Join Date
    Jun 2010
    Location
    Florida
    Posts
    74

    Default Re: .jar File

    I'm sorry..I meant to say I have JDK, installed, and it doesn't work. I do not however have the official Sun Java installed.

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: .jar File

    Rabbitdog wrote:

    >
    > I'm sorry..I meant to say I have JDK, installed, and it doesn't work. I
    > do not however have the official Sun Java installed.
    >
    >

    The reported error "Could not create the Java virtual machine" is most of
    the time related to java memory settings which are too high for the machine.
    How much RAM does the machine have?

    Can you try to run your jar with
    Code:
    java -Xmx64M -jar RSBot2.jar
    and report what happens?

    --
    openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

Posting Permissions

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