Hi Rob,
Thanks a lot for your comments.
In theory you can include the JAR file in your oplet as a self
contained unit. That code has not been well tested, so it's possible
that it doesn't work very smoothly. If that approach is satisfactory
I'll work make sure that it works for you.
> I have tried that and it works. I just packaged another JAR file inside my oplet.
If you want your library to be in its own oplet you can have a thin
wrapper for the oplet interface, and either include the JAR file (as
in the suggestion above), or you could unpack the library and just
include the class files.
The problem is that the JAR file is actually more like a programming interface rather than a service.
It is rather unintuitive for me to make it into a service.
Is there any plan in the future to support anything like CLASSPATH in ORE ?
Many thanks,
Bryan
-----Original Message-----
From: Rob Duncan [SMTP:roduncan@nortelnetworks.com]
Sent: Monday, November 06, 2000 6:44 PM
To: Ha, Bryan
Cc: open_networks@openetlab.org
Subject: Re: Loading JAR files
There's no way to load a raw JAR file into the ORE: everything that
gets loaded into the ORE is packaged as an oplet.
In theory you can include the JAR file in your oplet as a self
contained unit. That code has not been well tested, so it's possible
that it doesn't work very smoothly. If that approach is satisfactory
I'll work make sure that it works for you.
If you want your library to be in its own oplet you can have a thin
wrapper for the oplet interface, and either include the JAR file (as
in the suggestion above), or you could unpack the library and just
include the class files.
R.
"Ha, Bryan " <bryanha@europem01.nt.com> writes:
> [1 <text/plain>]
> Hello,
>
> I just wonder if anyone knows if there is a way to load a JAR file which
> is not an oplet into the ORE. Our scenario is that our program is based
> on a API toolkit which is distributed as a JAR file, the only way it
> seems to work is to package the Oplet code with the JAR file and loads
> it as a single service.
>
> We would like to separate out the toolkit API JAR file and make
> references to it from the Oplet code.
>
> Is there anyway I can do it ? Or do I need to convert the toolkit into
> an oplet as well ?
>
> Any comments much appreciated.
>
> Bryan
>
> [2 <text/html>]