RE: [Fwd: Re: Java VM for Linux not on PATH]


Subject: RE: [Fwd: Re: Java VM for Linux not on PATH]
From: Hassler, Jeff (Jeff.Hassler@asc.asrc.com)
Date: Tue Jul 08 2003 - 06:44:03 AKDT


My home machine has a $JAVA_HOME set to /usr/java, and $PATH has
/usr/java/bin.

I also checked some documentation; they recommend that $JAVA_HOME be set
and that $PATH include $JAVA_HOME/bin.

-----Original Message-----
From: Tim Jordan, Network Services
[mailto:Timothy_Jordan@labor.state.ak.us]=20
Sent: Monday, July 07, 2003 10:38 AM
To: aklug@aklug.org
Subject: [Fwd: Re: Java VM for Linux not on PATH]

=20

I did:
[root@Tim-on-Linux bxnctej]#which java
/usr/bin/java

[root@Tim-on-Linux bxnctej]# java -version
java version "1.2"
gij (GNU libgcj) version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

I think my problem is that I'm not setting the /usr/bin/java to my $PATH
correctly.
I did PATH=3D$PATH:/usr/bin/java[1]

I've read posts about this problem and several people mention the bash
profile and JAVA_HOME=3D.....
But I cannot find this in any of my .bash files under my home directory.

Also, this seems to be an older version of Java as I installed:
j2re1.4.1_03 It shows up in /usr/bin/j2re1.4.1_03 Can you advise on
exactly
how I should set my PATH to include /usr/bin/j2re1.4.1_03/bin/
permanetly?

Tim

Hassler, Jeff wrote:
I believe you need the full path down to the bin directory for the java.
Suchas:
/opt/IBMJava2-131/bin:/opt/IBMJava2-131/jre/bin:/usr/local/bin:/bin:/usr
[2]
/bin:/usr/X11R6/bin:/home/oracle/bin[3] To determine if java can be
found,
run 'java -version'; this will return the java vm version once the path
is
set up. [oracle]$ java -version java version "1.3.1" Java(TM) 2 Runtime
Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1,
J2RE
1.3.1 IBM build cxia32131-20020302 (JIT enabled: jitc)) Also, some
applications require their own environmental variables for java. Oracle,
for
example, requires a JRE_DIR variable. -----Original Message----- From:
Tim
Jordan, Network Services [mailto:Timothy_Jordan@labor.state.ak.us[4]]
Sent:
Monday, July 07, 2003 9:56 AM To: aklug@aklug.org[5] Subject: Java VM
for
Linux not on PATH Trying to install an application this morning which
required Java Virtual Machine. I went to Sun's site and downloaded the
latesthttp://www.java.com/en/download/linux_manual.jsp[1[6]] The java
installwent well but I still get this error when trying to install my
initialapplication: No Java Virtual Machine can be found from your PATH
varible. I have added /usr/java/ :/usr/java/j2re1.4.1_03/plugin/i386/:
/usr/java/j2re1.4.1_03/ to my PATH with no sucess. Please
help....Thanks,
Tim
--=20
[IMG]
--=20
[IMG]

--- Links ---
   1 PATH:/usr/bin/java
   2 bin:/opt/IBMJava2-131/jre/bin:/usr/local/bin:/bin:/usr
   3 bin:/usr/X11R6/bin:/home/oracle/bin
   4 mailto:Timothy_Jordan@labor.state.ak.us
   5 mailto:aklug@aklug.org
   6 http://www.java.com/en/download/linux_manual.jsp%5B1

-- Binary/unsupported file stripped by Listar --
-- Err : No filename to use for decode, file stripped.
-- Type: image/gif

-- Binary/unsupported file stripped by Listar --
-- Type: image/gif
-- File: pb_linux.gif

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Jul 08 2003 - 06:44:07 AKDT