Problem Compiling Java

Eric Richardson ekrichardson at gmail.com
Fri Jan 9 10:13:50 PST 2009


Michael,

This fixed the compile problem. I still get this error but it passes by it.

incorrect classpath: hotspot-tools/com/sun/codemodel/internal/ClassType.java

Eric

On Thu, Jan 8, 2009 at 4:14 AM, Michael Franz <mvfranz at gmail.com> wrote:

> Eric,
>
> You can edit your /opt/local/bin/ecj scrip to have a larger memory
> setting.  I use -Xmx768m.
>
> java -Xmx768M org.eclipse.jdt.internal.compiler.batch.Main "$@"
>
> I cannot not explain all the details, but since ecj is a shell script it
> does not handle passing parameters all that well to java.  I have found
> other people's attempts and I have tried my self.  There is all kinds of fun
> trying to deal with the shell expanding parameters when they need to be
> passed verbatim.
>
> Michael
>
> On Thu, Jan 8, 2009 at 4:22 AM, Christian Thalinger <
> christian.thalinger at gmail.com> wrote:
>
>> On Wed, 2009-01-07 at 20:56 -0800, Eric Richardson wrote:
>> > I changed the Makefile to get more memory.
>>
>> > patrizia-imac-g5:icedtea6 eric$ make
>> > if ! test -d /Users/eric/java/icedtea6/bootstrap/jdk1.6.0 ; \
>> >     then \
>> >       /opt/local/bin/ecj -nowarn -J-Xmx4096m -g -d lib/hotspot-tools \
>> >             -source 1.5 \
>> >             -sourcepath \
>> >
>> >
>> 'hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:/Users/eric/java/icedtea6/generated:/Users/eric/java/icedtea6/rt'
>> \
>> >             -bootclasspath '' @hotspot-tools-source-files.txt ; \
>> >     else \
>> >       /Users/eric/java/icedtea6/bootstrap/jdk1.6.0/bin/javac
>> > -J-Xmx4096m -g \
>>
>> Is bootstrap/jdk1.6.0/bin/javac using ECJ or Apple's Javac?  If it's
>> ECJ, -J options are ignored.
>>
>> - Christian
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090109/99730cad/attachment.html 


More information about the bsd-port-dev mailing list