09-01-2005
You can change the JAVA_HOME to point to the JAVA1.4 everytime you run your new application.
Yes, it will override the existing JAVA_HOME only for that particular shell(tty). Else JAVA_HOME will point to JAVA1.2
Another way is to put JAVA_HOME in a configuration file, if the application reads from configuration files.
vino
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Aside from the normal Linux distros, OS X, and the BSDs, what other forms of UNIX are there? I want to try one on a very old 75mhz box I have. Thanks in advance. (3 Replies)
Discussion started by: AMDPwred
3 Replies
2. UNIX Desktop Questions & Answers
:confused:
What are some of the most popular versions of Unix and why? (2 Replies)
Discussion started by: jpawlicki2
2 Replies
3. Shell Programming and Scripting
Hi all ---
I have the need to manage multiple versions of a set of utility scripts -- both shell and SQL and other .dat files. I am wondering if anyone out there knows of a good way to "PATH" to SQL and text files in a way similar to how PATH facilitates finding executables in a pre-specified... (2 Replies)
Discussion started by: DennisB
2 Replies
4. UNIX for Dummies Questions & Answers
I wrote a java code and compiled it using j2sdk 1.4.2 version. But i have to port those to a unix machine in which a very old version of unix has installed. say unix 264 version4.0 alpha. And the default java version that comes with that unix version is also very old and it is java version... (0 Replies)
Discussion started by: rasa_still_here
0 Replies
5. UNIX for Advanced & Expert Users
Hi,
Iam trying to code in java and wanted to run the commands in the Unix remote servers. I have the following code to run multiple GREP commands in a single session.
But when i execute this, the first command executes successfully, whereas from the next line it says
"Exception Occured... (1 Reply)
Discussion started by: gravi2020
1 Replies
6. Linux
Hello!
I have a set of headers and libraries I want to use but they are mixed with ones I do not want to use. They are part of some official stuff, so I cannot modify them while begging and pleading for weeks.
These headers and libraries are located here
/long/official/path/to/include... (0 Replies)
Discussion started by: gobi
0 Replies
7. UNIX and Linux Applications
Since apt-get and yum won't let you install multiple versions of firefox I will explain how to here.
1. Go to this page and decide which version of firefox you want.
ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
I used this one. ... (0 Replies)
Discussion started by: cokedude
0 Replies
8. UNIX for Dummies Questions & Answers
Hi just wondering really ......
I've done a showrev -p and am somewhat surprised to see apparently multiple different versions of the same patches ......
112161-02
112161-03
112161-04
It's my understanding that a newer revision of a patch , -04 in this case supercedes all previous... (2 Replies)
Discussion started by: Martincorneuk
2 Replies
9. Red Hat
I need to install a older version of gnupg but not delete the current version of gnup2 on RHEL 6.4. What would be the correct syntax to install this? Tried to install and relocate it and still getting conflicts.
aXXXXXX:root# rpm -ivh /root/rpmbuild/RPMS/x86_64/gnupg-1.4.16-1.x86_64.rpm... (2 Replies)
Discussion started by: soupbone38
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
I noticed a weird behavior in extundelete way to choose the filename to which it will restore a given inode. Here is an example :
root@rescue:~# for after in '' 0 740 741 $(date -d 'now - 1 year' +%s); do rm -rf RECOVERED_FILES/; echo -e "$(date -d@$after 2> /dev/null || echo No... (4 Replies)
Discussion started by: chebarbudo
4 Replies
LEARN ABOUT MOJAVE
java_home
java_home(1) General Commands Manual java_home(1)
NAME
java_home - return a value for $JAVA_HOME
SYNOPSIS
/usr/libexec/java_home [options]
DESCRIPTION
The java_home command returns a path suitable for setting the JAVA_HOME environment variable. It determines this path from the user's
enabled and preferred JVMs in the Java Preferences application. Additional constraints may be provided to filter the list of JVMs avail-
able. By default, if no constraints match the available list of JVMs, the default order is used. The path is printed to standard output.
OPTIONS
-v or --version version
Filters the returned JVMs by the major platform version in "JVMVersion" form. Example versions: "1.5+", or "1.6*".
-a or --arch architecture
Filters the returned JVMs by the architecture they support. Example architectures: "i386", "x86_64", or "ppc".
-d or --datamodel datamodel
Filters the returned JVMs capable of running in 32 or 64-bit mode. Supported datamodels: "-d32" and "-d64". Specifying a datamodel
is synonymous with specifying a particular architecture.
-t or --task task
Selects from the list of JVMs which can run a specific task. The order of each of these lists is set by the Java Preferences appli-
cation. Supported tasks: "Applets", "WebStart", "BundledApp", "JNI" and "CommandLine". The default task is "CommandLine".
-F or --failfast
Immediately fails when filters return no JVMs; does not print out the path to the default $JAVA_HOME.
--exec command ...
Executes the command at $JAVA_HOME/bin/<command> and passes the remaining arguments. Any arguments to select which $JAVA_HOME to use
must precede the --exec option.
-X or --xml
Prints the list of selected JVMs and associated properties as an XML plist to stdout.
-V or --verbose
Prints the matching list of JVMs and architectures to stderr.
-h or --help
Brief usage information.
USAGE
/usr/libexec/java_home helps users set a $JAVA_HOME in their login rc files, or provides a way for command-line Java tools to use the most
appropriate JVM which can satisfy a minimum version or architecture requirement. The --exec argument can invoke tools in the selected
$JAVA_HOME/bin directory, which is useful for starting Java command-line tools from launchd plists without hardcoding the full path to the
Java command-line tool.
Usage for bash-style shells:
$ export JAVA_HOME=`/usr/libexec/java_home`
Usage for csh-style shells:
% setenv JAVA_HOME `/usr/libexec/java_home`
04 August 2010 java_home(1)