Re: Building on Mac OS X
Nathan Fiedler <[email protected]> Tue, 19 Aug 2008 10:40:56 -0700 (PDT)
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Trevor, It's been a while since I've compiled 4.3 on NetBeans 5.5. The latest code in the source repository is based on NetBeans 6.1. I'll look for those instances in the properties where "1.5" is specified and correct those, that was a mistake on my part. In the mean time, could you try checking out the latest source and building using NetBeans 6.1? Otherwise, I think the other possible solution might be to set the default Java to 1.6 (normally 1.5 is the default on the Mac). This is done using the Java Preferences app (in /Applications/Utilities/Java) -- you reorder the versions in the list box near the bottom of the window. Anyway, I am using only Mac, and compiling JSwat works fine for me. But, I set the default Java to 1.6 using the Java Preferences app, and I'm building the latest source code. If you're still having trouble, let me know and I'll try building 4.3 using NetBeans 5.5.1 and see what issues I run into. Thanks n ----- Original Message ---- From: Trevor Harmon <[email protected]> To: [email protected] Sent: Tuesday, August 19, 2008 8:19:25 AM Subject: [jswat-user] Building on Mac OS X 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=/ _______________________________________________ jswat-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jswat-user ------------------------------------------------------------------------- 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=/