Roberto P. Well-Known Member Licensed User Longtime User Sep 28, 2018 #1 I want to create a library with B4J, containing generic functions for use with another Java program. I did two tests with new project "UI" and "NON UI". When I try to generate the library from the following error: Compiling code. error No modules to compile. Compilation: main I try to remove the main module from the project menu but it does not allow it. can you tell me how to do it? thank you
I want to create a library with B4J, containing generic functions for use with another Java program. I did two tests with new project "UI" and "NON UI". When I try to generate the library from the following error: Compiling code. error No modules to compile. Compilation: main I try to remove the main module from the project menu but it does not allow it. can you tell me how to do it? thank you
DonManfred Expert Licensed User Longtime User Sep 28, 2018 #2 Create a Class with the functionality, compile it to a library and use the compiled library in your projects then. Upvote 0
Create a Class with the functionality, compile it to a library and use the compiled library in your projects then.
Roberto P. Well-Known Member Licensed User Longtime User Sep 28, 2018 #3 OK thanks but I would like to create more classes in the project and save everything in one library. So I have to create a library for each class! Upvote 0
OK thanks but I would like to create more classes in the project and save everything in one library. So I have to create a library for each class!
DonManfred Expert Licensed User Longtime User Sep 28, 2018 #4 Roberto P. said: So I have to create a library for each class! Click to expand... yes. Or you are using one class which does contain all Edit to add: Seems i was wrong. Sorry Last edited: Sep 28, 2018 Upvote 0
Roberto P. said: So I have to create a library for each class! Click to expand... yes. Or you are using one class which does contain all Edit to add: Seems i was wrong. Sorry
alwaysbusy Expert Licensed User Longtime User Sep 28, 2018 #5 DonManfred said: yes. Click to expand... Are you sure? I thought everything in the project, except the main class, was compiled to the library. Upvote 0
DonManfred said: yes. Click to expand... Are you sure? I thought everything in the project, except the main class, was compiled to the library.
klaus Expert Licensed User Longtime User Sep 28, 2018 #6 Roberto P. said: but I would like to create more classes in the project and save everything in one library. Click to expand... No problem! So I have to create a library for each class! Click to expand... No! As alwaysbusy already wrote, all modules in the project will be in the library except the Main module. You can set #ExcludeFromLibrary on top of a module to exclude it from the library. Upvote 0
Roberto P. said: but I would like to create more classes in the project and save everything in one library. Click to expand... No problem! So I have to create a library for each class! Click to expand... No! As alwaysbusy already wrote, all modules in the project will be in the library except the Main module. You can set #ExcludeFromLibrary on top of a module to exclude it from the library.
Daestrum Expert Licensed User Longtime User Sep 28, 2018 #8 I want to create a library with B4J, containing generic functions for use with another Java program. Click to expand... Is the other java program created by b4j or is it a native java program? Upvote 0
I want to create a library with B4J, containing generic functions for use with another Java program. Click to expand... Is the other java program created by b4j or is it a native java program?
Roberto P. Well-Known Member Licensed User Longtime User Sep 28, 2018 #9 I created the library. But I can not use it from a program written in Java. Can the B4j libraries only work for B4J \ B4A? Upvote 0
I created the library. But I can not use it from a program written in Java. Can the B4j libraries only work for B4J \ B4A?
klaus Expert Licensed User Longtime User Sep 28, 2018 #10 Roberto P. said: Can the B4j libraries only work for B4J \ B4A? Click to expand... Yes with B4J but not with B4A. Upvote 0
Roberto P. said: Can the B4j libraries only work for B4J \ B4A? Click to expand... Yes with B4J but not with B4A.