[Biojava-l] Extensions not available to my executable Jars

andy hammer ahammer at genetics.utah.edu
Tue Feb 11 10:42:08 EST 2003


Much thanks to Matthew for his help with this.

When an executable jar is clicked on, a Windows box will search for
"installed extensions" in the JRE directory.  This is probably a different
directory than where the JDK has been installed.  For example, I have two
'extension' directories:
C:\j2sdk1.4.0_01\jre\lib\ext and
C:\Program Files\Java\j2re1.4.0_01\lib\ext

The j2sdk1.4.0_01\jre\lib\ext directory is where java looks for extensions
when you are compiling and running your application from the command line.
If you will put the biojava.jar's in this directory, your biojava code will
run without altering any class-path variables.

The Program Files\Java\j2re1.4.0_01\lib\ext is where Windows looks for
extensions when an executable Jar has been run.  If you are going to jar up
a biojava application, any Windows box will need the biojava.jars placed in
this directory to run correctly.

Of course your actual ext directory locations may be slightly different, but
the idea is the same.

Andy Hammer
University of Utah
Human Genetics



More information about the Biojava-l mailing list