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
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
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
I assume that is 13.1 (for future readers).
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 ?
java -jar abc.jar
–
GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop
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
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™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
Java VM: Java HotSpot™ 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™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
Java VM: Java HotSpot™ 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)
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
# update-alternatives --config java
HTH,
TSU
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.
I tried a different jar file, and i got the same problem also tried opening the java control panel which did not work. I removed openJDK and marked the jar files as executable which did not help. Any other ideas?
AndrewAmmerlaan wrote:
>
> 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™ SE Runtime Environment (7.0_51-b13) (build
> 1.7.0_51-b13)
> # Java VM: Java HotSpot™ 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™ SE Runtime Environment (7.0_51-b13) (build
> 1.7.0_51-b13)
>
> # Java VM: Java HotSpot™ 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)
>
>
One guy got minecraft working here
http://forums.opensuse.org/showthread.php?t=486762
–
GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop
Minecraft is not the problem, I know about the lwjgl issue for 1.5.2 and earlier releases, however the launcher should still work I also tried another jar file which did not launch either. I am trying to uninstall java so I can reinstall it, but I don’t know how to unsinstall.
I found that java saves a error log each time I open a jar file, maybe it helps.
http://pastebin.com/vu9F7SEN
It’s too long to paste in code, so i put on pastebin.
Fixed it, found a way to delete jre and reinstalled.