Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 3782 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.

 

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

The first screenshot will be displayed as a thumbnail.

pw (35 views)
2014-07-24 01:59:36

Riven (36 views)
2014-07-23 21:16:32

Riven (24 views)
2014-07-23 21:07:15

Riven (26 views)
2014-07-23 20:56:16

ctomni231 (56 views)
2014-07-18 06:55:21

Zero Volt (48 views)
2014-07-17 23:47:54

danieldean (39 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!