B4A Library [Tool] Simple Library Compiler - Build libraries without Eclipse

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jun 4, 2013.

Thread Status:
Not open for further replies.
  1. Douglas Farias

    Douglas Farias Expert Licensed User

    I am able to build the FirstLibrary test project which is included by default. But when i am adding these 2 imports to the same file i receive compillaion error as displayed in the image attached.
    Can you please help me with this?
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    Remove the import. It is not needed as it does not exists!
     
    Douglas Farias likes this.
  3. Douglas Farias

    Douglas Farias Expert Licensed User

    It does not just for this example. But the same error is displayed with some real examples. The same is with android.content.Context. Do you have any clue on this?
     
  4. DonManfred

    DonManfred Expert Licensed User

    you dont need. I do not have this import in ANY of my libs.
    And i´m always using ba.context to give a context to the lib.
    Remove it
     
    Douglas Farias likes this.
  5. DonManfred

    DonManfred Expert Licensed User

    if you have any more questions:

    Create A NEW Thread here.
     
  6. Serdar K.

    Serdar K. Member Licensed User

    Hello,

    I am trying to change the Parse 1.4 library for support different URL's, but i couldn't have success at first to compile the library as it is.

    I wanted to test to compile the source code of 1.4, which Erel shared, with SLC.
    The link is :
    https://www.b4x.com/android/forum/attachments/parse_1-4_src-zip.41678/

    But i have got an error and notes :

    Code:
    Starting step: Compiling Java code.
    javac 
    1.8.0_66
    D:\SLC\
    Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java:602: error: <anonymous anywheresoftware.b4a.objects.ParseObjectWrapper$ParseQueryWrapper$2is not abstract and does not override abstract method done(List,ParseException) in FindCallback
           {
           ^
    Note: D:\SLC\
    Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation 
    for details.
    Note: D:\SLC\
    Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked 
    for details.
    1 error


    Error.
    Do you have any ideas i could try?
     
    Last edited: Nov 16, 2016
  7. Serdar K.

    Serdar K. Member Licensed User

    May be it is a compatibility issue?
     
    Last edited: Nov 16, 2016
  8. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this in the libraries developers forum.
     
  9. Roycefer

    Roycefer Well-Known Member Licensed User

    Is there any chance we could get an update to the B4A Simple Library Compiler to allow for usage of Java 8 language features?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    The IDE compiler doesn't yet support Java 8 features. Note that Android SDK doesn't fully support Java 8 features and some features are only supported by newer versions of Android.
     
  11. peter01

    peter01 Member Licensed User

    Hi Erel,

    how can I set the native library path for the B4J SLC, so that the created jar Library can refer to my included jMath.dll file (in Windows). In B4J I get an java.lang.UnsatisfiedLinkError: no jMath in java.library.path error.

    In Eclipse everything works with the include path for my jMath folder: C:\eclipse\workspace\jMath\additional for the native library location. I inspected the created jar file with 7-zip. the dll is in the root and the jMath class in the com/peter/jmath folder as specified in the java file.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    kammerhoferj likes this.
  13. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    Not a big issue but almost every time I press compile I get this log , the second try compile successfully .
    Code:
    Starting step: Compiling Java code.
    javac 
    1.7.0_79
    javac: directory 
    not found: bin\classes
    Usage: javac <options> <source files>
    use -help 
    for a list of possible options


    Error.
    SLC 1.05
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Make sure that Windows Explorer is not open on the library folder as it will lock it.
     
  15. DonManfred

    DonManfred Expert Licensed User

    I too have this phemomen. I´m using Eclipse. From Eclipse i too get this error on the first compile.
    I then need to mark the project in the exclipse IDE and compile again.
    No explorer window is open.
    And it always work in the second try.
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    Fixed in v1.06.
     
    somed3v3loper and DonManfred like this.
  17. DonManfred

    DonManfred Expert Licensed User

    Works great! Thank you very much :)
     
    Erel likes this.
  18. Erel

    Erel Administrator Staff Member Licensed User

    BADoclet v1.07 was uploaded to the zip attached to the first post.

    It adds support for custom class templates.
     
    Johan Schoeman and MarcoRome like this.
  19. Johan Hormaza

    Johan Hormaza Active Member Licensed User

  20. Johan Schoeman

    Johan Schoeman Expert Licensed User

    Do you have a "libs" folder on the same folder level as the "src" folder that has the jar files that the library must be compile with? If not I will post it later today

    Also, the -b4aignore field needs to be complete with the correct value (it could have been "com"). Check what the package names start with in the original Java project (not the wrapper)
     
    Johan Hormaza likes this.
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice