Example code¶
The beginner tutorial series includes Java examples you can copy into a project created with the Initializer. The engine also publishes example source code, including the Hello World examples.
Examples may require specific modules or sample assets. Check their imports and asset paths, add the dependencies your project needs, and run them against the engine version you are using.
Test assets¶
Some engine examples load assets from the jme3-testdata module. Add the
matching test-data dependency to your development runtime when an example
requires it, or replace the paths with assets in your own project. Test data is
for examples; check individual asset licenses before redistribution.