Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  First example of tutorial (HelloWorld) not running ...  (Read 3340 times)
0 Members and 1 Guest are viewing this topic.
Offline MKM

Junior Newbie





« Posted 2005-08-02 15:41:10 »

Hello,

I'm new to jME and and tried do the tut (the pdf), begining with the super simple HelloWorld example...but it does not run. To be more precise once launched, the jme dialog appears, i do the selection, the i get a full (black) screen, then the program dies, on the console i got the following :

E:\MKM\Projets\testJME>java -cp ".;E:/MKM/Projets/testJME/JME/jme.jar;E:/MKM/Projets/testJME/lwjgl/jar/lwjgl.jar;" -Djava.library.path="E:/MKM/Projets/testJME/lwjgl/native" HelloWorld
2 ao�t 2005 15:25:39 com.jme.app.BaseGame start
INFO: Application started.
2 ao�t 2005 15:25:39 com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
2 ao�t 2005 15:25:39 com.jme.system.PropertiesIO load
INFO: Read properties
2 ao�t 2005 15:25:45 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
2 ao�t 2005 15:25:45 com.jme.system.PropertiesIO save
INFO: Saved properties
2 ao�t 2005 15:25:45 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
java.lang.NoSuchFieldError: GL_ARB_multitexture
   at com.jme.scene.state.lwjgl.LWJGLTextureState.<init>(Unknown Source)
   at com.jme.renderer.lwjgl.LWJGLRenderer.<init>(Unknown Source)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.createWindow(Unknown Source)
   at com.jme.app.SimpleGame.initSystem(Unknown Source)
   at com.jme.app.BaseGame.start(Unknown Source)
   at HelloWorld.main(HelloWorld.java:17)

2 ao�t 2005 15:25:46 com.jme.app.SimpleGame cleanup
INFO: Cleaning up resources.
2 ao�t 2005 15:25:46 com.jme.input.InputSystem getKeyInput
ATTENTION: KeyInput is null, insure that a call to createInputSystem was made before getting the devices.
2 ao�t 2005 15:25:46 com.jme.input.InputSystem getMouseInput
ATTENTION: MouseInput is null, insure that a call to createInputSystem was made before getting the devices.
2 ao�t 2005 15:25:46 com.jme.app.BaseGame start
INFO: Application ending.


The program is exactly the same as the one of the tut, and when i check the lwjgl doc the GL_ARB_multitexture field exists.
I use the jME 0.8 and the lwjgl 0.97alpha.

Maybe i've missed something but I can't figure what  Huh  Huh  Huh

Thank in advance for any tip / answer.
[note : the demos on the jME site run without problem on my machine when launched in the browser]

p.s. the source of the example :
import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;
/**
* Started Date: Jul 20, 2004<br><br>
* Simple HelloWorld program for jME
*
* @author 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.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
    app.start(); // Start the program
  }
  protected void simpleInitGame()
  {
    // Make a box
    Box b = new Box("Mybox",
                    new Vector3f(0,0,0),
                    new Vector3f(1,1,1));
    rootNode.attachChild(b); // Put it in the scene graph
  }
}
Offline MKM

Junior Newbie





« Reply #1 - Posted 2005-08-02 16:17:35 »

Ok, it's me again :
- first for jME problem go to : http://www.jmonkeyengine.com/jmeforum/
- for the problem above use the Nightly Builds from jME home.
With that version everything goes well.
Offline Mojomonkey

Senior Member




ooh ooh eee eeee


« Reply #2 - Posted 2005-08-02 19:07:05 »

Quote
I use the jME 0.8 and the lwjgl 0.97alpha.

jME 0.8 is only compatible with LWJGL 0.94, so try getting the nightly build as mkm said. Or downgrade lwjgl.

Don't send a man to do a monkey's work.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.125 seconds with 21 queries.