Re: JAVA PATH ON SOLARIS 9

From: Carlos M. Buj Ribas (carlosbuj_at_olibu.com)
Date: 10/31/04


Date: Sun, 31 Oct 2004 17:19:16 GMT

Michael Laajanen wrote:
> HI,
>
> Carlos M. Buj Ribas wrote:
>
>> Michael Laajanen wrote:
>>
>>> HI,
>>>
>>> Carlos M. Buj Ribas wrote:
>>> <snip>
>
>
>>> Error: could not find libjava.so
>>>
>>>> Error: could not find Java 2 Runtime Environment.
>>>> bash-2.05$
>>>>
>>>> The same error message appears.
>>>>
>>>> Any idea?
>>>>
>>>> Thanks for your help
>>>>
>>>
>>> /usr/bin/javabash-2.05$ ldd /usr/bin/java
         libthread.so.1 => /usr/lib/libthread.so.1
         libdl.so.1 => /usr/lib/libdl.so.1
         libc.so.1 => /usr/lib/libc.so.1
         /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
bash-2.05$ /usr/bin/java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
bash-2.05$

>>>
>>> /michael
>>
>>
>>
>>
>>
>> /usr/bin is not gone. It is still there. Ok, I tried
>>
>> export PATH=/usr/bin/java:$PATH
>>
> Why would you add java to the PATH you should add /usr/bin to the PATH,
> see above
> export PATH=/usr/bin:$PATH
>
> Try ldd /usr/bin/java i t should something like
>
> modena $ ldd /usr/bin/java
> libc_ut.so => /usr/lib/libc_ut.so
> libthread.so.1 => /usr/lib/libthread.so.1
> libdl.so.1 => /usr/lib/libdl.so.1
> libc.so.1 => /usr/lib/libc.so.1
> /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
>
> Then try /usr/bin/java
> modena $ /usr/bin/java
> Usage: java [-options] class [args...]
> (to execute a class)
> or java [-options] -jar jarfile [args...]
> (to execute a jar file)
>
> /michael

This is what I get:

bash-2.05$ ldd /usr/bin/java
         libthread.so.1 => /usr/lib/libthread.so.1
         libdl.so.1 => /usr/lib/libdl.so.1
         libc.so.1 => /usr/lib/libc.so.1
         /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
bash-2.05$ /usr/bin/java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
bash-2.05$

It is really frustrating...

Thanks

Carlos



Relevant Pages

  • Re: TT2TT
    ... The J2SERuntime Environment is intended for software developers ... The J2SE Runtime Environment contains the Java virtual machine, ... Deploying Applications with the J2SE Runtime Environment ... may optionally be omitted from redistributions with the J2SE Runtime ...
    (comp.security.pgp.test)
  • TTTT
    ... The J2SERuntime Environment is intended for software developers ... The J2SE Runtime Environment contains the Java virtual machine, ... Deploying Applications with the J2SE Runtime Environment ... may optionally be omitted from redistributions with the J2SE Runtime ...
    (comp.security.pgp.test)
  • TT2TT
    ... The J2SERuntime Environment is intended for software developers ... The J2SE Runtime Environment contains the Java virtual machine, ... Deploying Applications with the J2SE Runtime Environment ... may optionally be omitted from redistributions with the J2SE Runtime ...
    (comp.security.pgp.test)
  • Re: A very general question on .NET for beginner
    ... Nice to see another fellow java dev looking at .net! ... Kind of like java and J2EE. ... to have the java runtime environment pre-installed before you can ... There are MANY ways to interact with the server. ...
    (microsoft.public.dotnet.general)
  • Re: Java apps wont load GUI on win2k PC
    ... What version of Java are you running. ... Java2 Runtime Environment, Standard Edition ... there should be an icon in the ...
    (comp.lang.java.gui)