I'm getting an after changing the package name from the default 'b4j.example'.
The error appears when I run the batch file after creating standalone package.
The project will still compile and the application does run properly if ran from the ide.
Changing it back to the default does not correct it. Nor does clean project.
3 questions regarding this:
Why does changing the package name break an otherwise properly running program?
How do you change the package name without breaking the project?
What is module b4j at the error line below? I can't find a b4j module anywhere in my project.
More Info:
I have 3 modules as seen in the modules tab. None of them are called b4j.
None of the warnings below appeared before I changed the the package name under build configurations.
Below is what I get after changing the package name from it's default and then running run_debug.bat after packaging to .
The executable generated doesnt run either. It silently dies immediately after attempting to run.
[copied from run_debug.bat output]
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build>cd bin
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/ctb.mms.main
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: java.desktop specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
Error: Unable to load main class ctb.mms.main in module b4j
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build\bin>pause
Press any key to continue . . .
The error appears when I run the batch file after creating standalone package.
The project will still compile and the application does run properly if ran from the ide.
Changing it back to the default does not correct it. Nor does clean project.
3 questions regarding this:
Why does changing the package name break an otherwise properly running program?
How do you change the package name without breaking the project?
What is module b4j at the error line below? I can't find a b4j module anywhere in my project.
More Info:
I have 3 modules as seen in the modules tab. None of them are called b4j.
None of the warnings below appeared before I changed the the package name under build configurations.
Below is what I get after changing the package name from it's default and then running run_debug.bat after packaging to .
The executable generated doesnt run either. It silently dies immediately after attempting to run.
[copied from run_debug.bat output]
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build>cd bin
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/ctb.mms.main
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: java.desktop specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
Error: Unable to load main class ctb.mms.main in module b4j
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
D:\MY Apps\Basic4Java\ctb_media_server - uses 10.2\Objects\temp\build\bin>pause
Press any key to continue . . .