This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Newbie question re CLASSPATH and gcj


Yo, dudes.

Having managed to squeeze all the speed I can out of Sun's 1.4beta3 version
of Java, I was wondering if I could quicken a few apps that take several
hours to run by using the new versions of gcc/gcj to compile to native code.

As such I've pulled down the rpms for gcc 3.0.1, gcc-java, cpp libgcj and
installed them on a linux box.  Everything seems to have installed ok now,
and I can get gij running on sun created class files (although at only half
the speed), but I'm having problems getting gcj to compile java files.

I keep getting told that I don't have the appropriate files in my CLASSPATH
- i.e.:
	Can't find default package `java.lang'.  Check the CLASSPATH
environment
	variable and the access to the archives.

I didn't need to set a CLASSPATH for the Sun apps to work, and I can't find
anything in the gcc/gcj web pages or FAQ pages about what the CLASSPATH
should be set to, and I can't find any likely looking directories that the
above rpm installs set up, so I'm a bit stuck.

I know it's probably something obvious, but be gentle with me - I've been
doing web development and haven't used gcc since version 1 :-)

Thanks to anyone who can help.

Peter K. Campbell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]