Re: JAVA PATH ON SOLARIS 9

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


Date: Sun, 31 Oct 2004 11:46:20 GMT

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:
>>
>> 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!!
>
>> 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?
>>
>> Thanks for your help
>>
>
> /usr/bin/java
>
> /michael

/usr/bin is not gone. It is still there. Ok, I tried

export PATH=/usr/bin/java:$PATH

but it is still the same

bash-2.05$ java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
bash-2.05$

If I make this as root, I get:

# java
Usage: java [-options] class [args...]
            (to execute a class)
    or java [-options] -jar jarfile [args...]
            (to execute a jar file)

where options include:
     -d32
                   use a 32-bit data model if available
     -d64
                   use a 64-bit data model if available
     -client to select the "client" VM
     -server to select the "server" VM
     -hotspot is a synonym for the "client" VM [deprecated]
                   The default VM is client.

     -cp <class search path of directories and zip/jar files>
     -classpath <class search path of directories and zip/jar files>
                   A : separated list of directories, JAR archives,
                   and ZIP archives to search for class files.
     -D<name>=<value>
                   set a system property
     -verbose[:class|gc|jni]
                   enable verbose output
     -version print product version and exit
     -showversion print product version and continue
     -? -help print this help message
     -X print help on non-standard options
     -ea[:<packagename>...|:<classname>]
     -enableassertions[:<packagename>...|:<classname>]
                   enable assertions
     -da[:<packagename>...|:<classname>]
     -disableassertions[:<packagename>...|:<classname>]
                   disable assertions
     -esa | -enablesystemassertions
                   enable system assertions
     -dsa | -disablesystemassertions
                   disable system assertions
# Oct 31 12:43:30 unix last message repeated 1 time

This means that java is working for the user root, and it used to work
for the other users, but not anymore.

Thanks

Carlos



Relevant Pages

  • Re: [opensuse] openoffice java
    ... On Sunday 16 September 2007 12:12, Carlos E. R. wrote: ... you do not need to delete any version of java. ... SuSE release as far as I can tell. ... site and just the 1.4.2 so that everything in the database module just ...
    (SuSE)
  • Re: JAVA PATH ON SOLARIS 9
    ... > Carlos M. Buj Ribas wrote: ... could not find Java 2 Runtime Environment. ...
    (comp.unix.solaris)
  • Re: C or C++
    ... Carlos> overwhelmed with little details that have nothing to do ... Carlos> minefield in the mind of the beginner. ... Sun has introduce printfin Java 1.5. ...
    (comp.os.linux.development.apps)
  • Re: java path exporting
    ... > core 4 and modified my .bash_profile file correctly, ... the shell doesn't recognize javac command. ... Reconfiguring Fedora Core 4's default Java configuration ... Also any user root or other wize should be able to use the command; ...
    (linux.redhat.misc)
  • Re: java PATH
    ... Now to create the new alternatives file for java type ... Now any user root or other wise should be able to use the command; ... Also any user root or other wize should be able to use the command; ... "A personal computer is called a personal computer because it's yours, ...
    (comp.os.linux.misc)