Thanks for your advice Erel. But as I'm new, would you please explain how to add wrapper.You should add a @DependsOn annotation to your wrapper.
@DependsOn(values = {"android-support-v4"})
I have just read your first post again and I think you are misunderstanding what you require to do. This is how things normally work with libraries. The platform_extension.jar stays as it is. You create a new library for Basic4Android. In the new library you create methods for the calls that are required. These calls then call the methods of platform-extension.jar. When you add the additional libraries in eclipse (BAShared, Core and Android) you should also add reference to platform_extension.jar. and also include an import within the class.
I'm not exactly an expert on libs so I hope I have explained that in a manner that is understandable.
Select your "src" folder in Package Explorer, right click -> Export Java -> Jar file; select destination and name then press Finish.
Or better, set up SLC, http://www.b4x.com/android/forum/th...mpiler-build-libraries-without-eclipse.29918/, as an external tool with arguments ${project_name} c:\Java\workspace\${project_path}, Run -> External Tools -> External Tools Configuration and it will compile the jar and xml in one go if you select your project in Package Explorer and do Run -> External Tools -> SLC.
As your library depends on another jar you will need to make a "Libs" folder in your project and copy that jar there so SLC can find it.
Loading source files for package com.ags.agspdf...
Constructing Javadoc information...
[-doclet, BADoclet]
[-docletpath, D:\EclipseWorkspace\qpdf\BADoclet]
[-sourcepath, D:\EclipseWorkspace\AGSPdfJet\src]
[-classpath, C:\Program Files\Anywhere Software\Basic4android\Libraries\B4AShared.jar;D:\EclipseWorkspace\AGSPdfJet\lib\PDFjet.jar;D:\Android\adt-bundle-windows-x86-20140702\sdk\platforms\android-14\android.jar;C:\Program Files\Anywhere Software\Basic4android\Libraries\Core.jar]
[-public]
[-b4atarget, C:\Program Files\Anywhere Software\Basic4android\Libraries\AGSpdf.xml]
starting....
Working with class: com.ags.agspdf.AGSpdf
finish: C:\Program Files\Anywhere Software\Basic4android\Libraries\AGSpdf.xml
Starting step: Compiling Java code.
javac 1.8.0_11
D:\EclipseWorkspace\AGSPdfJet\src\com\ags\agspdf\AGSpdf.java:5: error: package com.pdfjet does not exist
import com.pdfjet.*;
^
1 error
Error.
import java.io.*;
import com.pdfjet.*;
import android.util.Log;
import anywheresoftware.b4a.BA.Author;
import anywheresoftware.b4a.BA.DependsOn;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
@DependsOn(values=("com.pdfjet"))
@ShortName("AGSpdf")
@Version(1)
@Author("Firpas")
Starting step: Compiling Java code.
javac 1.8.0_11
D:\EclipseWorkspace\AGSPdfJet\src\com\ags\agspdf\AGSpdf.java:5: error: package com.pdfjet does not exist
import com.pdfjet.*;
^
1 error
Error.
@DependsOn(values=("PDFjet"))
Starting step: Compiling Java code.
javac 1.8.0_11
D:\EclipseWorkspace\AGSPdfJet\src\com\ags\agspdf\AGSpdf.java:7: error: package com.pdfjet does not exist
import com.pdfjet.*;
^
1 error
Error.
Loading source files for package com.ags.agspdf...
Constructing Javadoc information...
[-doclet, BADoclet]
[-docletpath, D:\EclipseWorkspace\qpdf\BADoclet]
[-sourcepath, D:\EclipseWorkspace\AGSPdfJet\src]
[-classpath, C:\Program Files\Anywhere Software\Basic4android\Libraries\B4AShared.jar;D:\EclipseWorkspace\AGSPdfJet\lib\PDFjet.jar;D:\Android\adt-bundle-windows-x86-20140702\sdk\platforms\android-14\android.jar;C:\Program Files\Anywhere Software\Basic4android\Libraries\Core.jar]
[-public]
[-b4atarget, C:\Program Files\Anywhere Software\Basic4android\Libraries\AGSpdf.xml]
starting....
Working with class: com.ags.agspdf.AGSpdf
finish: C:\Program Files\Anywhere Software\Basic4android\Libraries\AGSpdf.xml
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?