Android Question Can not create library B4A from Eclipse

Volga_

Member
Hello everyone,
I can not create library B4A from Eclipse follow to
Please tell me how to do this ? Thanks.
 

Attachments

  • Capture.JPG
    Capture.JPG
    160.8 KB · Views: 69
  • Capture1.JPG
    Capture1.JPG
    58 KB · Views: 74

Volga_

Member
Configure B4A to use Java 8. The doclet tool depends on Java 8.
Thanks. All works.
Compiled successfully:
Starting step: Compiling Java code.
Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
Loading source file C:\Users\DCUONG\Downloads\SimpleLibraryCompiler\SimpleLibraryCompiler\FirstLibrary\src\b4x\example\FirstLib.java...
Constructing Javadoc information...
[-doclet, BADoclet]
[-docletpath, C:\Users\DCUONG\Downloads\SimpleLibraryCompiler\SimpleLibraryCompiler]
[-doclet, BADoclet]
[-docletpath, C:\Users\DCUONG\Downloads\SimpleLibraryCompiler\SimpleLibraryCompiler]
[-bootclasspath, C:\Android\platforms\android-33\android.jar]
[-classpath, C:\Program Files\Anywhere Software\B4A\B4A.exe\../libraries\B4AShared.jar;C:\Program Files\Anywhere Software\B4A\B4A.exe\../libraries\Core.jar;]
[-sourcepath, src]
[-b4atarget, C:\Android\Additional Lib\FirstLib.xml]
[-b4aignore, org,com.android,com.example,com.hoho]
Ignoring: [org, com.android, com.example, com.hoho]
starting....
Working with class: b4x.example.FirstLib
finish: C:\Android\Additional Lib\FirstLib.xml

Completed successfully.
*** Don't forget to refresh the libraries list in the IDE (right click and choose Refresh) ***
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
I agree with Erel that you should use SLC if you really think it is necessary to create a library. The problem for me, as a non-Java expert :confused:, is that if you get an error message from SLC, it is unclear to me :confused: where it comes from and how you can solve it.

That's why I use a two-step approach when I want to create a library with SLC. I first start in Eclipse with JavaSE1.8 project in Eclipse. Then I change the JavaSE1.8 to the used Java jdk-1.8 library that I use in B4X. I first use Eclipse to solve all the challenges to get the library error-free (imports and Java syntax) ?.

Then I merge the SLC directories with those of SLC and point SLC to the src directory of the Eclipse project and then use SLC to compile the library in the B4X environment error-free ? and create the doclet xml file ?.
 
Upvote 0
Top