Followed tutorial by jMonkeyPlatform (Copy n' Paste code) and still errors persist

code (copy n’ Paste w/ slight modification):

[java]

import com.jme3.app.SimpleApplication;

import com.jme3.material.Material;

import com.jme3.math.Vector3f;

import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;

import com.jme3.math.ColorRGBA;



/** Sample 1 - how to get started with the most simple JME 3 application.

  • Display a blue 3D cube and view from all sides by
  • moving the mouse and pressing the WASD keys. */

    public class HelloJME3 extends SimpleApplication {

    public static void main(String[] args){

    HelloJME3 app = new HelloJME3();

    app.start();

    }



    @Override

    public void simpleInitApp() {

    Box(Vector3f.ZERO, 1, 1, 1);

    Geometry geom = new Geometry(“Box”, b);

    Material mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);

    mat.setColor(“Color”, ColorRGBA.Blue);

    geom.setMaterial(mat);

    rootNode.attachChild(geom);

    }

    }

    [/java]



    Errors from code:



    C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTestsrcHelloJME3.java:19: cannot find symbol

    symbol : method Box(com.jme3.math.Vector3f,int,int,int)

    location: class HelloJME3

    Box(Vector3f.ZERO, 1, 1, 1);

    C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTestsrcHelloJME3.java:20: cannot find symbol

    symbol : variable b

    location: class HelloJME3

    Geometry geom = new Geometry(“Box”, b);

    2 errors



    What is wrong? How do I fix it? Why is the TUTORIAL wrong?

    Also, the fifth line is highlighted in yellow, like it’s not right.



    Thanks,

    cc11rocks

I also tried the following code, which compiles correctly:

[java]

import com.jme3.app.SimpleApplication;

import com.jme3.material.Material;

import com.jme3.math.Vector3f;

import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;

import com.jme3.math.ColorRGBA;



/** Sample 1 - how to get started with the most simple JME 3 application.

  • Display a blue 3D cube and view from all sides by
  • moving the mouse and pressing the WASD keys. */

    public class HelloJME3 extends SimpleApplication {



    public static void main(String[] args){

    HelloJME3 app = new HelloJME3();

    app.start();

    }



    @Override

    public void simpleInitApp() {

    Box b = new Box(Vector3f.ZERO, 1, 1, 1);

    Geometry geom = new Geometry("Box", b);

    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");

    mat.setColor("Color", ColorRGBA.Blue);

    geom.setMaterial(mat);

    rootNode.attachChild(geom);

    }

    }

    [/java]



    I tried to run it, with the default settings. A box started to show up, then went away. I was left with this code:



    init:

    Deleting: C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTestbuildbuilt-jar.properties

    deps-jar:

    Updating property file: C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTestbuildbuilt-jar.properties

    Compiling 1 source file to C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTestbuildclasses

    compile-single:

    run-single:

    Mar 28, 2011 12:05:24 AM com.jme3.system.JmeSystem initialize

    INFO: Running on jMonkey Engine 3 Alpha 0.6

    Mar 28, 2011 12:05:25 AM com.jme3.system.Natives extractNativeLibs

    INFO: Extraction Directory #1: file:/C:/Program%20Files/jmonkeyplatform/jmonkeyplatform/libs/

    Mar 28, 2011 12:05:25 AM com.jme3.system.Natives extractNativeLibs

    INFO: Extraction Directory #2: C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTest

    Mar 28, 2011 12:05:25 AM com.jme3.system.Natives extractNativeLibs

    INFO: Extraction Directory #3: C:Userscc11rocksDocumentsjMonkeyProjectsFirstAppTest

    Mar 28, 2011 12:05:25 AM com.jme3.system.lwjgl.LwjglAbstractDisplay run

    INFO: Using LWJGL 2.7.1

    Mar 28, 2011 12:05:25 AM com.jme3.system.lwjgl.LwjglDisplay createContext

    INFO: Selected display mode: 640 x 480 x 0 @0Hz

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: Display created.

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: Adapter: vga

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: Driver Version: 6.1.7600.16385

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: Vendor: Intel

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: OpenGL Version: 1.4.0 - Build 8.14.10.1930

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread

    INFO: Renderer: Intel 945GM

    Mar 28, 2011 12:05:26 AM com.jme3.system.lwjgl.LwjglTimer

    INFO: Timer resolution: 1000 ticks per second

    Mar 28, 2011 12:05:26 AM com.jme3.app.Application handleError

    SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

    java.lang.UnsupportedOperationException: GLSL and OpenGL2 is required for the LWJGL renderer!

    at com.jme3.renderer.lwjgl.LwjglRenderer.initialize(LwjglRenderer.java:194)

    at com.jme3.system.lwjgl.LwjglContext.internalCreate(LwjglContext.java:76)

    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:137)

    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:206)

    at java.lang.Thread.run(Thread.java:662)

    BUILD SUCCESSFUL (total time: 10 seconds)

Do the other examples run? What kind of graphics card+drivers do you have?

In your first code example, you are trying to instantiate a new Box but not assign it to a variable. I know there are some mistakes in the tutorials, but you should have caught this one yourself.



Regarding the exception, perhaps it is your Intel integrated graphics?

I am using an Asus EEE PC 1005 HAB, which is a netbook. Here are the relevant specs:



Intel Atom processor N270

(533MHz system bus, 512KB L2 cache and 1.6GHz processor speed)

1GB DDR2 memory

Intel UMA graphics 224 MB video memory



Mobile Intel 945 Express Chipset Family --No updates.



Mobile Intel 945GME Express Processor to DRAM Controller - 27AC



Since this post, I have installed an extra driver; one that is supposed to have compatibility with OpenGL. It is:



Intel Graphics Media Accelerator Driver. Version: 8.15.10.1930



This particular driver is for Mobile Intel 945 Express Chipset Family.



Result:

Same errors