Introduction | Automating |
Visibility | Downsides |
Applets | Learning More |
Mac OS X | Links |
java.exe -Djava.ext.dirs=C:\mylibs mypackage.MyClass
As of Java version 1.6, you can have as many ext dirs as you want and you can put them wherever you please. You must tell Java where to look for them by setting the java system property java.ext.dirs.
To find out which ext dir java.exe is loading from, use the -verbose:class command line option to dump out the source of each class as it is loaded.
Ext Dir Visibility | |||
---|---|---|---|
JRE ext | Browser ext | JDK (Java Development Kit) ext | Purpose |
Compiling (finding method signatures to generate correct code to call methods). | |||
running applications from local hard disk. | |||
running Applets from local hard disk. | |||
running Applets from the web. | |||
running Java Web Start applications from local hard disk. | |||
running Java Web Start applications from the web. |
System.getProperty( "java.ext.dirs" );which you can view by running wassup as an application or Applet. Then put the
java.ext.dirs = C:\Program Files\Java\jre1.8.0_131\lib\extAny jars jars in the ext directory will automatically be found without putting them on the classpath.
There are at least two ext directories:
Sooner or later you will have to reinstall the JDK/JRE and you will lose your ext directories. You can quickly rebuild them if you maintain a bat file like this and run it after every JRE/JDK install. Adjust the file to account for where your ext dirs are and where the jars are you need.
This page is posted |
http://mindprod.com/jgloss/ext.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\ext.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.16.75.156] |
| |
Feedback |
You are visitor number | |