Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2005

Tip: Looking for answers? Try searching our database.

setting up jikes on Linux with Blackdown

Thread view: 
Timothy Larson - 03 Feb 2005 13:04 GMT
I've recently set up an older Mac running Linux (YDL 3.0.1) at home that
I want to use for some Java development. I've installed IBM's Blackdown
(1.4.2 SDK) rpm. I installed jikes (1.22) because, though javac works
fine, any speed benefit I can get on this will be helpful, and I hear
jikes beats javac in performance. My problem is that jikes wants the
classpath set, but I don't know what to set it to. (I wish I knew what
javac was using.) Normally I'd make sure to set it so that rt.jar is
included for starters, but I can't find the jar! Anybody with
jikes/Blackdown experience out there have any pointers for me? Sure
would appreciate it.
Thufir Hawat - 03 Feb 2005 13:31 GMT
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
Thufir Hawat - 03 Feb 2005 13:32 GMT
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
Gordon Beaton - 03 Feb 2005 13:50 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.