aspose file tools*
The moose likes Java in General and the fly likes extension mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "extension mechanism" Watch "extension mechanism" New topic
Author

extension mechanism

Susilo Saja
Ranch Hand

Joined: May 27, 2003
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

Joined: Sep 29, 2000
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?


"JavaRanch, where the deer and the Certified play" - David O'Meara
Susilo Saja
Ranch Hand

Joined: May 27, 2003
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

Joined: Sep 29, 2000
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: extension mechanism