Closed Ali-RS closed 1 year ago
Further investigating on this I found using java 8, it adds a "/" at the end of the directory name when calling file.getFileName() from a jar file system in this line:
so the constructed class name looks something like jme3test.scenes/.TestControl.class
Here is the result of adding a System.out.print before line 220 that prints the directory name (file.getFileName()
)
directoryName=scenes/
directoryName=font/
directoryName=materials/
directoryName=gui/
directoryName=export/
directoryName=niftygui/
directoryName=water/
directoryName=batching/
directoryName=post/
directoryName=light/
directoryName=pbr/
directoryName=network/
directoryName=tools/
directoryName=scene/
directoryName=instancing/
directoryName=effect/
directoryName=math/
directoryName=animation/
directoryName=stress/
directoryName=asset/
directoryName=input/
directoryName=combomoves/
directoryName=bounding/
directoryName=texture/
directoryName=ktx/
directoryName=dds/
directoryName=awt/
directoryName=bullet/
directoryName=shape/
directoryName=opencl/
directoryName=model/
directoryName=anim/
directoryName=shape/
directoryName=games/
directoryName=terrain/
directoryName=material/
directoryName=audio/
directoryName=conversion/
directoryName=app/
directoryName=state/
directoryName=renderer/
directoryName=collision/
directoryName=helloworld/
Note that it works fine when running from IDE.
It also works fine when launching with the gradle build script.
From the IDE it works just fine but when I run the JME examples jar file I extracted from jME3.6.0-alpha1.zip (downloaded from https://github.com/jMonkeyEngine/jmonkeyengine/releases/tag/v3.6.0-alpha1) with java 8 it does not show the class list. Running with java 11 and 17 it works fine.