New and Confused

Okay I will admit I am new here. I got all the files and was able to compile them. However when I entered the following code (yes I updated the extensions for the files) and I first cd c:Program FilesjMEjme



java -Djava.library.path=./lib -cp ./lib/lwjgl.jar;./lib/jogg-0.0.7.jar;./lib/jorbis-0.0.15.jar;./target/jme.jar;./target/jme-effects.jar;./target/jme-model.jar;./target/jme-sound.jar;./target/jme-terrain.jar;./target/jmetest.jar;./target/jmetest-data.jar;./target/jme-awt.jar



nothing happened. Am I suppose to launch it in the command prompt or netbeans? I expected to see a java like program to launch but nothing did.



Thanks for any help.  :smiley:

Depends on what you are trying to run. You should be able to launch any of the jME tests from within NetBeans, and I would recommend that. Since you are already using an IDE, there is no reason to use the command line.


I guess what I am trying to do is 'launch' jME. So far the instructions for the introduction have been helpful and I was able to get a message that it was able to compile. After that  I just wanted to get into the actual engine itself.

right click on the ant project (jME) and select run :slight_smile:

I know almost nothing about Java, IDE's, SVN's, etc. . . To get to actually playing with jME I went through this tutorial:



http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_6.1_for_jme_2.0



which was mostly correct.  Then both of the ones listed here:



http://www.jmonkeyengine.com/wiki/doku.php?id=jme_2_beginner_tutorials



And now I'm working on:



http://www.jmonkeyengine.com/wiki/doku.php?id=flag_rush_tutorial_series_by_mojomonkey



Which has some discrepancies between the versions that I hope to help fix.But if you take that path you should be able to at least start playing with the code.



A few notes on the first tutorial listed, I have the TortiseSVN, since it doesn't specifiy.  Where it says:



Checkout jME2Physics from SVN

Select Versioning → Checkout from the menu.

In Repository URL, use: url blahblah



It should be Versioning  → Subversion → Checkout.



And where you set the VM options, i.e. when you put in



-Djava.library.path="jME2jME2liblwjglnativewin32";"jMEP SVNimplodelib"





I used the full path, i.e. f:jME2jME2blahblah  Looks like you'd have c:Program filesjME2



That's another thing, some places it says jME in directory or file names when it means jME2. . .





I hope to get a chance to go through the whole install process again and note all the differences.

Okay I just want to let you know I am not working on JME2.


basixs said:

right click on the ant project (jME) and select run :)


Where is this file located, I looked in both the ant and jme folders? I did find the JNLP files and I tried to launch them, however I got the following error...

Error: Unable to load resource: http://captiveimagination.com/download/jme/nightly/jme.jnlp

Exception

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://captiveimagination.com/download/jme/nightly/jme.jnlp
   at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
   at com.sun.javaws.Launcher.launch(Unknown Source)
   at com.sun.javaws.Main.launchApp(Unknown Source)
   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
   at com.sun.javaws.Main$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Wrapped Exception

java.io.FileNotFoundException: http://captiveimagination.com/download/jme/nightly/jme.jnlp
   at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
   at com.sun.javaws.Launcher.launch(Unknown Source)
   at com.sun.javaws.Main.launchApp(Unknown Source)
   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
   at com.sun.javaws.Main$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://captiveimagination.com/download/jme/nightly/jme.jnlp
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   ... 17 more




I also ran the the test jnlp and the error I got was that JAR resources in JNLP file are not signed by same certificate.

You're looking for the Build.xml file, which is an ant script. It will be in the root folder of the project.

In NetBeans: right click on the ant project (jME) and select run (make sure you open it if it's not already loaded in NetBeans)

Okay maybe I need to be more clear. I am rather new to Java and only put together a couple basic programs together for college projects.



I am working with jme1, I have read over the introduction very carefully and tried to troubleshoot it. I am trying to get some sort of GUI to work with.



When I entered: 'ant dist-all' this is what came back in the command prompt.


C:Program FilesjMEjme>ant dist-all
Buildfile: build.xml

init:
     [echo] jmeKeyStore

compile:
    [javac] Compiling 1390 source files to C:Program FilesjMEjmebuild
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
    [javac] import sun.misc.Service;
    [javac]                ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
    [javac] import sun.misc.ServiceConfigurationError;
    [javac]                ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:187: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
    [javac]             throws ServiceConfigurationError {
    [javac]                    ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:189: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
    [javac]             Iterator displayProviders = Service.providers(SystemProvider.class);
    [javac]                                         ^
    [javac] C:Program FilesjMEjmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and
 may be removed in a future release
    [javac]             .doPrivileged(new sun.security.action.GetPropertyAction(

    [javac]                                                  ^
    [javac] C:Program FilesjMEjmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
    [javac]         value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);

    [javac]                             ^
    [javac] C:Program FilesjMEjmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac]     String sResult = new sun.misc.BASE64Encoder().encode(value);
    [javac]                                  ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 warnings

dist-core:
      [jar] Building jar: C:Program FilesjMEjmetargetjme.jar

dist-terrain:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-terrain.jar

dist-audio:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-audio.jar

dist-awt:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-awt.jar

dist-effects:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-effects.jar

dist-model:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-model.jar

dist-collada:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-collada.jar

dist-editors:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-editors.jar

dist-font:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-font.jar

dist-gamestates:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-gamestates.jar

dist-scene:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-scene.jar

dist-xml:
      [jar] Building jar: C:Program FilesjMEjmetargetjme-xml.jar

dist-all:

BUILD SUCCESSFUL
Total time: 1 minute 40 seconds
C:Program FilesjMEjme>



When I entered: ant dist-test I came back with...


C:Program FilesjMEjme>ant dist-test
Buildfile: build.xml

init:
     [echo] jmeKeyStore

compile:
    [javac] Compiling 1390 source files to C:Program FilesjMEjmebuild
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
    [javac] import sun.misc.Service;
    [javac]                ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
    [javac] import sun.misc.ServiceConfigurationError;
    [javac]                ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:187: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
    [javac]             throws ServiceConfigurationError {
    [javac]                    ^
    [javac] C:Program FilesjMEjmesrccomjmesystemDisplaySystem.java:189:
warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
    [javac]             Iterator displayProviders = Service.providers(SystemProvider.class);
    [javac]                                         ^
    [javac] C:Program FilesjMEjmesrccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
    [javac]             .doPrivileged(new sun.security.action.GetPropertyAction(

    [javac]                                                  ^
    [javac] C:Program FilesjMEjmesrccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
    [javac]         value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);

    [javac]                             ^
    [javac] C:Program FilesjMEjmesrccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac]     String sResult = new sun.misc.BASE64Encoder().encode(value);
    [javac]                                  ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 warnings

compile-test:
    [javac] Compiling 249 source files to C:Program FilesjMEjmebuild
    [javac] Note: C:Program FilesjMEjmesrcjmetestTestChooser.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

dist-test:
     [echo] lib/jinput.jar lib/jogg-0.0.7.jar lib/jorbis-0.0.15.jar lib/junit-4.1.jar lib/lwjgl.jar lib/lwjgl_util_applet.jar jme-audio.jar jme-awt.jar jme-collada.jar jme-editors.jar jme-effects.jar jme-font.jar jme-gamestates.jar jme-mode
l.jar jme-scene.jar jme-terrain.jar jme-xml.jar jme.jar jmetest-data-cursor.jar jmetest-data-images.jar jmetest-data-model.jar jmetest-data-skybox1.jar jmetest-data-sound.jar jmetest-data-texture.jar
      [jar] Building jar: C:Program FilesjMEjmetargetjmetest.jar

BUILD SUCCESSFUL
Total time: 4 minutes 45 seconds
C:Program FilesjMEjme>



and finally when I entered java -Djava.library.path=./lib -cp ./lib/lwjgl.jar;./lib/jogg-0.0.5.jar;./lib/jorbis-0.0.12.jar;./target/jme.jar;./target/jmetest.jar;./target/jmetest-data.jar jmetest.effects.TestDynamicSmoker

I came back with...

C:Program FilesjMEjme>java -Djava.library.path=./lib -cp ./lib/lwjgl.jar;./lib/jogg-0.0.5.jar;./lib/jorbis-0.0.12.jar;./target/jme.jar;./target/jme-effects.jar;./target/jme-model.jar;./target/jme-sound.jar;./target/jme-terrain.jar;./target/jmetest.jar;./target/jmetest-data.jar;./target/jme-awt.jar
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument

    -splash:<imagepath>
                  show splash screen with specified image

C:Program FilesjMEjme>



All I am asking is how to run jME? I see the build file, I would R+Click on the project ant (jme) file in NetBeans; problem is that I can't find it. Its like asking for directions to a house and the answers I get from the locals are "It's near Main St." or "Go down Main St. until you see a house with a basketball hoop then take a left turn." It's good for people that know the area but its completely useless to somebody that doesn't know. I am not trying to be insulting but I am guilty myself for talking jargon to people that don't have a clue to what I am saying. I recently had to work in a group in a document for a program. My supervisor explicitly told us write it for a person that never turn on a computer. I am not asking for something that basic, but a few more hints would help.

I am asking a basic walk through how to RUN the program not just compile it. I feel like there is some important piece of information that is missing that I am not seeing. I feel so close to getting it to run.
I would R+Click on the project ant (jme) file in NetBeans; problem is that I can't find it.

Did you open the 'stuff' that was downloaded from the SVN with NetBeans?

No actually, I just got done checking out the jme files from netbeans, sure was a whole lot easier  :D. Okay I have jme saved as a project. Okay, what is next?

Once you get the project into NetBeans (first download from SVN, then open as Project), simply right click on the project (should have a little ant icon) then select Run; if every thing goes right you will see a dialog full of the different tests you can run.  These tests serve 2 purposes: first to verify the feature works correctly and second to show new users (that would be you :)) how to get up and running quickly, so poke around in the source for the good pointers, etc.



…and remember to HAVE FUN! :stuck_out_tongue:

we need more video tutorials :slight_smile:

Okay maybe I am missing something, when I R+Click on the jme project I didn't get any 'ant' icon. I double checked in the command prompt again and everything is still running like before. Is there a certain version of apache ant you are using or netbeans, I am currently using NB 6.5 SE?



Well I am calling it a night. I appreciate all the help you guys are giving. Honestly it's not really for my use, I was in game design but switched courses. I am mostly getting this to work for the game developers club. When I can get this to run I can show them how.

Maybe these screenshots will help…



Open Project:





Select Project (notice the ant icon…):





Right Click and select run:

Thanks for you help I stopped trying with JME1 and went to JME2. I do have have good news and bad, the good news is I got part of it done. The bad is the for the jmePhysics folder there isn't a dist directory after I checked out. I hope when I check it out again it'll be in there. I'll let you know if I have any other problems.

Okay where do I get the dist directory (folder) for jmePhysics? I checked it out again and it's not there and I looked through every folder.

The dist folder is created when you 'Clean and Build' :slight_smile:

Ok thanks :slight_smile: I must of missed that step. Now I need to get a GUI. Any suggestions, I saw GBUI as the one mentioned on the wiki?

Well, I was using fengGUI, but I am hearing good things about GBUI…