Software Javax.smartcardio.card Jar File

Posted By admin On 23/05/19

I am trying to add some simple smart card reader functionality to one of our applications and I keep getting a build error that I can't figure out, so I'm looking for input or any advice I can find that will help me get the project to compile after importing javax.smartcardio in one of the new classes.

Executable Jar File

It thereby allows Java applications to interact with applications running on the Smart Card, to store and retrieve data on the card, etc. The API is defined by classes in the package javax.smartcardio.

Jar file mac

I initially created a simple class with one string parsing method and a main method. As a standalone project, I can run the class just fine without errors and all of the expected info from the card reader and card gets printed to the console via System.out as expected, so I don't think there's any issues with the code that I have brought over to my project from this early test project.

But now that I've imported smartcardio into the new class, my project won't compile. I have tried removing and re-adding the JRE System library as suggested in several other posts here, but I think this might be a different issue. When compiling, it seems like the compiler isn't recognizing or can't find rt.jar even though I have checked repeatedly and the jar is there in the JRE folder.

Here's the error, any help is highly appreciated. Let me know if more info is needed.

And here's the very simple classthat's causing the compilation error at line 48:

steve.westfallsteve.westfall
Javax download

1 Answer

Thank you Zoran Regvart ! Although you didn't really provide an answer, you helped me get there by seeing my own silly mistake!

Executable jar file

I had added the SwipeCardUtil class to the wrong util folder in the project! By moving it from the client side util folder to the server side util folder, I was able to compile the project and continue my work. Thank you for opening my eyes!

steve.westfallsteve.westfall

Not the answer you're looking for? Browse other questions tagged javaeclipsemavenbuildsmartcard or ask your own question.