Java Run Time


 
Thread Tools Search this Thread
Operating Systems Solaris Java Run Time
# 1  
Old 06-16-2011
Java Run Time

I have installed IBM Java Runtime V1.4.2 in solaris. but when i give java -version, it gets me this:java version "1.5.0_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02)
Java HotSpot(TM) Client VM (build 1.5.0_20-b02, mixed mode, sharing)

can you please tell me how do i get to point to IBM Java run time
# 2  
Old 06-16-2011
The default java is /usr/bin/java and is the system installed java.

Check with
Code:
which java

IBM's JRE installs under /opt

You'll need to put the path to the IBM jre ahead of the existing java in your PATH in your .profile/.bash_profile
Code:
PATH=/opt/IBMJava......./jre/bin:$PATH
export PATH

# 3  
Old 06-16-2011
Tools

thanks..but do i need to se the java path too..
as in export JAVA_HOME=/opt/ibm/java/
# 4  
Old 06-16-2011
In the Websphere start up scripts ?

Yes you do.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to compile and run java in UNIX?

Hi Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin In order to compile the java prog im typing the following command after entering into the bin directory: C:\Program... (2 Replies)
Discussion started by: ak3141
2 Replies

2. Shell Programming and Scripting

How to run java from shell

Hi All, I am trying to run a grep command which creates an output file. Then I will run a java file which take that file and process that. My java file uses other java files and library jars. I have tried below code but I am getting compilation error,it can not find other java files in same... (1 Reply)
Discussion started by: kmajumder
1 Replies

3. Programming

Run Unix commands from Java

Greeings all Im trying to excute a command from Java and direct the output to the main output screen or to another file .... can you please help with this ? can I use filewriter for this ? Here is my code.... import java.io.BufferedReader; import java.io.File; import java.io.FileWriter;... (3 Replies)
Discussion started by: yahyaaa
3 Replies

4. UNIX for Advanced & Expert Users

run shell script in java?

hi, how to run shell script in java? i have script a.sh which takes 1 argument as input and returns exit code integer. how to handle it in java. should i have to invoke process to execute it and then wait til it completes ? please explain with code thanks (1 Reply)
Discussion started by: crackthehit007
1 Replies

5. Solaris

how to compile and run java programs

Hi, I have installed Solaris 10 on a VMware. How to compile a java program as there is no javac in 'bin' directory. Thanks in advance for answers and sorry if the question is soo basic. (3 Replies)
Discussion started by: mayahari
3 Replies

6. Shell Programming and Scripting

how can i run java program from any where

Hello all sorry didnt know where to post it i compiled simple program that using "System.getProperty("user.dir");" now i compiled the program under directory foo and and its running great when i do "java myapp" i included this directory in the $PATH env variable so i could see it fro any where... (1 Reply)
Discussion started by: umen
1 Replies

7. UNIX for Dummies Questions & Answers

newbie need help to run java in UNIX

I need to run .java from a directory. i.e. c:\aaa\bbb\ccc.java first I compile all the java using javac *.java under the c:\aaa\bbb directory, now I want to run this command under cd .. , Here is the command that I need to type.. java -classpath... (5 Replies)
Discussion started by: uci
5 Replies

8. UNIX for Dummies Questions & Answers

run a java file on UNIX?

HI, I want to run my .java file on a SunOS 5.8 Unix machine. The java file is writen with Ready to Program (Similar to Jbuilder) on a PC. Thanks!! (3 Replies)
Discussion started by: leotopia
3 Replies

9. UNIX for Dummies Questions & Answers

run java using shell script

I have written a java file which runs fine when I compile and run it from the command prompt manually. i.e, >javac z.java >java z I have put these two lines in a executable file. But when I run the executable file, it throws an error 'Thread Exception'. Any thoughts? #executable file... (1 Reply)
Discussion started by: inpavan
1 Replies
Login or Register to Ask a Question