LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-23-2004, 11:04 AM   #1
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
"java -version" hangs on RHEL3


Hi all,

i installed the latest j2re RPM and when I type java -version it just hangs there. any ideas why this may be?
 
Old 01-08-2005, 03:20 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Do a system call trace and see where it hangs.

-twantrd
 
Old 01-08-2005, 05:59 PM   #3
hkb33
Member
 
Registered: Sep 2004
Location: Raleigh NC
Distribution: Fedora / RHEL
Posts: 171

Rep: Reputation: 30
There's a problem in RHEL 3 and both IBM's java (which is supported by Red Hat) and Sun's j2re (which is NOT supported by Red Hat). In either case, invoking java causes a hang or, in some cases, an outright segfault. This only happens in the SMP kernel, not the uniprocessor one.

IBM is working with Red Hat to fix this. In the meantime, the following workaround can be implemented. This works with either IBM's Java or Sun's Java:

1) Open the /etc/grub.conf file in your preferred text editor and place the noexec=off parameter on the kernel line for the smp kernel like this:

title Red Hat Enterprise Linux (2.4.21-20.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-20.ELsmp ro root=LABEL=/ noexec=off
initrd /initrd-2.4.21-20.ELsmp.img

2) reboot and try your java commands again.
 
Old 01-21-2005, 03:46 PM   #4
webminster
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Has anyone had luck with the noexec= option? Have had problems porting an app to RHEL3 (actually CentOS, a rebuilt RHEL3 clone) with the hangs (strace showing hang on futex). Have tried this option with no change. Have also tried the LD_ASSUME_KERNEL=2.4.1 trick found elsewhere, to no avail.
-Alan
 
Old 01-22-2005, 04:06 PM   #5
hkb33
Member
 
Registered: Sep 2004
Location: Raleigh NC
Distribution: Fedora / RHEL
Posts: 171

Rep: Reputation: 30
I don't know about CentOS, but supposedly the new RHEL 3 kernel 2.4.21-27.0.2 fixes any problems previously experienced with java on the 2.4.21-20 kernels.
 
Old 01-22-2005, 06:10 PM   #6
webminster
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Saw that come out yesterday, plan to try it real soon. Unfortunately (maybe), been running the 2.4.21-27.0.1 kernel, not the 2.4.20 kernels.
 
Old 01-26-2005, 09:52 AM   #7
webminster
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Guess it's worth replying to my own post, to note that the new kernel does /not/ fix the issue. I see that RHEL 4 is due out real soon now, and looks very Fedora-like (and the problem does not happen on FC2). I may have to go that direction to fix the problem, wish not.
-Alan
 
Old 02-03-2006, 11:29 AM   #8
sstites
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
LD_ASSUME_KERNEL fixed same problem on SLES 9.0.

I was exeperiencing the same probem with IBM JDK 1.4.2 on SLES 9.0 SMP kernel.
The LD_ASSUME_KERNEL=2.4.1 fixed the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM
I cannot use "java chat". Browser says plugin required "x-java-vm". jdruin Linux - Software 4 04-18-2004 05:44 PM
Java does "age" or "Age" matter when declaring an Int?? Laptop2250 Programming 3 10-13-2003 12:34 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration