Java Question shortname not resolved library example

shb777

Active Member
Licensed User
Longtime User
I trying to do the youtube tutorial on creating a simple library and I'm getting this error:

package anywheresoftware.b4a.sample;
import anywheresoftware.b4a.BA.shortname;
@ShortName("djimavic")
/* hi */
public class djimavic {

public int multiply(int x) {
return x*3;

}
}

import anywheresoftware.b4a.BA.shortname; this cannot be resolved


I found the problem s and h have to be capitalized


but after i fixed that i can't build the project. i've never used eclipse before
 
Last edited:

jahswant

Well-Known Member
Licensed User
Longtime User
You need to add at least 3 principal jar files to your Library project i.e (BAShared.jar,Core.jar ) from librairies in B4A installation and (Android.jar) from your SDK in the platforms folder.
 

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Top