Java Newbie Question...
Since I am newbie with Java, I may not understand the concept...
Let me try to describe the question.
I have one Java application written by someone.
I want his application (which I can't alter the code in), to use my GUI application (that I still need to write)
Now how do I "give" him a package and ask him to run it.
In VB / C++, I would create my own EXE / DLL and hand it to him with a known interface or command line.
In Java, there are no executables nor DLLs as far as I understand.
So how do I integrate my code into his code
Hope it's clear...
Thanks !!!
Message was edited by:
p_y_m
[670 byte] By [
p_y_ma] at [2007-10-2 21:54:54]

Hi,
Sorry, but I don't understand the question. The legacy application can't use your UI unless you do modify the code, and this goes for all programming languages that I do know of.
It might of course work if the legacy application already calls stub classes, or tries to load plugins etc.
Kaj
> In VB / C++, I would create my own EXE / DLL and hand
> it to him with a known interface or command line.
> In Java, there are no executables nor DLLs as far as
> I understand.
In Java, you would give him a JAR or a collection of *.class files with a known interface.
Thanks for your answer, Kaj.
I meant I (myself) can't alter his code...
I want to give him a package which he will integrate into his code.
I am used to create an EXE or DLL and use a certain interface or command line. Then he just calls my EXE in his code...
In Java, I write my small GUI application and some classes inside it.
Now what? How do I give him the package?
Do I give him the classes definitions files and he puts them into his package or what?
Sorry for not being clear, but I am really into Java for just a few days...
Thanks!