Could not find the main class: jMonkeyOptions

Running a basic program from the command line, I get this result

[java]java.lang.NoClassDefFoundError: jMonkeyOptions

Caused by: java.lang.ClassNotFoundException: jMonkeyOptions


at Method)


at java.lang.ClassLoader.loadClass(

at sun.misc.Launcher$AppClassLoader.loadClass(

at java.lang.ClassLoader.loadClass(

Could not find the main class: jMonkeyOptions. Program will exit.

Exception in thread "main"[/java]

This is mysterious because there is no evidence of the class jMonkeyOptions existing anywhere (after some searching on google and this site).

The program is nothing more than this, which compiles fine:


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;

public class Main extends SimpleApplication


public static void Main(String args[])


Main app = new Main();




public void simpleInitApp()




public void simpleUpdate(float tpf)




Any ideas on why this error is occurring?

How do you run the program from command line? This looks like the jar manifest specifies a wrong class name. If you used jMP to create the application, make sure the correct main class is selected in the “run” section of the project properties.

Oh, I fixed this. It was just an error in the batch file I was using.

Haha, batch files, so I guess you are using Eclipse, never undstood why it fails to use tha jar manifest for the classpath xD