-1

I want to extend Java with Classes I made myself so that they can be used from Java Applets. I have tried dropping JAR files in the lib and lib/ext folder but they still ain't globally visible.

Is there something more I have to do for Java to load my classes?

user1657170
  • 318
  • 2
  • 7

1 Answers1

2

You should not put your classes into lib folder of JRE for a lot of reasons. One of them is that you cannot do it on client machine, i.e. machine of your user that will run your applet via his web browser.

You have to provide correct classpath in your applet tag in html file.

AlexR
  • 114,158
  • 16
  • 130
  • 208
  • They will be packaged and installed on client machines, so that is exactly what I want to do. – user1657170 Sep 10 '12 at 12:32
  • I do not have to provide correct classpath in my applet for any of the libs in lib and lib/ext that is installed by the java installer. If each JAR in lib must be in the classpath there must be somewhere in the JRE where that classpath is specified. – user1657170 Sep 10 '12 at 12:40