Installing Ardor3D. I can't even run the examples - java

I'm pretty new to Java, and thought that using 3D graphics would be interesting. I found Ardor 3D and installed it, etc. I followed the steps from here.
But when I ran the example code, such as ExampleRunner.java, it gives me this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/ardor3d/example/ExampleRunner
Caused by: java.lang.ClassNotFoundException: com.ardor3d.example.ExampleRunner at
java.net.URLClassLoader$1.run(URLClassLoader.java:202) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I've looked everywhere for solutions to this error, but I can't find anyone else who has it.

At first, ensure that your Eclipse install supports Maven, you should install M2Eclipse if necessary.
Then, you use an obsolete and unmaintained version of Ardor3D, Renanse stopped maintaining it more than a year ago:
http://blog.renanse.com/2014/03/winding-down.html
You should switch to JogAmp's Ardor3D Continuation which is actively maintained by the JogAmp community. I'm responsible for engine support. You can find more information about it here:
http://jogamp.org/wiki/index.php/Ardor3D_Overview
http://jogamp.org/wiki/index.php/Ardor3D_Tutorial

Related

Java Error when trying to start stardog server

When I try to start my stardog-server, my terminal shows me following Java-Error
Exception in thread "main" java.lang.NoClassDefFoundError: com/complexible/stardog/cli/admin/CLI
Caused by: java.lang.ClassNotFoundException: com.complexible.stardog.cli.admin.CLI
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I have no idea why this keeps happening, because I have gotten my stardom-server to run before, but today it started showing me this Error.
Does anybody have an idea about why this keeps happening?
I'm working on OSX Mavericks (if that helps anyone)
There seems to be a problem with the classpath.
Searching for this I found this exchange:
This is due to a bug in the stardog.bat script. If you add a semicolon to line 21 so that it reads 'set CLASSPATH=%HOMEDIR%\client\api*;%HOMEDIR%\client\cli*;%HOMEDIR%\client\http*;%HOMEDIR%\client\snarl*;%HOMEDIR%\pack\client*;%SLF4J_JARS%' this problem will be fixed.

Cannot Get JOGL to run, compiles fine but error during execution

I followed the installation here:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE#IntelliJ_IDEA
and
http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL
I'm using IntelliJ IDEA Community 13. Everything compiles nicely but when i go to run the code i get the error:
Exception in thread "main" java.lang.ClassNotFoundException: com.helljogl.OneTriangleSwingGLJPanel
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113)
I have OpenGL and Java experience, but for some reason this is giving me a huge headache.
I've been at it for hours and have seen similar problems, but found no solutions...
Any ideas?
Rather than adding the dependencies to the project through the IDE, use maven (or Gradle). There's no need to manually download the jogl jar files and mess around with your classpath. See How to set up IntelliJIdea for development using JOGL on Linux and Windows?
After so many Installation Attempts I had jogl.jars all over the place. After cleaning up my environment everything is going smoothly!

using nutch 1.4 in ubuntu

I try to use nutch 1.4 crawler in ubuntu however when I try to execute nutcg with all the setting that are suggested in nutch wiki it gives this error:
erogol#erogol-G50V:~/Desktop/search engine/apache-nutch-1.4-bin/runtime/local$
bin/nutch crawl urls -dir crawl -depth 1
bin/nutch: line 108: [: /home/erogol/Desktop/search: binary operator expected
Exception in thread "main" java.lang.NoClassDefFoundError: engine/apache-nutch-1/4-bin
/runtime/local/logs
Caused by: java.lang.ClassNotFoundException: engine.apache-nutch-
1.4-bin.runtime.local.logs
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: engine/apache-nutch-1.4-bin/runtime/local/logs.
Program will exit.
Do you have any suggestion or idea to solve the using problem for nutch?
Thanks in advance... all nutch knowers :)
The problem isn't about nutch: the space within the search engine folder name creates problems. As you can see from the ClassNotFoundException the part after the space is taken as name of the class to be executed. Can't you just rename search engine to something else like search-engine?

Eclipse JBoss Plugin - Cannot start my Server a second time

I have a really strange problem. I can successfully start my Eclipse internal JBoss Server (7.0.2). I can access the website and everything is fine. But after restarting or shutting down and starting again I always receive the following error out of nowhere:
Exception in thread "main" java.lang.NoClassDefFoundError: /Users/path/Coding/JBoss
Caused by: java.lang.ClassNotFoundException: .Users.robin.Coding.JBoss
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I googled and looked in the JBoss forums. Some ppl had a problem with using the JRE Version instead of the JDK. I checked I am using the JDK 1.6..
Here some other informations:
Eclipse Indigo (3.7.1)
JBoss (jboss-as-web-7.0.2.Final) also tested with the newer version 7.1
JBoss Tools (3.3.x)
Java version "1.6.0_29"
Mac Os X 10.7.3 (Lion)
After deleting the internal Server in Eclipse and recreating I can again start it successfully the first time. The path to the external JBoss directory is correct.
Did anyone have the same problem or any idea what it could be?
Thanks for your help!
I found the solution. It's very strange but somehow after executing the Server a second time it's crashing because of the space in the path:
/Users/robin/Coding/JBoss Servers/..'
After removing the space I could also run the Server several times without crashing. Thanks to Perception, his comment was leading me to the solution.

Rubymine startup error java.lang.NoClassDefFoundError: com/intellij/util/lang/UrlClassLoader

I am using Ubuntu 11.04, when i start RubyMine3.1 it gave this error.
Exception in thread "main" java.lang.NoClassDefFoundError: com/intellij/util/lang/UrlClassLoader
at com.intellij.idea.Main.main(Main.java:55)
Caused by: java.lang.ClassNotFoundException: com.intellij.util.lang.UrlClassLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more
I tried every thing, i also have sun-java installed, set it default by update-java-alternatives, also my JAVA_HOME, JDK_HOME, RUBYMINE_JDK points to the sun-java directory, but still no success.
Does any one have any idea about it?
Damaged download or some classes left from older version? Try to download again and unpack into an empty directory.
Did you install any third-party plug-ins? In this case you should try to delete them from the plugins directory.
The class which fails to load is located in RubyMine/lib/util.jar. Maybe you are using an old version of rubymine.sh which doesn't add util.jar to the classpath?

Categories