How to use digitalpersona one touch sdk java edition in netbeans? - java

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.

Related

Can't use TextInputDialog in Eclipse Neon

I'm trying to run a program that uses the JavaFX scene object TextInputDialog. For some reason, it doesn't allow me to import javafx.scene.control.TextInputDialog (says "cannot be resolved").
I'm new to JavaFX, but here is what I tried. I thought it was my Java version, so I updated to the latest (1.8.0_91). I'm using Eclipse Neon 4.6.0. To install JavaFX it used the "install new software" option in the help menu, and put in the link found in step 4 of this: https://www.eclipse.org/efxclipse/install.html. After that, most of the JavaFX functions worked by adding the requisite import command. But this one doesn't.
I also found that some people have included the JavaFX library in the build path. I didn't change anything when I did that (though I'm not sure exactly what that would do since I already installed JavaFX in Eclipse).
Anyway, any suggestions would be very welcome. Thanks!
You need to make sure that eclipse is using the newer JRE for this project. You can do this by going to Project > Properties > Java Build Path and selecting the newer JRE from the list. I believe it needs to be 1.8.0_45 or newer.

Add SDK to eclipse and no Target

I have installed android SDK in my computer successful.but when i configure the environment in eclipse.it show "No target available". Actually,i had loaded API form 1.6 to 4.0.I tried many ways to slove the question.but all is failure.now,i have no idea already.who can help me. i would thanks very much.
You need to do all of the following:
Download and install Java and Eclipse
Download and install the Android SDK
Install the Android plug-in for Eclipse (from Help, Install Software)
Configure Eclipse to point to your SDK
Create an Android virtual machine (for emulation)
Create an Android project (for your app)
Q: It sounds like maybe things are going wrong at Step 4, correct?
Q: If so, can you browse to the directory with your SDK (for example, from Eclipse can you browse to "C:\program files (x86)\android\android-sdk")?
Are you using the ADT Plugin for Eclipse? If you are you can easily configure Eclipse for Android Development. Android site says -
Select Window > Preferences... to open the Preferences panel (Mac OS
X: Eclipse > Preferences). Select Android from the left panel. You may
see a dialog asking whether you want to send usage statistics to
Google. If so, make your choice and click Proceed. You cannot continue
with this procedure until you click Proceed.
For the SDK Location in the main panel, click Browse... and locate
your downloaded SDK directory. Click Apply, then OK.
For more information you visit their configuration page - http://developer.android.com/sdk/eclipse-adt.html#configuring. Hope this helps
Ok so now did you first try out the option in the Options menu -
But if this doesn't work it means there is something wrong that is happening due to conflicts in OS. I would like to know what is your Desktop Environment? Ubuntu? Window? Mac?
I'll assume that your using a Windows environment... The best option the community has noted down is the usage of Force HTTPS resources to be downloaded via HTTP. You could also use a Proxy and get the URLs fetched.
For more information look at this thread.

how to configure android build path?

I've had to install java, eclipse and android on a new machine as my old one had a problem with the graphics card. i've downloaded some software and others i've dragged in from my old harddrive, which is now an external harddrive. when i import the project i was working on from my old machine eclipse cant resolve anything that is android eg Activity, WindowManager etc. i've added android\tools and platform-tools to my system's path. In Eclipse when i try to configure the project's build path i've noticed that in the libraries tab it states "unable to get system library for the project". the only thing i've done differently on this installation is use jdk1.7.0 opposed to jdk6 on the old machine. any ideas on how to resolve this?
thanks matt.
find default.properties,modify the default-version,then,modify the Jdk 1.7 to 1.6,try step by step.the reason maybe is the Compatibility。

How to add a non-Android Java package to the Android development environment?

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.

import javax.xml.transform cannot be resolved

I am trying to write some xml generated by my Android app to a file and I'm trying to use javax.xml.transform to do this. Only problem is that javax.xml.transform is not being found by eclipse.
The only options that come up are javax.xml and javax.xml.parsers. Does anyone know what could be going on?
Edit: Just an fyi I have Java JDK 6 update 22 installed.
I just found out what to do. If you right click on whatever project your working on and go to properties. Then in the libraries tab click add libraries and add the JRE System Library then it has a bunch of new imports that can be used including javax.xml.transform.
That took forever to find out that simple thing =P. But now I know.
javax.xml.transform is only available in API level 8+.
even if you add the JRE System Libraries, it'll error at runtime.
I'm not exactly an android developer but if you have Android project in Eclipse and something is not on the classpath (not in import options) it probably means it won't be available on Android.

Categories

Resources