Users who have the 1.5 JRE installed: where to put JAI .jar files?
Our existing system is written using Java 1.3.1, and also uses JAI 1.0.2. For our users to access it, particularly those who do not have admin rights to install a full package, we created a ZIP file with the two required jar files, jai_codec.jar and jai_core.jar, which are supposed to be placed in the lib\ext folder of the JRE. So far, all those who have JRE 1.3 and JRE 1.4 (whatever sub-versions fo these) have had no problems.
We also use this code to check for it where it is used, to give them an error if the JRE has not loaded it (and thus could not find it):
try{
String className ="javax.media.jai.JAI";
String className2 ="com.sun.media.jai.codec.SeekableStream";
Class.forName(className, false, Thread.currentThread().getContextClassLoader());
Class.forName(className2, false, Thread.currentThread().getContextClassLoader());
noJAI =false;
}
catch (Error er){
String noJAI1 ="It appears that you have not installed the Java Imaging Software.";
String noJAI2 ="Please return to the home page for download and installation instructions.";
label1.setText(noJAI1);
label2.setText(noJAI2);
c.remove(progress);
addButton();
label1.setVerticalAlignment(JLabel.CENTER);
setupLabels();
noJAI =true;
return;
}
catch (Exception ex){
String noJAI1 ="It appears that you have not installed the Java Imaging Software.";
String noJAI2 ="Please return to the home page for download and installation instructions.";
label1.setText(noJAI1);
label2.setText(noJAI2);
c.remove(progress);
addButton();
label1.setVerticalAlignment(JLabel.CENTER);
setupLabels();
noJAI =true;
return;
}
The problem is that we are starting to have users who have the 1.5 JRE installed (we provide, for those who are new to our system and do not yet have it, the 1.3.1_08 plugin; these are users who evidently have the SDK installed). They have copied the two JAR files to their lib\ext folder with no success; the JRE does not load them and they get the error message.
Is there somewhere new we can instruct them to put these two files? We are not moving to 1.4 or later which has the Java Advanced Imaging capabilities packaged into the standard kit; we are developing a new system already with J2EE 1.4.2 that will not use applets at all, so when we roll out with that the point will be moot. In the meantime we need to be able to support these users who now have 1.5.
Thanks for any help.

