NUI 0.14 : a few questions

Hello guurk,



I’ve seen the screenshot and feature of NUI and it seems pretty cool 8) !



I have downloaded NUI 0.14 in order to see what changes will be needed (i used your old ui stuff), well everything is changed :wink: !



After reading the javadoc and try to compil the test, i have a few questions :


  1. i can’t compil it because of Math.MathContext and XPathAPI is it Java 5.0 only ?

    i’ve got java 1.4.04 under linux.


  2. Do you think you will make a tutorial to use it ?

    it seems much more complex than the old one… for example how to know what tags and attributes exits in the xml files ?



    thanks in advance for answers,.



    bye,



    Adenthar.

Alright. MathContext is actually never used. So you can just comment that out.



XPathAPI is actually part of the apache xerces libraries, which, yes are part of 5.0 by default. If using 1.4 you can just get the libraries and change the imports.



Yes, I’ll be making a tutorial before the end. And as far as what is and is not included in the xml will eventually have an xsd and the example will be fully documented.



I guess that’s why I called it version 0.14 and not 1.0 :P. Hehe.



Is there any reason you do not wish to use Java 5.0 on linux? And actually, that’s pretty much a general question, why not just transition to 5.0 entirely? It seems that Mac 10.4 supports it too now.

It seems that Mac 10.4 supports it too now.


Not for the user. Just the developer. As soon it is available on Software Update we can make use of it.

Thanks for all these answers :smiley:

"guurk" wrote:

Yes, I'll be making a tutorial before the end. And as far as what is and is not included in the xml will eventually have an xsd and the example will be fully documented.

I guess that's why I called it version 0.14 and not 1.0 :P. Hehe.

XD I think i will try nui before that ;) but i will ask lots of questions on the forum ! you have been warned ! :D
"guurk" wrote:
Is there any reason you do not wish to use Java 5.0 on linux? And actually, that's pretty much a general question, why not just transition to 5.0 entirely? It seems that Mac 10.4 supports it too now.

Well... Since jme is java 1.4 compliant, i stick with it for the moment, if jme goes 1.5, i will go ;)

Adenthar

Also remember that even when Mac supports it for users, it will be Tiger only, so it’s still going to cause some grumbling. :confused: (Not to say we shouldn’t do it, just fyi…)

That’s a very good point.

Hello Guurk,



Ok just to say that thanks to your answers i have nui working with java 1.4 …



Some precision :

For XPathAPI, the apache libs needed are :

  • xerces AND xalan



    with the native apache API the method

    getTextContent() of the class Node is unknown so i have replaced it by getNodeValue() and it seems to work



    as you can see, the 1.4 conversion is not straightforward and it needs big sized jar (xalan.jar is 3 Mo).



    However, the test is impressive, and it runs with no other problem, great work !



    bye,



    Adenthar.

I’m having a hard problem here because I really don’t want to back port to 1.4 :P… ahhh! But I do see the reason to do so. ahhh!



Anyhow, good work on getting it going. Hopefully this’ll help others out too.

"guurk" wrote:
I'm having a hard problem here because I really don't want to back port to 1.4 :P... ahhh! But I do see the reason to do so. ahhh!

Anyhow, good work on getting it going. Hopefully this'll help others out too.
We developers can easily upgrade to the latest version of java, but the fact is that very few actual users have upgraded to it. If you want your library to reach a larger audience, I think it would be worth the trouble.