Java Compiler usage at CCS


Subject: Java Compiler usage at CCS
From: Karl Lieberherr (lieber@ccs.neu.edu)
Date: Wed Oct 18 2000 - 08:41:45 EDT


Hi Mark:

Yes, the issue is that you have not set-up your account for using the jikes
compiler from IBM. Please see

http://www.ccs.neu.edu/research/demeter/course/f00/runningjava.html

how to use jikes.

In the program.prj file you will find:

// The Java compiler executable.
COMPILER = jikes

This means that jikes is your compiler and not javac, but jikes
gives you better error messages and is much faster.

If you prefer the SUN compiler javac over the IBM compiler jikes
use:
COMPILER = javac

and adjust

// Java compiler arguments.
COMPILE_ARGS = -g -depend +E

to

// Java compiler arguments.
COMPILE_ARGS = -g

This is in your *.prj file.

I like the SUN compiler javac because its implementation makes heavy use of
traversals and visitors :-) But I mostly use jikes.

It is your choice.

-- Karl Lieberherr

>From mleary@lynx.dac.neu.edu Tue Oct 17 20:56:24 2000
>Date: Tue, 17 Oct 2000 20:56:26 -0400 (EDT)
>From: Mark Leary <mleary@lynx.dac.neu.edu>
>To: Karl Lieberherr <lieber@ccs.neu.edu>
>Subject: COM1205 HW3
>
>Hi.. I'm having a problem running demjava on the capacity-with-stack
>program... demjava clean; demjava test gives the following error:
>
>Parser generated successfully.
>Running the compiler...
>gen/Container.java:0:0:0:0: Error: Could not find package named:
> gen/classes/java/lang,
> gen/java/lang,
> /proj/demsys/demjava/cur/rt.jar(java/lang),
> /proj/demsys/demjava/cur/demjava.jar(java/lang),
> /proj/demsys/demjava/cur/apstudio.jar(java/lang),
> ./java/lang or
> /proj/demsys/demjava/rt.jar(java/lang)
>
>My CLASSPATH is set to .:/proj/demsys/demjava/rt.jar.
>
>Any suggestions?
>
>thanks..
>



This archive was generated by hypermail 2b28 : Wed Oct 18 2000 - 08:42:11 EDT