Joined: 14 Mar 2006
|Posted: Fri Sep 28, 2007 6:59 am Post subject: NetBeans 5.5.1 on IBM JDK
|Wasn't sure on whether this should be in ppc or portage/programming: pls move if appropriate.
I've got NetBeans 5.5.1 running (apparently fine) on IBM Java. However, I had to do a little jiggering with the javax configuration to get XSLT, Xalan, and therefore Ant working properly.
I'll describe what I did (below), and ask if somebody who actually knows what they're doing (unlike me) might see a more proper/elegant solution. I'm an absolute noob wrt Java, XML, etc.
First, I downloaded and installed NetBeans 5.5.1 (since the latest version available in portage with a ppc keyword is 3.6, which I assume to be OLD).
Second, I discovered there's apparently a bug in the Xalan processor included with ibm-jdk. I observed NetBeans (Ant) creates "build-impl.xml" with a blank string where the name of the main class should be. This then seems to causes the build.xml script to be created under the assumption there is no main class. The result is that the build script creates a "manifest-only" jar file. In other words, NetBeans runs just fine, except that it can't even build a HelloWorld.class. This was not the case with the sample projects provided, which built fine (presumably because they came with their Ant scripts already rendered on a compatible platform).
So I put the following in <path_to_ibm_jdk>/jre/lib/javax.properties:
Basically, this tells Xalan to use the xsltc compiler instead of the "processor" (interpreter). Xsltc is bundled with ibm-jdk-bin 1.5
Now everything seems to be working fine.
I'm sure there are better ways to get around this. Given what I've described above -- any ideas? (Other than using Eclipse.) : )
Thanks for any help.
|patrix_neo wrote: |
|The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.