Using JMP with JME built from source

Hi,



I built jme3 from source on windows 7 with WinAnt, all smooth sailing.



My question is how do i now point the installed JMP3beta to my built jars rather than the ones that came with JMP?



In the Tools > Libraries I can see the various libs, but do I really have to go through an update ALL these classpaths and source paths to poin to my svn dist directories?



Thanks in advance



Simon

Thanks Normen,



My wiki search for "use jmonkeyplatform with svn’ didnt turn that up.



So I added a jme-svn library, including all the jars in my build:


    jar:file:/I:/3rdParty/jme3/dist/jMonkeyEngine3.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/eventbus.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/j-ogg-oggd.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/j-ogg-vorbisd.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jbullet.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jinput.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-blender.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-core.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-desktop.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-jbullet.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-jogg.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-lwjgl-natives.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-lwjgl.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-niftygui.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-plugins.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-terrain.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/jME3-testdata.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/lwjgl.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/nifty-default-controls.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/nifty-examples.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/nifty-style-black.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/nifty.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/stack-alloc.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/vecmath.jar!/
    jar:file:/I:/3rdParty/jme3/dist/lib/xmlpull-xpp3.jar!/
    jar:file:/I:/3rdParty/jme3/dist/opt/android/jME3-android.jar!/
    jar:file:/I:/3rdParty/jme3/dist/opt/native-bullet/jME3-bullet-natives-android.jar!/
    jar:file:/I:/3rdParty/jme3/dist/opt/native-bullet/jME3-bullet-natives.jar!/
    jar:file:/I:/3rdParty/jme3/dist/opt/native-bullet/jME3-bullet.jar!/


I deleted the projects jme3 and jme3-libraries libs and added my jme-svn one. The build fails with:
[java]
Found duplicate file for APK: console.fnt
Origin 1: I:workingCopiesandroidcodetrunkgravity_wellmobilelibsnifty-examples.jar
Origin 2: I:workingCopiesandroidcodetrunkgravity_wellmobilelibsnifty-style-black.jar
I:workingCopiesandroidcodetrunkgravity_wellnbprojectmobile-impl.xml:21: The following error occurred while executing this line:
I:3rdPartyandroid-sdktoolsantbuild.xml:820: The following error occurred while executing this line:
I:3rdPartyandroid-sdktoolsantbuild.xml:831: The following error occurred while executing this line:
I:3rdPartyandroid-sdktoolsantbuild.xml:285:
com.android.sdklib.build.DuplicateFileException: Duplicate files at the same path inside the APK
at com.android.sdklib.build.ApkBuilder$JavaAndNativeResourceFilter.checkEntry(ApkBuilder.java:121)
at com.android.sdklib.internal.build.SignedJarBuilder.writeZip(SignedJarBuilder.java:225)
at com.android.sdklib.build.ApkBuilder.addResourcesFromJar(ApkBuilder.java:556)
at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:373)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at com.android.ant.IfElseTask.execute(IfElseTask.java:124)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at com.android.ant.IfElseTask.execute(IfElseTask.java:124)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 42 seconds)[/java]

Any ideas?

Why do you do all this? If you just want to run the nightly version (which isn’t recommended as it might break your projects) enable the nightly update center. If you want to change some jme3 code, then only replace the jME3-xxx libs you actually change.

I am trying to enable opengl 1.4 support as detailed here:



http://hub.jmonkeyengine.org/groups/graphics/forum/topic/fbo-exception-is-there-a-way-to-disable-fbos-in-jme/?topic_page=3&num=15



Will nightly provide the LwjglGL1Renderer.java file? I think not, but I am a beginner

… manual?

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:intermediate:appsettings?s[]=opengl1

@sipickles: About the build problem: You have android-deployment checked. When creating the apk it is a problem if one file exists at the same directory-location (in different jars). In your case console.fnt



I think the quick-fix would be just to remove the examples.jar or you will have to remove the duplicated files in one of the jars… or just uncheck android-deployment…

Thanks @normen. I missed the appsettings page. So simple and it works!