Terrain problem

Excuse me for my English sorry ….but j am an Italian’s boy. ://

J have written this code:


RawHeightMap quadMap=new RawHeightMap("C:\….\jbproject\gameLWJGL\Res\Terrain.raw",128);

if (quadMap.load())


/line 95/ RawHeightMap quadMap=new RawHeightMap("C:\Documents and Settings\Angelo\jbproject\gameLWJGL\Res\Terrain.raw",128);

if (quadMap.load())


TerrainBlock terra=new TerrainBlock("monte",128,new Vector3f(100,100,100),quadMap.getHeightMap(),new Vector3f(0,0,0),true);


terra.setModelBound(new BoundingBox());


Compiling Ok!!

But at running time:

Successfully loaded C:Documents and SettingsAngelojbprojectgameLWJGLResTerrain.raw


at com.jme.scene.Geometry.(Unknown Source)

at com.jme.scene.TriMesh.(Unknown Source)

at com.jme.scene.lod.ClodMesh.(Unknown Source)

at com.jme.scene.lod.AreaClodMesh.(Unknown Source)

at com.jme.terrain.TerrainBlock.(Unknown Source)

at com.jme.terrain.TerrainBlock.(Unknown Source)

at gamelwjgl.Game.main(Game.java:95)

why this error ? j don’t untested.



This is not easy to help with as there isn’t any stack trace info (method calls). I don’t see anything obviously wrong with your code you posted. Can you post the entire source code?

You seam to be calling your code from main and not a init method from a application class. An Aplication class is a class that takes care of most of the work of inting the system. SyimpleGame is an example of an Application class. Are you using an application class or are you doing all the calls yourself?

J comes back and trying a more simple code (helloworld of Jack Lindamood) ://

public class HelloWorld extends SimpleGame{

public static void main(String[] args) {

HelloWorld app=new HelloWorld(); // Create Object


// Signal to show properties dialog

app.start(); // Start the program


protected void simpleInitGame()


Box b=new Box("My box",new Vector3f(0,0,0),new Vector3f(1,1,1)); // Make a box

rootNode.attachChild(b); // Put it in the scene graph



compiling OK…

but at running time :

C:JBuilderXjdk1.4binjavaw -classpath "C:Documents and SettingsAngelojbprojectprovaJMEngineclasses;C:JBuilderXlwjgl-win32-0.92jmengine.jar;C:JBuilderXlwjgl-win32-0.92JMonkeyEnginejmengine.jar;C:JBuilderXlwjgl-win32-0.92lwjgl.jar;C:JBuilderXjdk1.4demojfcJava2DJava2Demo.jar;C:JBuilderXjdk1.4demopluginjfcJava2DJava2Demo.jar;C:JBuilderXjdk1.4jrejavawsjavaws.jar;C:JBuilderXjdk1.4jrelibcharsets.jar;C:JBuilderXjdk1.4jrelibextdnsns.jar;C:JBuilderXjdk1.4jrelibextldapsec.jar;C:JBuilderXjdk1.4jrelibextlocaledata.jar;C:JBuilderXjdk1.4jrelibextsunjce_provider.jar;C:JBuilderXjdk1.4jrelibimindicim.jar;C:JBuilderXjdk1.4jrelibimthaiim.jar;C:JBuilderXjdk1.4jrelibjce.jar;C:JBuilderXjdk1.4jrelibjsse.jar;C:JBuilderXjdk1.4jrelibplugin.jar;C:JBuilderXjdk1.4jrelibrt.jar;C:JBuilderXjdk1.4jrelibsunrsasign.jar;C:JBuilderXjdk1.4libdt.jar;C:JBuilderXjdk1.4libhtmlconverter.jar;C:JBuilderXjdk1.4libtools.jar" -Djava.library.path=C:JBuilderXlwjgl-win32-0.92 provajmengine.HelloWorld

14-ott-2004 11.38.13 com.jme.app.BaseGame start

INFO: Application started.

14-ott-2004 11.38.13 com.jme.system.PropertiesIO

INFO: PropertiesIO created

14-ott-2004 11.38.13 com.jme.system.PropertiesIO load

AVVERTENZA: Could not load properties: java.io.FileNotFoundException: properties.cfg

java.lang.NoClassDefFoundError: org/lwjgl/Display

at com.jme.system.LWJGLPropertiesDialog.(Unknown Source)

at com.jme.app.AbstractGame.getAttributes(Unknown Source)

at com.jme.app.BaseGame.start(Unknown Source)

at provajmengine.HelloWorld.main(HelloWorld.java:36)

14-ott-2004 11.38.13 com.jme.app.SimpleGame cleanup

INFO: Cleaning up resources.


at com.jme.app.SimpleGame.cleanup(Unknown Source)

at com.jme.app.BaseGame.start(Unknown Source)

at provajmengine.HelloWorld.main(HelloWorld.java:36)

Exception in thread "main"

Tanks for help.


java.lang.NoClassDefFoundError: org/lwjgl/Display

at com.jme.system.LWJGLPropertiesDialog.(Unknown Source)

Old lwjgl jar in path ?

For Matzon

Sorry, but the LWJGL version is 0.92 alpha…….( only version on my system).


Perhaps it’s not on your path at all? Are you using -Djava.library.path={your lib directory}? Or even placing it in your system path?

The problem has been resolved (all ok with LWJGL vers. 0.9 :slight_smile: but not with vers. 0.92 :frowning: )

Ah, you are using the 0.7 jar, forgot that it uses LWJGL 0.9 while CVS uses 0.92.

When a jMe (*.jar) compatible with LWJGL 0.92 ?

  1. How many time to download JME from CVS with 33600 bps modem?

    2)Where j can find ODEjava (odejava.jar ecc) for phisics in my samples?

    (j have find only odejava.dll)

    tanks to all.
  1. i can’t remember exactly how long my last full checkout was but i’d expect something around 1-2 hours.