I get the following message when I set a breakpoint in the JmeTest project:
Not able to submit breakpoint LineBreakpoint TestChooser.java : 422, reason: Breakpoint’s source file does not belong into the preferred source root ‘/Applications/jmonkeyplatform.app/Contents/Resources/jmonkeyplatform/jmonkeyplatform/libs/jMonkeyEngine3-sources.zip’
When I browse the app package the source file is there as expected.
Any ideas anyone…
Does this also happen when you put the code in a normal BasicGame project?
Thanks for getting back to me normen.
When I create a new basic game project the debugging seems to work fine. Thanks.
The java doc browsing works OK int he examples it’s just the source code browsing that fails.
I tried to set up a JMonkeyProject starting from an empty java project but I could not reference the JMonkeyLibs because they are in the .app package. I can browse the contents using finder, but I cannot reach them via the GDE. Were these jars supposed to be extracted during install?? or do we always use the basic game template to start JME3 projects?
You have to use the library feature and just add the jme3 library package which contains the reference to the jME3 libraries. But simple java projects should only be used for libraries.
Please forget my earlier email, I don’t think oi understood correctly. The debuggingsource code problem happens when I do the following:
- Create brand new java project adding the library jars to a lib folder within the project. (This includes the sources .zip)
- Copy the source files from the examples project to the new project
- Debug - same error as before - Not able to submit breakpoint LineBreakpoint TestChooser.java : 422, reason: Breakpoint’s source file does not belong into the preferred source root etc…
It’s ok I think I understand the problem, I was being an idiot.
Thanks for your time
Yeah, just use the IDEs management features instead of copying and linking stuff around