LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2001, 07:50 AM   #1
Zpepperfly
LQ Newbie
 
Registered: May 2001
Posts: 2

Rep: Reputation: 0
Thumbs down


I am creating a new image(i.e distribution) for a diskless lab at the University I work for. I was using redhat 7.0 for the base but decided to redo it using redhat 7.1. I really need sun's jdk on there, and thought there would be no problem, since it worked on 7.0. I installed it last night version jdk1.3_02 using the rpm from Sun. When I tried to run "java" it complained about not finding "/usr/bin/cut". I knew that was not a big deal...a symlink fixed it ('cut" is in /bin). After that was fixed I still had problems; when I ran java it complained that it couldn''t find "libjvm.so". At this point I was through with the rpm, so I downloaded the self extracting file(which can be downloaded on the same page from sun). It installed correctly and got rid of the other previous problems. However when I try to run a program it just hangs. After I killing the hanging program it prints out:

[root@pepperfly IDE]# /usr/java/jdk1.3.0_02/bin/java PicB
# # An unexpected exception has been detected in native code outside the VM.# Program counter=0x40043350
#
# Problematic Thread: prio=1 tid=0x804db68 nid=0x139f runnable

Also, after I kill the java program, 4 or 5 java processes keep running in the background. Xosview reports 100% cpu usage and a 5.8 load! Someone else in my department (working independtly) has come across the same problem.

Does anyone have any idea?
 
Old 05-04-2001, 06:19 AM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
Red face

I don't have an answer for you, but I'll share my experience. I'm using Redhat 7.0, and I've downloaded the jdk1.3 as well. It works fine for console programs, but when I create a gui with AWT or SWING, none of the components appear, and on the console I get a font not found error, repeatedly. I don't understand how to fix this, or why it's a problem, but I think it has something to do with jdk1.3. This all happened about 2 months ago, so when I need to create a gui, or do something graphically, I go to another computer in my house.
 
Old 05-04-2001, 07:53 AM   #3
woodchuck
LQ Newbie
 
Registered: Apr 2001
Posts: 9

Rep: Reputation: 0
This is an identified (and fixed) defect with JDK and glibc 2.2.2. The JDC web site lists several workarounds. In true 'path of least resistance' fashion, I used the symlink to cut and ulimit workarounds, and java at least runs (hello world works). Your actual mileage may vary...

You can go read all about it on the JDC site (developer.java.sun.com) if you're so inclined. Bug numbers 4415774, 4414722, 4420076, 4445172, 4447270.

Here're the workarounds from the sun website:

ulimit -s 2000


xxxxx@xxxxx 2001-02-16

Also change /usr/bin/cut to cut as per duplicate bug report


xxxxx@xxxxx 2001-02-20

Floating stack is only enabled when glibc is compiled for linux-i686
(--enable-kernels=2.4.0). One can get around the problem by installing
glibc-2.2.*-i386.rpm which does not have floating stack.

Another possible workaround:
download glibc and glibc-linuxthreads source code
./configure --enable-add-ons
make
copy <glibc dir>/linuxthreads/libpthread.so to /lib/libpthread-0.9.so

xxxxx@xxxxx 2001-03-20

----------------

For those who don't want to build from source code and can't wait until
RH 7.1 FCS or glibc-2.2.3 being released, if you have access to a
Redhat 7.0 box, you can just copy over 'libpthread-0.9.so' from Redhat 7.0
to 7.1. libpthread in RH 7.0 uses fixed stack by default.

libpthread-0.9.so is normally placed under "/lib".

xxxxx@xxxxx 2001-04-16

------------------------------

With Redhat 7.1 FCS, "setenv LD_ASSUME_KERNEL 2.2.5", this will cause
JVM to link with glibc compiled for 2.2 kernel.

xxxxx@xxxxx 2001-04-19
 
Old 05-04-2001, 11:50 AM   #4
Zpepperfly
LQ Newbie
 
Registered: May 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, that worked

My thanks goes out to woodchuck. I used your workaround -- I had redhat 7.0 on another disk in my computer. I just copied it over. This is my first time using this web site, or anything like. It saved my alot of hours.

Note: I tried to find bug information on the java homepage and the redhat homepage, but I could find it. I'll visit the java developer homepage from now on.

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in psotgres7.4 with jdk1.3 mufy General 0 10-19-2004 05:44 AM
Ask help on installing jdk1.3 on Redhat linux7.1! jane207 Linux - Software 8 11-05-2001 04:16 PM
JDK1.3 and Fonts cptfuture Linux - Software 2 05-26-2001 10:57 AM
JAVA Jdk1.3????? oulevon Programming 0 03-04-2001 06:47 PM
Path for jdk1.3.0_02 oulevon Linux - Newbie 1 03-01-2001 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration