[lug] java class path for gcc-java
Tom Tromey
tromey at redhat.com
Mon Oct 15 21:11:13 MDT 2001
>>>>> ">" == D Stimits <stimits at idcomm.com> writes:
>> On RH 7.1, which has gcc-java available (I put it in at install time),
>> there exists an executable "java" and "javac". Now I've run into the
>> first non-rpm java software I want to install, javaws. Only it wants the
>> class path, e.g., /usr/local/java/jdk1.2. I have no idea how to figure
>> that out for gcc-java (it would be reasonably obvious for separate jdk,
>> there would be a jdk directory). Maybe I'll have to install a regular
>> Sun jdk. But first, does anyone have an idea what directory I might be
>> able to try to use on RH 7.1 with gcc-java for the java class path?
`locate libgcj.jar'
If that doesn't work, try `locate libgcj.zip'.
I don't know whether the RH 7.0 release used a jar file or a zip file.
These values are for setting the class path -- though with gcj you
shouldn't need to set the class path when compiling or running
programs. If javaws is trying to find the install tree for some other
reason, then you might need to do something else.
I'm surprised to hear that the gcc-java RPM includes java and javac.
gcj doesn't, so these would have to have been added by the RPM author.
Tom
More information about the LUG
mailing list