[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Java in Red Hat 6.1



On Sat, Nov 20, 1999 at 11:49:01PM +0530, Ajay Dudani wrote:
> Hello,
> 
> Anyone who is using Java in Red Hat Linux 6.1
> How should I set the class path.  
> 
> whereis java     gives output as
> 
> /usr/lib/java   /usr/bin/java
> 
> What should be the CLASSPATH.
> Why did this happen.  Java was working just fine without defining the CLASSPATH
> in Red Hat 6.0.
> 

I don't use java on Linux - but here is how it works:

/usr/bin/java is a symbolic link to a file .java_wrapper, that determines
it's own name using argv[0] and gets it's own directory and sets 
JAVA_HOME. CLASSPATH will be defined in terms of JAVA_HOME and everything
works fine. If this is not working, you'll want to put printfs in the
script and debug.

	-Arun

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.