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: Mon Jul 07 2003 - 11:00:12 AKDT


I do not have a $JAVA_HOME set up, but my $PATH goes down to the bin
directory for the JDK and JRE. This is the set up for Oracle that the
install scripts handle.

I will check my set up at home tonight. I have Apache and Tomcat set up
there and should be more generic.

The 'java -version' returned 1.2; your install indicates version 1.4.
Try running it from the /usr/bin/j2re1.4.1_03/bin/ directory and see
what you get. It looks like it is finding the 1.2 binary first.

You can include the path info in your .profile in your home directory,
or root can add it to /etc/profile if it needs to always be available.
At least, that is the case in Red Hat.

-----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 : Mon Jul 07 2003 - 11:00:15 AKDT