Assuming windows:
<http://java.sun.com/j2se/1.5.0/install-windows.html#Environment>
Might it be easier to get javac working first?
--
Thufir Hawat
Timothy Larson - 04 Feb 2005 13:33 GMT
> Assuming windows:
> <http://java.sun.com/j2se/1.5.0/install-windows.html#Environment>
>
> Might it be easier to get javac working first?
I did specify Linux, and that javac works fine already.
Thanks,
Tim
Assuming windows:
<http://java.sun.com/j2se/1.5.0/install-windows.html#Environment>
Might it be easier to get javac working first?
--
Thufir Hawat
> My problem is that jikes wants the classpath set, but I don't know
> what to set it to.
You need to tell jikes where the standard libraries are. I've renamed
jikes to jikes.bin, then use the following script (called jikes)
instead:
#!/bin/sh
if [ -z "$JAVA_HOME" ]; then
echo please set JAVA_HOME before using $0
exit 1
fi
BCP=$JAVA_HOME/jre/lib/rt.jar
JIKES=/usr/local/bin/jikes.bin
exec $JIKES -bootclasspath $BCP "$@"
Set JAVA_HOME "as usual" to point to the root of your JDK
installation. You may need to adjust the BCP value to suit the
Blackdown layout.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Timothy Larson - 04 Feb 2005 13:38 GMT
> You need to tell jikes where the standard libraries are. I've renamed
> jikes to jikes.bin, then use the following script (called jikes)
[quoted text clipped - 15 lines]
> installation. You may need to adjust the BCP value to suit the
> Blackdown layout.
That's exactly the problem. Blackdown doesn't seem to include the
standard libraries of rt.jar, because that file doesn't exist anywhere
on my system. How can it be a J2SDK without rt.jar?
Thanks,
Tim
Thomas Schodt - 04 Feb 2005 14:21 GMT
> That's exactly the problem. Blackdown doesn't seem to include the
> standard libraries of rt.jar, because that file doesn't exist anywhere
> on my system.
Download a JRE from Sun?
Timothy Larson - 07 Feb 2005 07:29 GMT
> > That's exactly the problem. Blackdown doesn't seem to include the
> > standard libraries of rt.jar, because that file doesn't exist anywhere
> > on my system.
>
> Download a JRE from Sun?
Sun doesn't supply a JRE for PPC Linux. That's why I'm using Blackdown
from IBM.
Gordon Beaton - 04 Feb 2005 14:53 GMT
> That's exactly the problem. Blackdown doesn't seem to include the
> standard libraries of rt.jar, because that file doesn't exist
> anywhere on my system. How can it be a J2SDK without rt.jar?
After posting my earlier reply, I downloaded the Blackdown JDK to
check and found that it does contain rt.jar, and that it's in exactly
the location my script refers to, i.e.:
$JAVA_HOME/jre/lib/rt.jar
This is the JDK I tested:
java version "1.4.2-01"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-01, mixed mode)
If you can't find it, my guess is that either your JDK is incomplete
or you aren't looking hard enough.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Timothy Larson - 07 Feb 2005 07:32 GMT
> > That's exactly the problem. Blackdown doesn't seem to include the
> > standard libraries of rt.jar, because that file doesn't exist
[quoted text clipped - 14 lines]
> If you can't find it, my guess is that either your JDK is incomplete
> or you aren't looking hard enough.
If "find / -name rt.jar -print" as root can't find it, I guess the JDK
must be incomplete. Though why they'd supply an incomplete JDK is
beyond me.
Gordon Beaton - 07 Feb 2005 09:00 GMT
> If "find / -name rt.jar -print" as root can't find it, I guess the JDK
> must be incomplete. Though why they'd supply an incomplete JDK is
> beyond me.
As far as I can tell, they don't. I see from another post that you're
on PPC, so I tried that one too.
[samhain]$ uname -a
Linux samhain 2.4.20-8d #1 Sat Mar 15 19:38:12 EST 2003 ppc ppc ppc GNU/Linux
This seems to be the latest PPC version:
[samhain]$ ./j2re1.3.1/bin/java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-14-FCS)
Classic VM (build Blackdown-1.3.1-14-FCS, native threads, nojit)
[samhain]$ ./j2sdk/bin/java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-14-FCS)
Classic VM (build Blackdown-1.3.1-14-FCS, native threads, nojit)
[samhain]$ find . -name "rt.jar"
./j2re/lib/rt.jar
./j2sdk/jre/lib/rt.jar
If you have an older or different version, try looking for classes.zip
instead.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Timothy Larson - 13 Feb 2005 22:46 GMT
> You need to tell jikes where the standard libraries are. I've renamed
> jikes to jikes.bin, then use the following script (called jikes)
> instead:
[snip nice shell script]
>
> Set JAVA_HOME "as usual" to point to the root of your JDK
> installation. You may need to adjust the BCP value to suit the
> Blackdown layout.
I set $BOOTCLASSPATH to the paths in sun.boot.class.path and then jikes
is fine. (Much faster than javac, too.) None of them are rt.jar, but
maybe IBM arranged and named things differently for some reason.
Thanks,
Tim