Re: JAVA PATH ON SOLARIS 9

From: Nathan Dietsch (usenet_at_ndietsch.com)
Date: 10/31/04


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



Relevant Pages

  • Re: In-Out Parameters for functions
    ... Java hasn't lost any business by specifying ...
    (comp.lang.ada)
  • Re: Non-intel benchmarks on Conroe vs AMDs AM2 FX62
    ... is with Java versions ro whether that's the problem. ... like text blocks overlapping images and neighbouring blocks? ... Seems like Firefox 1.5.0.3 is crashing more than ... Lost in dreams, Lost in aspirations, ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: Jpeg problem
    ... > I ve a problem, after format a PC, i lost lots of jpeg images. ... > of each picture, but i can see them, it is said to me by the windows ... http://uio.dev.java.net Unified I/O for Java ...
    (sci.image.processing)
  • Firefox
    ... just did an update via Smart on my suse 10.2 x64 and lost ALL my ... How do I re-install them especially Java ...
    (alt.os.linux.suse)
  • Re: why python is slower than java?
    ... > working python program in java: ... I will rewrite it in Java. ... You lost. ... because Eclipse cares about imports automatically. ...
    (comp.lang.python)