Sponsored Content
Operating Systems HP-UX Setting up new version of java Post 303007237 by anaigini45 on Tuesday 14th of November 2017 09:58:00 AM
Old 11-14-2017
Setting up new version of java

Hi,

I have got jre 1.5 that I have got to install in the HP.UX version 11.31.
I managed to install it with this command :

Code:
# swinstall -s /tmp/<jre.XXXXX.depot>

It automatically gets created in /opt/java1.5/jre/bin.
However, now I am not sure how to set the PATH to JAVA_HOME, and path to this /opt/java1.5/jre/bin. Are these two the same?

Also I used this command to try and set the PATH (wrong path) :

Code:
export PATH=/opt/java1.5/bin:$PATH

I can now see /opt/java1.5/bin at the beginning of the line when I do an
Code:
#echo $PATH

However, since the entry is wrong, how do I remove it?

Also what is the difference between using the command above to set the PATH variable, and also setting it directly in /etc/PATH?

And how do I ensure that I get the output of java version 1.5 when I type this :

Code:
java -version

As of now, when I run the command above, it says "java not found".
In other servers on the other hand, I get different java versions when I run the same command.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

echo Java version

Hi When I say java -version, the following text is printed java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc)) Is there a way to echo Java version? (1 Reply)
Discussion started by: neeto
1 Replies

2. Solaris

Setting link to newly installed Java version

Hi, I have Solaris 8 wih Java 1.2.2 as default. I just upgraded it to Java 2 version 1.4. But when I do "java -version: I get following: "Java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunjwit) How would I make solaris to look at my new java? If I have to... (4 Replies)
Discussion started by: harjitsingh
4 Replies

3. Solaris

Solaris 10 Java version

I have an issue here setting up ASR with a server. In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5 I downloaded and installed 1.6 But when I did java -version , its still showing 1.5 I captured the below from another... (4 Replies)
Discussion started by: incredible
4 Replies

4. UNIX for Advanced & Expert Users

Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version

Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1 a. Debian Squeeze (HP DL360). Need to use java version6 On Debian, I did apt-get install sun-java6-jdk. So when I check it's java version "1.6.0_22" Java(TM) SE... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. Solaris

java (java -version)

hi my box is a global zone with no local zones and the command java -version shows as "1.5.0_26". now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to... (2 Replies)
Discussion started by: newtoaixos
2 Replies

6. Shell Programming and Scripting

installed java version ?

Hi, I want to know what version of the java is installed? Please let me know the command or process to identify the installed java version in sun solaris box. Thanks in advance for all your support. (3 Replies)
Discussion started by: sridhardwh
3 Replies

7. Shell Programming and Scripting

Setting java and returning version

I am currently trying to write a script and I am not that great at wording it with taking in user input, it will do the following: ask " Have you stopped instances? " if instances are stopped, then I want it to change to the default java to 64 bits, and print the current version of java.... (1 Reply)
Discussion started by: bigbenn
1 Replies

8. UNIX for Dummies Questions & Answers

Switching the version of java used

Hello, I'm trying to run a program that needs java 7, but java 6 is in the default folder and I don't have permission to change the /usr/bin/java folder and change the version. I have java 7 downloaded in a different folder (~/java) and am wondering how I can use that version while running the... (1 Reply)
Discussion started by: Jautis
1 Replies
SUNFLOW(1)						       SUNFLOW DOCUMENTATION							SUNFLOW(1)

NAME
sunflow - rendering system for photo-realistic image synthesis SYNOPSIS
sunflow [option(s)] file(s) DESCRIPTION
sunflow is an open source rendering system for photo-realistic image synthesis. It is written in Java and built around a flexible ray tracing core and an extensible object-oriented design. It was created as a framework for experimenting with global illumination algorithms and new surface shading models. GENERAL OPTIONS
A summary of the options can be obtained by using one of the following options: -h, -help Display the list of available commands PERFORMANCES
Sunflow will run considerably faster with the so called server VM (Virtual Machine). This server VM is part of Java, but it's not included in the standard (JRE) installation of Java. The server VM starts up more slowly and uses more memory than the standard VM, but it runs a lot faster in many cases. Sunflow's built-in realtime raytracing benchmark (-rtbench) for example runs more than twice as fast with the server VM (exact speedup depends on your hardware). The easiest way to get the server VM is by installing the Java Development Kit (JDK). On Debian, it is possible to install different JVM at the same time, amongst which: gij-4.2 (main), openjdk-6-jre (main), sun-java5-jre (non-free), sun-java6-jre (non-free). To change the java link from one to another, use (with root privileges): "update-alternatives --config java" A pretty good choice should be openjdk-6-jre. See also the "CONFIGURATION FILES" section. SUGGESTED OPTIONS
As explained above, the following options can be used to obtain a performance gain, but depend on JVM used: -server Use the server virtual machine. The JDK matching the selected JVM has to be installed for this option to actually work, e.g. sun-java5-jdk (non-free). A warning will be displayed otherwise, and this option ignored. -XmxMEM Use a memory upper limit of MEM instead of the default (probably 64M). Example of valid values: 512M, 1G. Those options are best set through the SUNFLOW_JAVA_OPTIONS environment variable, or stored in the configuration files. CONFIGURATION FILES
To allow flexible configuration, the sunflow wrapper sources two configuration files: /etc/sunflowrc and ~/.sunflowrc, in this order. The syntax is simple "export KEY=VALUE". Lines beginning with a sharp sign are ignored. The following options are supported: SUNFLOW_JAVA The java virtual machine to use. It's then possible to have e.g. a system-wide java alternative pointing to /usr/bin/gij-4.2, while sunflow uses a different JVM, e.g. /usr/lib/jvm/java-1.5.0-sun-1.5.0.12/bin/java. If not set (the default), java will be called, meaning the system-wide alternative will be used. SUNFLOW_JAVA_OPTIONS Those are the options to be passed to the java interpreter, see above for examples. SUNFLOW_OPTIONS The list of options to pass to sunflow automatically to avoid repeating them on each invokation of sunflow. Quotation marks are needed if more than one option is specified. If not set (the default), no option is passed to sunflow. SEE ALSO
/usr/share/doc/sunflow/README.Debian AUTHOR
Sunflow was written by Christopher Kulla <ckulla@gmail.com>. This manual page was written by Cyril Brulebois <kibi@debian.org>, for the Debian project (and may be used by others). It is licensed under the same terms as the package itself. 0.07.2.svn396 2011-08-07 SUNFLOW(1)
All times are GMT -4. The time now is 08:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy