Help

hello, this is the 1st time i use a game engine,and i am using tutorials on this site. when i made a new game and copy the method simpleIntApp() and add the missing import file, i get an error message of a null pointer. Shouldnt the texture and models files from the tutorial be included when i installed the engine?



when i try to compress the files in a .jar to add to netbeans that i found in the lib directory,i get errors on the imports!!



plz i need help urgently thanks

e mail me if u can m.y._1992@hotmail.com

you need to add the library jme-testdata.jar to your classpath, or extract the models out of it and put them into your models folder

1 Like

Agree with @wezrule, sounds like the data jar isn’t on your classpath.



Off-Topic: For the future, a more descriptive subject is likely to garner faster responses

thanks guys…one other thing i may ask…in the tutorials, they want us to make a package…any idea how? and which files to add to the package? I know how to make a .jar file,but i just dont understand which libraries to get MANY THANKS IN ADVANCE :smiley:

What package?

moe69 said:
thanks guys...one other thing i may ask...in the tutorials, they want us to make a package...any idea how? and which files to add to the package? I know how to make a .jar file,but i just dont understand which libraries to get MANY THANKS IN ADVANCE :D


If you could link to the tutorial in question and just quote which part you're talking about that would greatly aid us in helping you :)

“Create a jme3test.helloworld package and a file HelloJME3.java in it.”

how do u make this package file? i need details thanks its found in the 1st simple application tutorial

Ah ok… A package is, essentially, a folder. If you’re using an IDE like Eclipse or NetBeans, you should be able to just click on your src folder and do something to the effect of ‘New->Package’.



When you do an import like ‘com.jme3.SomeClass’, you’re referencing a class in the com.jme3 package. If you get the sources for jME3, you will find SomeClass.java in the folder “com/jme3/”

It’s worth considering running through some Java tutorials and getting familiar with the language a bit before attempting something more advanced like a 3D game.

2 Likes

i think i got what u meant thanks guys :smiley: i ll try it out and reply if i face an issue

well…there is an issue i imported the jar with the com file in…but when i import like “import com.jme3.math.*” i get a red line under com and says it did not find it

Are you sure its on your classpath? Which IDE are you using?

i fixed it thanks,but one question where can I get additional material?

You make them!! You can get started with the materials documentation here hub.jmonkeyengine.org/wiki/doku.php/jme3:advanced:materials_overview

ah ok thanks :smiley: