Re: JAVA PATH ON SOLARIS 9
From: Nathan Dietsch (usenet_at_ndietsch.com)
Date: 10/31/04
- Next message: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Previous message: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- In reply to: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Next in thread: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Oct 2004 22:43:18 +1100
Hello Michael,
Michael Laajanen wrote:
> HI,
>
> Carlos M. Buj Ribas wrote:
>
>> Hi,
>>
>> I lost the java path on my solaris sparc 9. It's only working for
>> root. I am not able to set it up. This is what I try:
Find out what root's java classpath is and try and replicate that in the
user environment.
>>
>> When I call java I get this error message:
>>
>> bash-2.05$ java
>> Error: could not find libjava.so
>> Error: could not find Java 2 Runtime Environment.
>> bash-2.05$
>>
>> I try to set the java class path doing this:
>>
>> bash-2.05$ export PATH=/usr/j2se:$PATH
>
> export PATH=/usr/bin:$PATH
>
> but what is you PATH now it must be many commands missing if /usr/bin is
> gone!!
Wrong path, the OP is trying to refer to the JAVA class path which is
used to locate java's libraries.
>
>> bash-2.05$ java
>> Error: could not find libjava.so
>> Error: could not find Java 2 Runtime Environment.
>> bash-2.05$
>>
>> The same error message appears.
>>
>> Any idea?
Try this
java -classpath /usr/j2se yourclassname
http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/classpath.html
might help you more on this.
I hope this helps.
Regards,
Nathan Dietsch
- Next message: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Previous message: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- In reply to: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Next in thread: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|