Java Question Java Libs - I'm a little confused...

Discussion in 'Libraries developers questions' started by kepler, Mar 8, 2015.

  1. kepler

    kepler Active Member Licensed User

    Good afternoon,

    I'm trying to find a way of using existing java files in B4A. There are some good utils out there.

    I saw the post where it's explained how to create a Java Lib in Eclipse, with the .xml doc, and that can be used with B4A - although I was only able to retrieve the .xml file and not the .jar file... Don't know why. But I would surely would like to know the reason.

    But even in that process (Eclipse), how do I fit in the existing java files?

    If they are plain procedures - functions - I can put them manually in Eclipse; it's a little bit boring, but it can be done with patience.

    But what about "public class" procedures? Like:

    public class L
    {
    double x1;
    double x2;
    double x3;
    double xr;
    }

    How and where are they inserted in the Eclipse code?

    Can someone please point me out how to do this?

    Kind regards,

    Kepler
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use SLC tool to generate both the jar and xml.

    You can add the other classes to your code or add a complete jar and use @DependsOn annotation to tell the compiler that your library depends on another jar file.
     
    kepler likes this.
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