Message: 37 Date: Fri, 16 Dec 2011 09:41:26 -0500 From: m.roth@5-cent.us Subject: Re: [CentOS] java installation failure To: "CentOS mailing list" centos@centos.org
I would suggest that if openjdk doesn't work, you go with Sun/Oracle's java, which is the Source of All Java
Sun java was obtained. After attempt to run jedit, the following error occurred:
jedit Warning: $JAVA_HOME environment variable not set! Consider setting it. Attempting to locate java... Found a virtual machine at: /usr/local/java/jdk/jre/bin/java... # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003931414da0, pid=3808, tid=140007079671568 # # JRE version: 7.0_02-b13 # Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [ld-linux-x86-64.so.2+0x14da0] # # 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: # /usr/local/eclipse/hs_err_pid3808.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted (core dumped)
Any advice how to enable "core dumping" as described in the command terminal output?
e-letter wrote:
From: m.roth@5-cent.us
I would suggest that if openjdk doesn't work, you go with Sun/Oracle's java, which is the Source of All Java
Sun java was obtained. After attempt to run jedit, the following error occurred:
jedit Warning: $JAVA_HOME environment variable not set! Consider setting it. Attempting to locate java...
Ok, first trick: set your JAVA_HOME to the correct path. If alternatives is in use, select the correct path there, then set JAVA_HOME.
Found a virtual machine at: /usr/local/java/jdk/jre/bin/java... # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003931414da0, pid=3808, tid=140007079671568 # # JRE version: 7.0_02-b13 # Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [ld-linux-x86-64.so.2+0x14da0]
What are you running on, and what are you running, 32 java/64bit h/w, or 64/64? <nsip> #
# An error report file with more information is saved as: # /usr/local/eclipse/hs_err_pid3808.log
Did you look at that error?
# # If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug.
*Outside* the JVM.
# Aborted (core dumped)
Any advice how to enable "core dumping" as described in the command terminal output?
Unless you can read core dumps, I'm not sure how much help that would be. Do check the error file it mentions.
mark
Vreme: 12/20/2011 04:11 PM, m.roth@5-cent.us piše:
e-letter wrote:
From: m.roth@5-cent.us
I would suggest that if openjdk doesn't work, you go with Sun/Oracle's java, which is the Source of All Java
Sun java was obtained. After attempt to run jedit, the following error occurred:
jedit Warning: $JAVA_HOME environment variable not set! Consider setting it. Attempting to locate java...
Ok, first trick: set your JAVA_HOME to the correct path. If alternatives is in use, select the correct path there, then set JAVA_HOME.
/usr/sbin/alternatives --config java could be a good start?
Ljubomir Ljubojevic wrote:
Vreme: 12/20/2011 04:11 PM, m.roth@5-cent.us pie:
e-letter wrote:
From: m.roth@5-cent.us
I would suggest that if openjdk doesn't work, you go with Sun/Oracle's java, which is the Source of All Java
Sun java was obtained. After attempt to run jedit, the following error occurred:
jedit Warning: $JAVA_HOME environment variable not set! Consider setting it. Attempting to locate java...
Ok, first trick: set your JAVA_HOME to the correct path. If alternatives is in use, select the correct path there, then set JAVA_HOME.
/usr/sbin/alternatives --config java could be a good start?
That's what I was suggesting. One thing, though - that doesn't set JAVA_HOME, does it?
mark
Vreme: 12/20/2011 04:34 PM, m.roth@5-cent.us piše:
Ljubomir Ljubojevic wrote:
Vreme: 12/20/2011 04:11 PM, m.roth@5-cent.us piše:
e-letter wrote:
From: m.roth@5-cent.us
I would suggest that if openjdk doesn't work, you go with Sun/Oracle's java, which is the Source of All Java
Sun java was obtained. After attempt to run jedit, the following error occurred:
jedit Warning: $JAVA_HOME environment variable not set! Consider setting it. Attempting to locate java...
Ok, first trick: set your JAVA_HOME to the correct path. If alternatives is in use, select the correct path there, then set JAVA_HOME.
/usr/sbin/alternatives --config java could be a good start?
That's what I was suggesting. One thing, though - that doesn't set JAVA_HOME, does it?
I am not sure how all of this works. I base my answer on procedure for setting up java environment for Firefox and these two pages:
http://stackoverflow.com/questions/3350722/why-maven-ignores-my-java-home http://www.fedoraforum.org/forum/showpost.php?p=1131358&postcount=6
I do not have $JAVA_HOME at all, but my *.jar files work without a problem.
Stackoverflow link says: "JAVA_HOME=/usr/java/default", this is symlink for "/usr/java/latest" which is a symlink for chosen java's home directory (I guess).
But this is how far my knowledge goes on this.