• Post Reply Bookmark Topic Watch Topic
  • New Topic

Installing java on solaris  RSS feed

 
Kavya Anjali
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!