Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ClassNotFoundException

User_WL6FPApr 24 2018 — edited Apr 25 2018

Hi,

I'm getting ClassNotFoundException error in this code below.

String url ="http://<some-path>/app.jar";

URL[] classLoaderUrls = new URL[]{new URL(url)};

                           

ClassLoader cl = new URLClassLoader(classLoaderUrls);

Class<?> beanClass = cl.loadClass("com.app.MyClass"); // Throwing ClassNotFoundException although this class is present in the JAR in the  fully qualified package name.

Any clue what to fix here ?

Comments

Umer
yes, programming language does not matter if you want to store/retrieve data from a smart card.
safarmer
You have many options for accessing a smartcard including PC/SC readers, USB NFC readers, winscard.dll on Windows with DotNet, VC++ etc. There are also bindings for Python and Ruby to talk to a smart card.

In the end, all you do is pass a byte stream to a reader through its driver and it will respond with a byte stream. The language you use does not matter.

- Shane
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 23 2018
Added on Apr 24 2018
2 comments
215 views