Compiling Nifty

Hi guys



I want to use the jME renderer in my project, so I read the forum post and checked-out all the SVN links. However, when building the jme-renderer, it doesn't work and gives me an error about the systemPath being wrong or something.



Firstly, I don't think I'm building this properly, so if anyone knows where I can download the .jars for the 5 required libs, can you tell me?

What is the exact error you're getting?

What are the five required libraries?



Have you got the following projects from the SVN repository in your IDE?

https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty

https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-default-controls

https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-jme-renderer

https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-style-black (or grey)

(optionally) https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-examples



How are you building it?

Ok, I'm using Netbeans 6.8 and had to download SlikSVN to checkout SVN repositories.



I managed to checkout the 5 projects just fine, then added them to Netbeans by going to  "Open Project" -> selecting the trunk folder for the project (a little Maven icon appeared in the filechooser when I selected trunk) and added it to Netbeans.

When I add nifty-jme-renderer to Netbeans it calls it "<Badly formed Maven Project>" and i get this error when building

[ERROR]The following POM validation errors were detected:
[ERROR] - For dependency Dependency {groupId=com.jmonkeyengine.collada, artifactId=jme-collada, version=1.0, type=jar}: system-scoped dependency must specify an absolute path systemPath.
[ERROR]Project Id: lessvoid:nifty-jme-renderer:jar:1.0-SNAPSHOT
[ERROR]From file: C:UsersMeDocumentsNetBeansProjectsNiftynifty-jme-renderertrunkpom.xml


I tried re-checking it out it but this did nothing.

I right-clicked on the 'Nifty' project, and 'Build' it. This worked fine.

I hovered over the proect icon in the 'Projects' Bar and Netbeans told me the error is

The Project could not be loaded by the NetBeans Integration. That usually means something is wrong with your POM. Please check the Show/Resolve Problems action in the project's pop-up. It has additional information about the problem.


So I checked the Show/Resolve Problem....
The type of problem was "Project Model validation failed."
Description:
[0]  For dependency Dependency {groupId=com.jmonkeyengine.collada, artifactId=jme-collada, version=1.0, type=jar}: system-scoped dependency must specify an absolute path systemPath.


:?

Do you need to use Maven with it?

I'm using Eclipse and don't really know the differences between that and NetBeans, but I just check out the repositories as Java projects and then set the library paths so all dependencies are cleared and everything's fine.

I am already using Netbeans and switching to Eclipse at this stage would be less than ideal…All I need is the JAR right?



Do you know where I can get the JAR for these things?

You can get all the Nifty jars from this site:

nifty-gui - Browse Files at SourceForge.net

except the JME-renderer, unfortunately.



I don't know if it's up somewhere, but you should be able to check out the repositories as Java projects in NetBeans too.

Just in case you don't get it to work, I'll jar the project up and send it to you and we can hope that works.