I am using the JMonkey Engine for the first time yesterday. And trying to use LemurGUI. I am trying to run the code given here:
When trying to run the project, I get this errors:
EVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.NoClassDefFoundError: com/google/common/io/Resources
at com.simsilica.lemur.GuiGlobals.logBuildInfo(GuiGlobals.java:223)
at com.simsilica.lemur.GuiGlobals.setInstance(GuiGlobals.java:131)
at com.simsilica.lemur.GuiGlobals.initialize(GuiGlobals.java:125)
at jme3test.helloworld.HelloJME3.simpleInitApp(HelloJME3.java:28)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:748)
“guava-master.zip” is probably not a jar file. Probably you just downloaded the code of the project instead of an actual guava jar.
Edit: note that if you are going to use legacy build tools like ANT then for maven dependencies like guava then you have to go to maven central and track down the jars yourself in some cases (like for guava). Modern build tools like gradle or maven will do this automatically.
as of now, I am using no build tools in the IDE. I am just downloading the JAR file and importing it to my library. Would be great to know how to use them though. Might make mu work easy
But yes, will go to maven central to track the JAR file.
Sorry I have not noticed that you are using github guava-master branch code , I have looked into my game that is built without Gradle & found that I am using guava26jre.jar , it’s not easy to find a guava jar file so this is the link🙂