Blueforcer Well-Known Member Licensed User Longtime User Oct 18, 2020 #1 i develop non-UI libraries wich are loaded into a non-UI App. Now i want to make a UI scaffolding for the library to test it directly with a UI. My library class doesnt contains any jFX functions or the jFX library. So its not a real UI application. Only the Main file handles all the UI stuff. If i compile the Library class and add it to my non-UI app it says B4X: Copy java.lang.NoClassDefFoundError: anywheresoftware/b4j/objects/FxBA is it possible to only compile the Lib-class to a non-ui Library without the jFX stuff? greetings and stay safe
i develop non-UI libraries wich are loaded into a non-UI App. Now i want to make a UI scaffolding for the library to test it directly with a UI. My library class doesnt contains any jFX functions or the jFX library. So its not a real UI application. Only the Main file handles all the UI stuff. If i compile the Library class and add it to my non-UI app it says B4X: Copy java.lang.NoClassDefFoundError: anywheresoftware/b4j/objects/FxBA is it possible to only compile the Lib-class to a non-ui Library without the jFX stuff? greetings and stay safe
LucaMs Expert Licensed User Longtime User Oct 19, 2020 #2 Blueforcer said: If i compile the Library class and add it to my non-UI app it says Click to expand... Did you compile the class in a non-UI project? Are you sure? In this case the template does not contain a reference to FX. Upvote 0
Blueforcer said: If i compile the Library class and add it to my non-UI app it says Click to expand... Did you compile the class in a non-UI project? Are you sure? In this case the template does not contain a reference to FX.
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2020 #3 Best solution is to create a b4xlib. They are very simple to create and will work with both non-ui and ui projects. Upvote 0
Best solution is to create a b4xlib. They are very simple to create and will work with both non-ui and ui projects.
Blueforcer Well-Known Member Licensed User Longtime User Oct 19, 2020 #4 LucaMs said: Did you compile the class in a non-UI project? Are you sure? In this case the template does not contain a reference to FX. Click to expand... No, i compile the Lib class in a GUI project, but want to use it in a Non-gui one. The Lib class itself doesnt contain any FX related stuff. Erel said: Best solution is to create a b4xlib. They are very simple to create and will work with both non-ui and ui projects. Click to expand... I cant, because the library is loaded as a .jar during runtime with ABPlugin Upvote 0
LucaMs said: Did you compile the class in a non-UI project? Are you sure? In this case the template does not contain a reference to FX. Click to expand... No, i compile the Lib class in a GUI project, but want to use it in a Non-gui one. The Lib class itself doesnt contain any FX related stuff. Erel said: Best solution is to create a b4xlib. They are very simple to create and will work with both non-ui and ui projects. Click to expand... I cant, because the library is loaded as a .jar during runtime with ABPlugin
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2020 #5 You will need to compile it from a non-ui project. It is quite simple. Create a new non-ui project and reference the same classes. Upvote 0
You will need to compile it from a non-ui project. It is quite simple. Create a new non-ui project and reference the same classes.
Blueforcer Well-Known Member Licensed User Longtime User Oct 19, 2020 #6 Pity, unfortunately not what I want. thought there is a direct way. Thanks anyway Upvote 0