File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Installing java on solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing java on solaris" Watch "Installing java on solaris" New topic
Author

Installing java on solaris

Kavya Anjali
Ranch Hand

Joined: Mar 23, 2006
Posts: 30
I need to install Java 1.5 on a Sun-Solaris machine. However I havent worked on Solaris before. Nevertheless, I followed a few steps given on the website.

I have downloaded and installed the JAVA version.

$java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)

$whence java
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/bin/java

$whence javac
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5dev/reloc/jdk/instances/jdk1.5.0/bin/javac

$echo $LD_LIBRARY_PATH
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/dt/lib:/usr/openwin/lib

$cd /wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/lib/sparc
$ls -l libjava.so
-rwxrw-r-- 1 hub05dA hub05d 154884 Oct 12 11:32 libjava.so

But when trying to run javac

$javac -verbose test.java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.


Can you please guide me as to what I need to do so that javac works properly ?


SCJP 5.0
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
What is your PATH? It's possible that the default JDK that is installed with Solaris is before the directory containing the JDK you are using.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing java on solaris