I have the Android SDK witch include eclipse. Its working for developing android apps, but now I want to make a tool app for pc and I need some of the java standard libraries that where not included with the Android sdk, for example javax.imageio.imageio.
Where can I get these libraries ?
I know there is a src.zip file with all the source code from java standard libraries in the Java directory, but Is there not a jar file or something like that so i can just include it as an external library ?
This worked for me !
Go to the Build Path settings in the project properties.
Remove the JRE System Library
Add it back; Select "Add Library" and select the JRE System Library.
Found this solution here.
You should edit your build.gradle file. There is a dependency section in there.
Related
I'm trying to re-compile android app from sources using Eclipse STS. I added the sources to plain new project. I ended up with missing dependencies for classes from android.* package.
To solve this, I decided to locate android SDK on my disk drive and use the Project properties -> Java Build Path -> Source -> Link source. There I selected path to the android SDK.
But this would produce lots of build errors for missing types, such as
The import android.databinding.testapp.databinding cannot be resolved
I think what I did is not the correct way to include the SDK anyway.
What is the correct way to compile your Java code that uses Android SDK?
In case you would like to continue to use Eclipse/STS for Android development, you could give Andmore a try: https://projects.eclipse.org/projects/tools.andmore
Try to download it from kickass torrent. After that go to your project -> right button -> properties -> android, and select the path where you have saved the android sdk.
I'm developing a mobile app using phonegap.
When i tried to add third party java libs to android platform by right clicking on project in eclipse , there's no 'java build path' option for adding the java libs .
I believe Eclipse do not recognize phonegap project as a java project , so the option is not visible.
I wonder why most of the online tutorial show such option available in phonegap + eclipse project ? Did i miss something ?
or is there any alternative solution?
Phonegap should have this option, like any other project in Eclipse
If its grayed out then there may be an error within your project.
Can you provide any more detailed errors? Have you tried changing the build path target? Maybe double check to make sure its referring to your JRE as well?
I just realised that those online tutorial doing it in eclipse + android environment and I'm doing it in Eclipse + multi-platform JavaScript environment.
I thought eclipse is smart enough to detect the android code within the phonegap project .
I'm a bit confused between 2 screen in eclipse:
I'm not sure how to import FB sd into my Android project properly.
What does "android" mean vs "Java build path" ?
As current configuration I get this error:
As the error says - there are 2 versions of a jar - android-support-v4.jar. Either make FB use your version of android-support-v4 or use FB's version of android-support-v4.jar in your project. The jar will be in project-name/libs folder.
First import it as a project into your eclipse and then give its reference to your project as you have shown in your first screen. If you have only jars file then add those jar to your libs folder and then follow steps of add to build path.
Delete the android-support-v4.jar from your project as there will be a jar mismatch.As you have added Facebook SDK as a library project, it is again not required to add that support jar file.Facebook SDK already contain that library.If android-support-v4.jar is a older one then you can update it.
You have 2 android support library with different keys.
Right click on your FacebokSDK and project ---> Android tools ---> Add support Library
I don't quite understand the problem, the picture is too small, also, Facebook has a great tutorial about how to do just that, also, make sure you're using Facebook's android support jar.
I downloaded digitalpersona free one touch sdk (1.6.1): java edition.
Installed the sdk and the java run time environment (RTE).
I would like to create my own user interface for fingerprint enrollment/verification using the sdk , however I dont know how to implement it in a java application in netbeans. Am relatively new to using netbeans and I have a project to do using fingerprint matching.
How do I use the package com.digitalpersona.onetouch.ui.swing.sample.Enrollment; and import com.digitalpersona.onetouch.*; ?
What do I need to import to the new java application for it to allow me to use the methods available in the sdk? Any dll or jar i need to call or add to the library?
Your guidance will be much appreciated.
Thank you.
Although this answer is 4 years late, but I hope it helps make this community more helpful.
After installing the SDK on your development machine (Windows), you should navigate to the directory you installed the SDK (in my case, it is C:/Program Files/DigitalPersona, open bin/java and verify that the dpotapi jar executable exists. If it does, then you note the path to this jar file as this is your class path.
To add it to Netbeans, click on Projects in your IDE, right click on Libraries then choose Add Jar/Folder and from the dialog that pops up navigate to the directory where you had earlier found the dpotapi.jar file, click on it, then Open, and you are good to go.
So far I have been using in tutorials, examples and sample code only packages that came pre-installed with the Android SDK.
Now, I want to add a non-Android package (e.g. Jsoup).
What's the proper way of doing that (so that it becomes available to all projects)?
You can add it to a project by right clicking on your project in Eclipse and choose Build Path and Add External Archive. Select the jar to add it to your build path and it will be included in any apk you create.
One caveat is that if the jar may use part of the JDK that doesn't exist in Android.