Tuesday, March 29, 2005

HowTo Java-4:Hey I am not getting the lib of java in UNIX...???

As we all know UNIX is an UNIQUE`s UNIQUE creation...Famous for its weirdness.I faced manyyy problems at the begining while trying to run java codes.The simple codes run.But when I need to set classpath etc.I used to got stuck.

A simple basic hands-on unix java from the sun site.
1.The /usr/java symbolic link is used to define the default Java environment on a Solaris system when more than one Java environment is installed. Currently, JDK 1.1 is installed in /usr/java1.1, J2SDK 1.2.2 is installed in /usr/java1.2, and J2SDK 1.3.0 and J2SDK 1.3.1 are installed by default in /usr/j2se.

2.Prior to the Solaris 8 release, the /usr/java symbolic link pointed to /usr/java1.1 if both JDK 1.1 and J2SDK 1.2.2 were installed, making JDK 1.1 the default Java platform. Starting with the Solaris 8 release, the /usr/java symbolic link points to /usr/java1.2 by default if both JDK 1.1 and J2SDK 1.2.2 are installed, making J2SDK 1.2.2 the default Java platform.

3.Because there are symbolic links in /usr/bin (also known as /bin) that use /usr/java (for example, /usr/bin/java refers to /usr/java/bin/java), this /usr/java link can change the default Java installation seen by most users. Many Java applications run on any of J2SDK 1.3.1, J2SDK 1.2.2, or JDK 1.1, but users and applications might want to be selective about which Java installation they use.

4.If you want to use JDK 1.1, /usr/java1.1/bin should be on your PATH before /usr/bin. If you want to use J2SDK 1.3.1, /usr/j2se/bin should be on your PATH before /usr/bin.

5.It is possible for root users to make J2SDK 1.3.1 the default Java platform by modifying the /usr/java symbolic link to point to /usr/j2se. However, changing the symbolic link in this manner may cause problems for some Java applications that are expecting to use earlier versions of the Java platform. See the online compatibility documentation for information about incompatibilities between J2SDK 1.2 and J2SDK 1.3.

I pecked all those from....:
http://java.sun.com/j2se/1.3/install-solaris.html

Labels:

0 Comments:

Post a Comment

<< Home