Re: JAVA PATH ON SOLARIS 9
From: Carlos M. Buj Ribas (carlosbuj_at_olibu.com)
Date: 10/31/04
- Next message: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Previous message: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- In reply to: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Next in thread: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Carlos M. Buj Ribas: "Re: JAVA PATH ON SOLARIS 9"
- Previous message: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- In reply to: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Next in thread: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Nathan Dietsch: "Re: JAVA PATH ON SOLARIS 9"
- Reply: Michael Laajanen: "Re: JAVA PATH ON SOLARIS 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|