Building on Mac OS X
Trevor Harmon <[email protected]> Tue, 19 Aug 2008 11:19:25 -0400
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Has anyone been able to build JSwat 4.3 from source on Mac OS X? It's
not working for me. Here's the command I'm using:
ant -Dnbplatform.NetBeans_5.5.harness.dir=/sw/share/netbeans/harness -
Dplatforms.JDK_1.6.home=/System/Library/Frameworks/JavaVM.framework/
Home -Dnetbeans.dest.dir=/sw/share/netbeans build
where /sw/share/netbeans is the directory where NetBeans 5.5.1 is
installed.
But this causes errors, such as:
./jswat-src-4.3/core/src/com/bluemarsh/jswat/core/
SteppingExcludesPanel.java:157: cannot find symbol
symbol : class GroupLayout
GroupLayout is a Java 1.6-only class, so for some reason JSwat is
building with 1.5 instead of 1.6. Sure enough, I noticed that the
project.properties files in JSwat specify javac.source=1.5, which is
strange since the JSwat web site says that JDK 1.6 is required.
Anyway, I changed all javac.source=1.5 references to say 1.6, and I
also added javac.target=1.6 to all project.properties files.
Unfortunately, making that change only led to another problem:
...
projectized-common.compile:
[javac] Compiling 216 source files to /Users/trevor/Desktop/jswat-
src-4.3/core/build/classes
[javac] javac: invalid target release: 1.6
...
I thought this might be a NetBeans problem, since JSwat uses the
NetBeans harness to build, and sure enough, there are some hard-coded
references in NetBeans to the Java 1.5 directory:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
However, after changing all "1.5" to "1.6", I still get the same
"invalid target release" error.
Any suggestions? Thanks,
Trevor
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/