Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Post by Steve Sanya » Sun, 31 Dec 1899 09:00:00



Hi,

I installed JDK 117 and the native_threads addition.  I keep getting the
two following errors:

If I try to use jre, I always see:

Could not locate Java runtime

If I try to run DB2, which uses native threads, I get the following
error:

Unable to initialize threads: cannot find class java/lang/Thread

I can't figure out why this is occurring.  Here are my environment
settings:

CLASSPATH=/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/sqlj.zip:/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/db2java.zip:/home/db2adm/sqllib/java/runtime.zip:.

LD_LIBRARY_PATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads:/usr/LessTif/Motif2.0/lib:/home/db2adm/sqllib/lib:/usr/java/jdk117_v3/lib/i686/native_threads

LIBPATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads
THREADS_FLAG=native
PATH=/usr/jdk117_v3/bin/i686/native_threads:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/home/db2adm/sqllib/bin:/home/db2adm/sqllib/adm:/home/db2adm/sqllib/misc:/home/db2adm/bin

I am running the following Kernel:
Linux XXXXXXXX.2.9-19mdk #1 Wed May 19 19:53:00 GMT 1999 i586 unknown

In addition, I have installed glibc.

Can anyone give me an idea where I am going wrong?  Why won't the
JRE run, and why am I getting this thread error?

Regards
Steve

 
 
 

Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Post by d3v » Sun, 31 Dec 1899 09:00:00


Any reason for using jdk 117 ? Why not use the 1.2.2 api ?


Quote:> Hi,

> I installed JDK 117 and the native_threads addition.  I keep getting the
> two following errors:

> If I try to use jre, I always see:

> Could not locate Java runtime

Shrug not to much info to go there and never really delt with just the JRE.

Quote:

> If I try to run DB2, which uses native threads, I get the following
> error:

What user are you running it as ? Is the below env vars from this user ?

Quote:

> Unable to initialize threads: cannot find class java/lang/Thread

> I can't figure out why this is occurring.  Here are my environment
> settings:

CLASSPATH=/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/sqlj.zip:/
usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/db2java.zip:/home/db2
adm/sqllib/java/runtime.zip:.
LD_LIBRARY_PATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads:/usr/LessTif
/Motif2.0/lib:/home/db2adm/sqllib/lib:/usr/java/jdk117_v3/lib/i686/native_th
reads

Hrm ya I've run into tons of shared lib problems maybe add the new dirs to
/etc/ld.so.config then run ldconfig.

Quote:

> LIBPATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads
> THREADS_FLAG=native

PATH=/usr/jdk117_v3/bin/i686/native_threads:/bin:/usr/bin:/usr/local/bin:/us
r/bin/X11:/usr/X11R6/bin:/home/db2adm/sqllib/bin:/home/db2adm/sqllib/adm:/ho
me/db2adm/sqllib/misc:/home/db2adm/bin
Hope some of this helps. Give some thought to jdk1.2.2 if there is a
compatibility issue.
--d3vnu11

 
 
 

Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Post by Steve Sanya » Sun, 31 Dec 1899 09:00:00


I need to use 117 v3 with DB2.  DB2's GUI tools and stored procedures won't
work with 1.2.2.


>Any reason for using jdk 117 ? Why not use the 1.2.2 api ?



>> Hi,

>> I installed JDK 117 and the native_threads addition.  I keep getting the
>> two following errors:

>> If I try to use jre, I always see:

>> Could not locate Java runtime

>Shrug not to much info to go there and never really delt with just the JRE.

>> If I try to run DB2, which uses native threads, I get the following
>> error:

>What user are you running it as ? Is the below env vars from this user ?

>> Unable to initialize threads: cannot find class java/lang/Thread

>> I can't figure out why this is occurring.  Here are my environment
>> settings:

>CLASSPATH=/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/sqlj.zip:
/
>usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/db2java.zip:/home/db
2
>adm/sqllib/java/runtime.zip:.

>LD_LIBRARY_PATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads:/usr/LessTi
f
>/Motif2.0/lib:/home/db2adm/sqllib/lib:/usr/java/jdk117_v3/lib/i686/native_t
h
>reads

>Hrm ya I've run into tons of shared lib problems maybe add the new dirs to
>/etc/ld.so.config then run ldconfig.

>> LIBPATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads
>> THREADS_FLAG=native

>PATH=/usr/jdk117_v3/bin/i686/native_threads:/bin:/usr/bin:/usr/local/bin:/u
s
>r/bin/X11:/usr/X11R6/bin:/home/db2adm/sqllib/bin:/home/db2adm/sqllib/adm:/h
o
>me/db2adm/sqllib/misc:/home/db2adm/bin
>Hope some of this helps. Give some thought to jdk1.2.2 if there is a
>compatibility issue.
>--d3vnu11

 
 
 

Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Post by Steve Sanya » Sun, 31 Dec 1899 09:00:00


As an additional note:

I can create a simple "Hello World!" program and run that using javac to
compile and java to run.  I can't use jre, however.  And I haven't tried
with a threaded app yet.

Regards
Steve


>Hi,

>I installed JDK 117 and the native_threads addition.  I keep getting the
>two following errors:

>If I try to use jre, I always see:

>Could not locate Java runtime

>If I try to run DB2, which uses native threads, I get the following
>error:

>Unable to initialize threads: cannot find class java/lang/Thread

>I can't figure out why this is occurring.  Here are my environment
>settings:

>CLASSPATH=/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/sqlj.zip:

/usr/jdk117_v3/lib/classes.zip:/home/db2adm/sqllib/java/db2java.zip:/home/db
2adm/sqllib/java/runtime.zip:.
Quote:

>LD_LIBRARY_PATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads:/usr/LessTi

f/Motif2.0/lib:/home/db2adm/sqllib/lib:/usr/java/jdk117_v3/lib/i686/native_t
hreads
Quote:

>LIBPATH=/usr/lib:/usr/jdk117_v3/lib/i686/native_threads
>THREADS_FLAG=native
>PATH=/usr/jdk117_v3/bin/i686/native_threads:/bin:/usr/bin:/usr/local/bin:/u

sr/bin/X11:/usr/X11R6/bin:/home/db2adm/sqllib/bin:/home/db2adm/sqllib/adm:/h
ome/db2adm/sqllib/misc:/home/db2adm/bin

- Show quoted text -

Quote:

>I am running the following Kernel:
>Linux XXXXXXXX.2.9-19mdk #1 Wed May 19 19:53:00 GMT 1999 i586 unknown

>In addition, I have installed glibc.

>Can anyone give me an idea where I am going wrong?  Why won't the
>JRE run, and why am I getting this thread error?

>Regards
>Steve

 
 
 

Difficulty setting up JDK1.1.7 v3 on RHat Linux 6.0

Post by anap.. » Sun, 31 Dec 1899 09:00:00




Quote:> As an additional note:

> I can create a simple "Hello World!" program and run that using javac
to
> compile and java to run.  I can't use jre, however.  And I haven't
tried
> with a threaded app yet.

> Regards
> Steve

Try creating a symbolic link between your application directory and
"jre" in the jdk directory.  It worked for me.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. JDK1.2.2 vs JDK1.1.7 on COL 2.3 -- some comments

I'm running a Toshiba Satellite 2595CDS -400Mhz 64Mbyte,4 gig with Windows
98/Caldera Systems 2.3 and a 2.2.12 kernel. Installed on this I have "Sun's"
JDK1.2.2 port and Blackdown's JDK1.1.7 port. On the Windows side I also have
JDK 1.2.2 and the Beta JDK 1.3

I just upgraded from Caldera Systems 1.3 and a 2.0.35 kernel. On this I had
Blackdown's JDK1.1.7 port

I recently had a Samsun laptop 75Mhz ,24Mbte, 500Mbyte that had Windows 95 /
Caldera Systems 1.3

Upstairs I'm running an ACER 125Mhz, 16Mbyte that has Windows 95/Caldera
Systems 1.3 with the JDK1.1.7 port.

On each machine I have the same Java app that I developed starting with the
first Java release and upgraded it through subsequent releases until now
it's totally Swing.  On my Toshiba I can run the app with JDK1.17 and
JDK1.2.2 side by side.  On the Linux side the JDK1.2.2 takes 3 seconds to
draw a graph whereas JDK1.1.7 draws it in a flash.

Is there anyone else out there that is seeing this?
It's not Linux. It's not KDE.  It's Suns JDK1.2.2.  The question is why.  I
haven't touched it. It's configured as it was downloaded. The JDK1.2.2 on
the Windows side does just fine.  No it's not the 1.3 swap problem that's
been fixed.
The only abnormal thing about the execution is the system's inability to
resolve a lot of fonts when the app comes up, but I don't see how that would
cause the slowness in the graphing.
Going into Graphics2D doesn't help. I took it out to see if it sped up.
Any suggestions out there.  How about the font thing.  How do I resolve
that.

Thanks,

Jim

2. tree-like directory listings

3. Native threads with Java JDK1.1.7 on SuSE Linux

4. Newsserver for local requirements?

5. Problem Booting Sun SPARCstation 5 after installing JDK1.1.7_08 required patches

6. Broken pipe

7. Problem Booting Sun SPARCstation 5 after installing JDK1.1.7_08 required patches.

8. Tekronix X-Terminal problem

9. FreeBSD-3.1 and jdk1.1.7 problem..

10. redhat6.0 jdk1.1.7 install error

11. ICQJava and JDK1.1.7

12. Problem installing required patches for JDK1.1.7 on Solaris 2.6 (Sparc)