Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Java won't work

  1. #1
    Join Date
    Jan 2014
    Location
    Nijmegen
    Posts
    64

    Default Java won't work

    I tried to install oracle java following this tutorial: https://en.opensuse.org/SDB:Installing_Java
    but after the installation I can not run jar files, a java task pops up on the panel and disappears after a while, I have no idea what to do, I am using opensuse 13 64 bit

  2. #2
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Java won't work

    AndrewAmmerlaan wrote:
    > I tried to install oracle java following this tutorial:
    > https://en.opensuse.org/SDB:Installing_Java
    > but after the installation I can not run jar files, a java task pops up
    > on the panel and disappears after a while, I have no idea what to do, I
    > am using opensuse 13 64 bit

    Did you uninstall openjdk before installing oracle jdk/jre ?

    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

  3. #3
    Join Date
    Jan 2014
    Location
    Nijmegen
    Posts
    64

    Default Re: Java won't work

    openjdk was installed by default, i installed oracle java then uninstalled openjdk, on second thoughts it would be better to turn that around but it's too late for that now

  4. #4
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Java won't work

    AndrewAmmerlaan wrote:
    >
    > openjdk was installed by default, i installed oracle java then
    > uninstalled openjdk, on second thoughts it would be better to turn that
    > around but it's too late for that now
    >
    >

    Are you getting any errors if you run the command from konsole/terminal ?
    Code:
    java -jar abc.jar
    --
    GNOME 3.10.2
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,143

    Default Re: Java won't work

    Quote Originally Posted by AndrewAmmerlaan View Post
    I am using opensuse 13 ...
    I assume that is 13.1 (for future readers).
    Henk van Velden

  6. #6
    Join Date
    Jan 2014
    Location
    Nijmegen
    Posts
    64

    Default Re: Java won't work

    Error: unable to access jarfile abc.jar
    yes i use opensuse 13.1

  7. #7

    Default Re: Java won't work

    Quote Originally Posted by AndrewAmmerlaan View Post
    Error: unable to access jarfile abc.jar yes i use opensuse 13.1
    Replace "abc.jar" with the entire path and name of the jar file you're trying to run. HTH Lenwolf

  8. #8
    Join Date
    Jan 2014
    Location
    Nijmegen
    Posts
    64

    Default Re: Java won't work

    I tried Minecraft.jar
    First i got this error:

    andrew@linux-9emo:~/Programs/Minecraft> java -jar Minecraft.jar
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0x00007fd8db3d56da, pid=3209, tid=140569385551616
    #
    # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # V [libjvm.so+0x96f6da] Unsafe_GetNativeByte+0xaa
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /home/andrew/Programs/Minecraft/hs_err_pid3209.log
    #
    # If you would like to submit a bug report, please visit:
    # http://bugreport.sun.com/bugreport/crash.jsp
    #
    Aborted

    then is typed ulimt -c unlimited as described in the error, but than i got this error:

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0x00007f84e774e6da, pid=3230, tid=140208813266688
    #
    # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # V [libjvm.so+0x96f6da] Unsafe_GetNativeByte+0xaa
    #
    # Core dump written. Default location: /home/andrew/Programs/Minecraft/core or core.3230
    #
    # An error report file with more information is saved as:
    # /home/andrew/Programs/Minecraft/hs_err_pid3230.log
    #
    # If you would like to submit a bug report, please visit:
    # http://bugreport.sun.com/bugreport/crash.jsp
    #
    Aborted (core dumped)

  9. #9
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,282
    Blog Entries
    2

    Default Re: Java won't work

    I see by the post immediately before this one that Sun Java is running.
    Recommend re-inspecting the requirements of the app (Jar file) to verify the correct Java is being used.

    BTW
    If multiple JAVA are installed from the OSS repos and even from other source if added to the "update-alternatives" utility, that is an important subsystem that permits switching from one JAVA to another (Another way is to explicitly declare settings and java binary in /etc/profile.local as explained in /etc/profile).

    If multiple JAVA are installed on the same machine you can switch between them by
    Code:
    # update-alternatives --config java
    HTH,
    TSU

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,143

    Default Re: Java won't work

    And please Andrew,

    Like the others, use CODE tags around your copied/pasted computer text. It is the # button in the tool bar of the post editor.
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

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