my dog learned polymorphism*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Extension mechanisms: can they be dynamic?" Watch "Extension mechanisms: can they be dynamic?" New topic
Author

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 (http://someeirdaddress.com.any/anything/herecomeswhatisimportant/jai_imageio-windows-i586.jar) 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: http://aspose.com/file-tools
 
subject: Extension mechanisms: can they be dynamic?
 
Similar Threads
cannot connect to the internet through yamba app
Manifest problem in creating a jar file (CLI)
EJB can't find Optional Package and thus Persistence Unit in it
Problem with basic EJB application Exception thrown "com/bea/xml/XmlException"
Struts version for Weblogic 9.2