I have a lot of .java files, most which contain a public class. I want to make a library called SWE_Lib which will contain all the routines in all these separate .java files. I get the feeling that I have to modify these .java files and add:
import anywheresoftware.b4a.BA.ShortName;
@ShortName("TransitCalculator")
after the package name, which is "package v176".
1) Where does the "anywheresoftware.b4a." in #1 above come from? Is this import statement needed? In my setup wouldn't I just use "import BA.ShortName;"? But when I do any of this in my TransitCalculator.java script, for instance, then Eclipse gives me an error and will not run javadoc.
I want to name my library "SWE_Lib", but the code below does not run - it can't find "SWE_Lib".
'Activity module
Sub Process_Globals
Dim fl As FirstLib 'this works fine
Dim swe As SWE_Lib 'compiling does not recognize the library
End Sub
Sub Activity_Create(FirstTime As Boolean)
Log(fl.multiply(27)) 'this works fine
' Log(swe.swedate(22.09.1949))
End Sub
I attach my Eclipse Workspace in case anyone wants to have a go with the files I am working with. Well, I can't attach the whole thing because the forum has a file size limit.
.java files in - C:\Program Files\eclipse\Workspace\SwissEphLib\src\v176
Basic4android is installed in - C:\Program Files\Basic4android
Eclipse is installed in - C:\Program Files\eclipse
Eclipse workspace installed in - C:\Program Files\eclipse\Workspace
Java jdk installed in - C:\Program Files\Java\jdk1.6.0_26
Java itself installed in - C:\Program Files\Java\jre6
Running XP SP3.
Thank you.
import anywheresoftware.b4a.BA.ShortName;
@ShortName("TransitCalculator")
after the package name, which is "package v176".
1) Where does the "anywheresoftware.b4a." in #1 above come from? Is this import statement needed? In my setup wouldn't I just use "import BA.ShortName;"? But when I do any of this in my TransitCalculator.java script, for instance, then Eclipse gives me an error and will not run javadoc.
I want to name my library "SWE_Lib", but the code below does not run - it can't find "SWE_Lib".
'Activity module
Sub Process_Globals
Dim fl As FirstLib 'this works fine
Dim swe As SWE_Lib 'compiling does not recognize the library
End Sub
Sub Activity_Create(FirstTime As Boolean)
Log(fl.multiply(27)) 'this works fine
' Log(swe.swedate(22.09.1949))
End Sub
I attach my Eclipse Workspace in case anyone wants to have a go with the files I am working with. Well, I can't attach the whole thing because the forum has a file size limit.
.java files in - C:\Program Files\eclipse\Workspace\SwissEphLib\src\v176
Basic4android is installed in - C:\Program Files\Basic4android
Eclipse is installed in - C:\Program Files\eclipse
Eclipse workspace installed in - C:\Program Files\eclipse\Workspace
Java jdk installed in - C:\Program Files\Java\jdk1.6.0_26
Java itself installed in - C:\Program Files\Java\jre6
Running XP SP3.
Thank you.