File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Extension mechanisms: can they be dynamic? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Extension mechanisms: can they be dynamic?" Watch "Extension mechanisms: can they be dynamic?" New topic

Extension mechanisms: can they be dynamic?

Marco Tulio Borges
Ranch Hand

Joined: Sep 14, 2004
Posts: 45
Ok, Ranch pals... I have a huge problem...

There's an app o' mine that is bundled in a jar file. It's an Applet, but that doesn't matter. What really matters is: the jar file uses an extension. An extension from Sun. To use that and install it automatically in the client machine I have to put that extension in the MANIFEST file for my app, like the code that follows:

The thing is: my clients have to have this jar file (jai_imageio-windows-i586.jar) in their server, so it can be downloaded and installed (in my case by the Java Plug-in). But the address to this file ( has to be inside the MANIFEST file, which is terrible, because if I have 1 zillion clients I'll have to pack my jar 1 zillion times, changing the MANIFEST everytime.

So! The question that is reeeeally bothering me is: "is there a way to set that my app uses an extension from outside the MANIFEST file, say, from my code? If yes, how? If no, is there any auto-checking-and-installing solution for my problem?"

[ If I had a way to visualize my post before actually post it, it would be really great! ]
[ July 08, 2005: Message edited by: MTulio Borges ]

.: SCJP 1.4 (95%) / SCWCD 1.4 (91%) / SCBCD (77%) :.
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us." - Calvin
I agree. Here's the link:
subject: Extension mechanisms: can they be dynamic?
It's not a secret anymore!