09-22-2011
I have followed the below procedure to point it to java 1.6
>ls -la /usr/java
lrwxrwxrwx 1 root other 15 Oct 19 2009 /usr/java -> jdk/jdk1.5.0_04
>cd /usr
>sudo rm -rf java
Password:
>sudo ln -s jdk/jdk1.6.0_27 java
>ls -la /usr/java
lrwxrwxrwx 1 root root 15 Sep 22 15:02 /usr/java -> jdk/jdk1.6.0_27
>java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)
I do have below in my /usr/jdk directory
drwxr-xr-x 5 root bin 512 Sep 22 14:44 .
drwxr-xr-x 46 root sys 1024 Sep 22 15:13 ..
lrwxrwxrwx 1 root root 27 Oct 19 2009 entsys-j2se -> /usr/jdk/instances/jdk1.5.0
drwxr-xr-x 3 root bin 512 May 20 2009 instances
lrwxrwxrwx 1 root other 7 May 20 2009 j2sdk1.4.2_11 -> ../j2se
-rwxr-xr-x 1 root root 90228204 Sep 22 14:26 jdk-6u27-solaris-sparc.sh
-rwxr-xr-x 1 root root 12831072 Sep 22 14:26 jdk-6u27-solaris-sparcv9.sh
lrwxrwxrwx 1 root other 18 Oct 19 2009 jdk1.5.0_04 -> instances/jdk1.5.0
drwxr-xr-x 10 root root 512 Sep 22 14:45 jdk1.6.0_27
lrwxrwxrwx 1 root other 11 Oct 19 2009 latest -> jdk1.5.0_04
drwxr-xr-x 7 root bin 512 May 20 2009 packages
Please correct me if i am wrong.
Last edited by prash358; 09-22-2011 at 12:42 PM..
8 More Discussions You Might Find Interesting
1. Solaris
what is the command to see the java version in solaris 8 and solaris 10 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies
2. Solaris
Hi, all
I wish to implement ASR for a SUN server in my production.
currently the version of JAVA for this SUN server is
root@procyon # java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04,... (3 Replies)
Discussion started by: SmartAntz
3 Replies
3. Solaris
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. Solaris
hi i need to upgrade my solaris mysql version.. can u guide me the upgrade steps..
my current version is
4.0.31-log
i need to upgrade to 5.0
..
thanks..
---------- Post updated at 12:04 PM ---------- Previous update was at 11:28 AM ----------
my solaris version is 10..
----------... (2 Replies)
Discussion started by: senkerth
2 Replies
5. UNIX for Advanced & Expert Users
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
6. Solaris
Hello,
I have been searching on unix.com and google in general. I can't find what I am looking for. Maybe too dumb of a question.
I've downloaded and installed the sunfreeware package for PHP 5.3.6 and made sure all dependencies are satisfied.
Apache 2.2.8 is currently installed and... (2 Replies)
Discussion started by: CSLibrary
2 Replies
7. Shell Programming and Scripting
Hi,
Can you please assist in upgrading perl from 5.8.x to 5.10?
Right now i am running the below verison on my Solaris SPARC machine.
Thanks in advance (8 Replies)
Discussion started by: prash358
8 Replies
8. Solaris
Hi Guys,
Could you please tell me how to read this Solaris version:-
Solaris 8 HW 5/03 s28s_hw2wos_06a SPARC
Thanks. (3 Replies)
Discussion started by: manalisharmabe
3 Replies
LEARN ABOUT DEBIAN
make-jpkg
MAKE-JPKG(1) General Commands Manual MAKE-JPKG(1)
NAME
make-jpkg - builds Debian packages from Java binary distributions
SYNOPSIS
make-jpkg [OPTION]... [FILE]
DESCRIPTION
make-jpkg builds a Debian package from the given Java distribution FILE.
Supported java binary distributions currently include:
* Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
- The J2SE Development Kit (JDK), version 6 (update >= 10), 7
- The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
- The J2SE API Javadoc, version 6 (update >= 10), 7
(Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
The following options are recognized:
--full-name NAME
full name used in the maintainer field of the package
--email EMAIL
email address used in the maintainer field of the package
--changes
create a .changes file
--revision
add debian revision
--help display help text and exit
--version
output version information and exit
Download a supported Java RE or SDK or API tar.gz or self-extracting archive from http://www.oracle.com/technetwork/java/javase/downloads
and execute make-jpkg file with the downloaded file. The program asks the user for additional information and builds a Debian binary pack-
age in the current directory.
The program requires about 200 MB free disk space in a temporary directory. The temporary directory defaults to /tmp but you can specify an
alternate directory by setting the environment variable TMPDIR.
EXAMPLE
To install Oracle(TM) 7 Standard Edition JDK, download a release - 64 bits version of update 2 from http://www.oracle.com/technet-
work/java/javase/downloads/jdk-7u2-download-1377129.html in this example - and invoke make-jpkg:
make-jpkg <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz
This generate a Debian package in the current directory, that can be installed using dpkg:
dpkg -i oracle-j2sdk1.7_1.7.0+update2_amd64.deb
When you're done, you can delete initial download as well as generated package:
rm <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz oracle-j2sdk1.7_1.7.0+update2_amd64.deb
ENVIRONMENT
TMPDIR base directory used for temporary files (defaults to /tmp)
J2SE_PACKAGE_FULL_NAME
full name used in the maintainer field of the package; if none is supplied then the default of "Debian Java Maintainers" is used.
J2SE_PACKAGE_EMAIL
email address used in the maintainer field of the package; if none is supplied the default of "pkg-java-maintain-
ers@lists.alioth.debian.org" is used.
SEE ALSO
update-java-alternatives(1)
AUTHOR
This manual page was written by Hubert Schmid <j2se-package@z42.de>.
It is now maintained by the Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>.
January 22, 2012 MAKE-JPKG(1)