[SOLVED] Error "can not find symbol enableDebug" in TestFancyCar

the TestFancyCar game (and other test games) gives following error when i want enable debug mode with this code.


the error:

Compiling 2 source files to /home/asdb20/jme3-projects/fancy-    car/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/asdb20/jme3-projects/fancy-car/src/mygame/Main.java:94: error:    cannot find symbol
 symbol:   method enableDebug(AssetManager)
 location: class PhysicsSpace
 Note: /home/asdb20/jme3-projects/fancy-car/src/mygame/Main.java uses or    overrides a deprecated API.
 Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning
/home/asdb20/jme3-projects/fancy-car/nbproject/build-impl.xml:920: The    following error occurred while executing this line:
/home/asdb20/jme3-projects/fancy-car/nbproject/build-impl.xml:262: Compile   failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)

i use jme3alpha1.

thank you for your attention.

The 3.0 javadoc says:
Deprecated. in favor of BulletDebugAppState, use
BulletAppState.setDebugEnabled(boolean) to add automatically

So perhaps it was removed and you have to use the other way. Best to do it anyway.

1 Like


works fine in 3.1 alpha


thank you both it works well

1 Like