F fishwolf Well-Known Member Licensed User Longtime User Jun 21, 2016 #1 i have compile the library sample "FirstLib" with SCL, tool add library to B4J librarries folder and B4J see this library. How to i can use the library (single method add)?
i have compile the library sample "FirstLib" with SCL, tool add library to B4J librarries folder and B4J see this library. How to i can use the library (single method add)?
DonManfred Expert Licensed User Longtime User Jun 21, 2016 #2 I dont understand your english/your question Can describe it more clearly what you want to do? Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Jun 21, 2016 #3 DonManfred said: I dont understand your english/your question Can describe it more clearly what you want to do? Click to expand... after I created the library and IDE see it, in what way can I use the "add" method in a b4a app ? Upvote 0
DonManfred said: I dont understand your english/your question Can describe it more clearly what you want to do? Click to expand... after I created the library and IDE see it, in what way can I use the "add" method in a b4a app ?
Eme Fibonacci Well-Known Member Licensed User Longtime User Jun 21, 2016 #4 Generated files was copied to your additional libraries folder ? The library was selected in libraries manager? and then you tried something like this? B4X: Dim FirstLib1 as FirstLib Upvote 0
Generated files was copied to your additional libraries folder ? The library was selected in libraries manager? and then you tried something like this? B4X: Dim FirstLib1 as FirstLib
F fishwolf Well-Known Member Licensed User Longtime User Jun 22, 2016 #5 Eme Fibonacci said: Generated files was copied to your additional libraries folder ? Click to expand... Yes, in B4J Folder The library was selected in libraries manager? Click to expand... Yes, in B4J and then you tried something like this? B4X: Dim FirstLib1 as FirstLib Click to expand... No, don't exist a data type "FirstLib" Upvote 0
Eme Fibonacci said: Generated files was copied to your additional libraries folder ? Click to expand... Yes, in B4J Folder The library was selected in libraries manager? Click to expand... Yes, in B4J and then you tried something like this? B4X: Dim FirstLib1 as FirstLib Click to expand... No, don't exist a data type "FirstLib"
DonManfred Expert Licensed User Longtime User Jun 22, 2016 #6 Maybe you should upload your java source of the wrapper so we can see what you did Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Jun 22, 2016 #7 DonManfred said: Maybe you should upload your java source of the wrapper so we can see what you did Click to expand... FirstLib is the sample lib write to Erel without wrapper, have a single method add. B4X: package com.example; import anywheresoftware.b4a.BA; import anywheresoftware.b4a.BA.*; @Version(1.0f) //@Permissions(values={"android.permission.INTERNET"}) @ShortName("FirstLib") //@DependsOn(values={"some java library "}) //@ActivityObject public class FirstLib { public int add(int x, int y) { return x + y; } } Upvote 0
DonManfred said: Maybe you should upload your java source of the wrapper so we can see what you did Click to expand... FirstLib is the sample lib write to Erel without wrapper, have a single method add. B4X: package com.example; import anywheresoftware.b4a.BA; import anywheresoftware.b4a.BA.*; @Version(1.0f) //@Permissions(values={"android.permission.INTERNET"}) @ShortName("FirstLib") //@DependsOn(values={"some java library "}) //@ActivityObject public class FirstLib { public int add(int x, int y) { return x + y; } }
DonManfred Expert Licensed User Longtime User Jun 22, 2016 #8 and what is the resulting jar and xml after you compile it with SLC? zip and upload these files please. Upvote 0
and what is the resulting jar and xml after you compile it with SLC? zip and upload these files please.
DonManfred Expert Licensed User Longtime User Jun 22, 2016 #9 fishwolf said: package com.example; Click to expand... use your own packagename for the libs... Or remove the "com.example" from your SLC b4aignore parameter Upvote 0
fishwolf said: package com.example; Click to expand... use your own packagename for the libs... Or remove the "com.example" from your SLC b4aignore parameter