0

I need to load the Client.class using an ClassLoader .

Packaging Structure

When I use this code:

 ClassLoader clientClassLoader = new URLClassLoader(
                new URL[] { new File("client.jar").toURL() });
        Class<?> clientClass = clientClassLoader.loadClass("pkhonor.Client");

I'm getting java.lang.ClassNotFoundException: /pkhonor/Client. How should i Fix this problem?

Piet Jetse
  • 388
  • 1
  • 5
  • 16

0 Answers0