
|
Cannot compile NB on a new Mac
I was trying to compile NB on my new Mac machine with Apple's default
installation of Java and dev tools and it failed with a message:
compile:
[mkdir] Created dir: /Users/tomslot/SUN/src/main/api.visual/build/
classes
[javac] Compiling 207 source files to /Users/tomslot/SUN/src/main/
api.visual/build/classes
[repeat]
[nbmerge] Failed to build target: all-api.visual
(...)
/Users/tomslot/SUN/src/main/nbbuild/templates/common.xml:126: Error
starting modern compiler
I am a long time Mac user, but I haven't come across this problem
before. I guess I am using a wrong version of some tools. Anyways, it
would be nice if the build system could check system compatibly
beforehand and produce a meaningful error message.
I am using
$ javac -version
javac 1.5.0_13
$ ant -version
Apache Ant version 1.7.0 compiled on February 29 2008
-TS
|

|
Re: Cannot compile NB on a new Mac
Hi Tomasz,
Tomasz Slota wrote:
> $ ant -version
> Apache Ant version 1.7.0 compiled on February 29 2008
Original Ant outputs different compilation date, is it possible?
Apache Ant version 1.7.0 compiled on December 13 2006
-R
|

|
Re: Cannot compile NB on a new Mac
>>
>> Apache Ant version 1.7.0 compiled on February 29 2008
> Original Ant outputs different compilation date, is it possible?
>
Well it is a fact :-) I was thinking perhaps NB build system picks
Java 6 to do build, although Java 5 is the default on my system. Do
you think this could be the problem?
-TS
|

|
Re: Cannot compile NB on a new Mac
Tomasz Slota wrote:
> /Users/tomslot/SUN/src/main/nbbuild/templates/common.xml:126: Error starting modern compiler
Maybe some problem finding com.sun.tools.javac.Main in Classes.jar or
wherever Macs keep it? Does ant -v show something more informative?
|

|
Re: Re: Cannot compile NB on a new Mac
ant -v made me realize compiler was going out of memory...
Thanks,
-TS
On Jun 20, 2008, at 4:40 PM, Jesse Glick wrote:
> Tomasz Slota wrote:
>> /Users/tomslot/SUN/src/main/nbbuild/templates/common.xml:126: Error
>> starting modern compiler
>
> Maybe some problem finding com.sun.tools.javac.Main in Classes.jar
> or wherever Macs keep it? Does ant -v show something more informative?
>
|