Java Maven Guice Install Issues Netbeans

118 views
Skip to first unread message

Nick Hunter

unread,
Oct 21, 2015, 10:40:37 AM10/21/15
to poly2tri
Hi I am having trouble getting started with poly2tri.java. I pulled the latest checkin and opened it in several different versions of Netbeans. The examples have a guice jar import issue. I can't add it like I normally would in Netbeans. The right click add Dependency doesn't work either. So I went to the POM.xml and tried to add 

"<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency>
"

That didn't work either. Any suggestions on how I can break away from Maven? If so where can I find the jars and maybe the .dll files need for jogl . Or how do I actually fix this guice Maven error? I add a picture hope it is at all useful.


1.png

Nick Hunter

unread,
Oct 21, 2015, 10:42:40 AM10/21/15
to poly2tri
The picture wasn't useful because it was the wrong picture. Try this.
2.png

Nick Hunter

unread,
Oct 21, 2015, 3:01:05 PM10/21/15
to poly2tri
Finally, figured out that the header of the pom.xml file needs to be hand copied from the original file and saved in Netbeans.

But now this happens:

"

cd Z:\NB\poly2tri.java\poly2tri-examples; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_40" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath org.poly2tri.examples.ardor3d.CDTHoleExample\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_40\\bin\\java.exe\" -Dexec.classpathScope=runtime -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-cos.jar\" org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...

Some problems were encountered while building the effective model for org.poly2tri:poly2tri-examples:jar:0.1.1-SNAPSHOT
'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-compiler-plugin @ line 210, column 11
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 210, column 11
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 185, column 17
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 198, column 17
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-scm-plugin is missing. @ org.poly2tri:poly2tri:0.1.1-SNAPSHOT, Z:\NB\poly2tri.java\pom.xml, line 51, column 12

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                        
------------------------------------------------------------------------
Building Poly2Tri Examples 0.1.1-SNAPSHOT
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ poly2tri-examples ---
java.lang.NoClassDefFoundError: com/ardor3d/framework/jogl/NewtWindowContainer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: com.ardor3d.framework.jogl.NewtWindowContainer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" [INFO] NETBEANS-ExecEvent:{"exc":{"msg":"Q29tbWFuZCBleGVjdXRpb24gZmFpbGVkLg=="},"mojo":{"impl":"org.codehaus.mojo.exec.ExecMojo","urls":["file:\/C:\/Users\/G\/.m2\/repository\/org\/codehaus\/mojo\/exec-maven-plugin\/1.2.1\/exec-maven-plugin-1.2.1.jar","file:\/C:\/Users\/G\/.m2\/repository\/org\/apache\/maven\/reporting\/maven-reporting-api\/2.0.6\/maven-reporting-api-2.0.6.jar","file:\/C:\/Users\/G\/.m2\/repository\/org\/apache\/maven\/doxia\/doxia-sink-api\/1.0-alpha-7\/doxia-sink-api-1.0-alpha-7.jar","file:\/C:\/Users\/G\/.m2\/repository\/commons-cli\/commons-cli\/1.0\/commons-cli-1.0.jar","file:\/C:\/Users\/G\/.m2\/repository\/org\/codehaus\/plexus\/plexus-interactivity-api\/1.0-alpha-4\/plexus-interactivity-api-1.0-alpha-4.jar","file:\/C:\/Users\/G\/.m2\/repository\/org\/codehaus\/plexus\/plexus-utils\/2.0.5\/plexus-utils-2.0.5.jar","file:\/C:\/Users\/G\/.m2\/repository\/org\/apache\/commons\/commons-exec\/1.1\/commons-exec-1.1.jar"],"goal":"exec","id":"org.codehaus.mojo:exec-maven-plugin:1.2.1","source":"CLI","execId":"default-cli"},"type":"MojoFailed"}
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.070s
Finished at: Wed Oct 21 12:59:24 MDT 2015
Final Memory: 8M/155M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project poly2tri-examples: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:


"


But then

obi

unread,
Oct 22, 2015, 6:37:15 AM10/22/15
to poly2tri
Skip building the poly2tri-examples. I used a third party library called Ardor3D. The version of this library I used vanished from the net when their project was terminated. The newer version still available was changed and wasn't compatible by how I used the old library :(.

If you just want the jars they are located here:

Nick Hunter

unread,
Oct 28, 2015, 11:20:08 AM10/28/15
to poly2tri
Hey thought I would of gotten a notification to a reply, but saw your post. I will try this later today.


On Thursday, October 22, 2015 at 4:37:15 AM UTC-6, obi wrote:
Skip building the poly2tri-examples. I used a third party library called Ardor3D. The version of this library I used vanished from the net when their project was terminated. The newer version still available was changed and wasn't compatible by how I used the old library :(.

If you just want the jars they are located here:

nht

unread,
Oct 28, 2015, 11:07:34 PM10/28/15
to poly2tri

I have a lot of jars still getting library issues.

nht

unread,
Oct 28, 2015, 11:08:40 PM10/28/15
to poly2tri
I guess I'm having issues with the pic uploader.
1.png
2.png
3.png

nht

unread,
Nov 4, 2015, 5:05:56 PM11/4/15
to poly2tri
1poly.png
2poly.png
Reply all
Reply to author
Forward
0 new messages