# extension mechanism

Susilo Saja
Ranch Hand
Posts: 91
Hi,
I've read that if we put a jar file in %JAVA_HOME%\jre\lib\ext, we don't have to put that jar in CLASSPATH to use it. But it's not working when I try it. Can somebody help? I use Windows 2000 Prof and j2sdk1.4.1

Cindy Glass
"The Hood"
Sheriff
Posts: 8521
Are you SURE that you are putting it in the /ext directory that your JAVA_HOME is assigned to? Many machines have multiple implementations of the JRE/JDK on them and your JAVA_HOME may not be pointing at what you think that it is.
Can you check your Windows Registry?

Susilo Saja
Ranch Hand
Posts: 91
Thanks for the reply Cindy.
I'm not sure how to check my registry for the jre.
Is this the correct step :
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
It said CurrentVersion is 1.4, so I go to 1.4 directory, and the JavaHome is C:\Program Files\Java\j2re1.4.1, so is this my jre directory?
Before this, I put the jar file in jre directory in my JAVA_HOME, which is D:\j2sdk1.4.1\jre\lib\ext, and now I try to put it in C:\Program Files\Java\j2re1.4.1, but it's still not working.

Cindy Glass
"The Hood"
Sheriff
Posts: 8521
I would think that it should go in
C:\Program Files\Java\j2re1.4.1\lib\ext
Is that what you meant to say that you did?
Just to clarify, are you using this in an application or an applet.
The JRE that your browser uses is probably in C:\Program Files\JavaSoft\JRE\1.4.1\lib\ext