Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetBeans 5.5.1 on IBM JDK
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Fri Sep 28, 2007 6:59 am    Post subject: NetBeans 5.5.1 on IBM JDK Reply with quote

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:
Code:
javax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl


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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum