If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Creating DLLs with Java

Hello all,

I am working with a suite of products, trying to
interconnect their functionallity. One of the products that
I am tying into works well with DLLs. Is there a way that
I can create DLLs using Java? I am not really interested
in creating Java functionallity...then C/C++ placeholders
...then tying both the Java and the application into the
relatively empty placeholders. Is there a way to get a
"direct" connection? Thanks.

Re: Creating DLLs with Java

No.

Christian Yungk <cyungk@cti.com> wrote in message
news:38f5c645$1@news.devx.com...
>
> Hello all,
>
> I am working with a suite of products, trying to
> interconnect their functionallity. One of the products that
> I am tying into works well with DLLs. Is there a way that
> I can create DLLs using Java? I am not really interested
> in creating Java functionallity...then C/C++ placeholders
> ..then tying both the Java and the application into the
> relatively empty placeholders. Is there a way to get a
> "direct" connection? Thanks.

Re: Creating DLLs with Java

Right...remind me not to ask yes/no questions in the future...too unsatisfying.
;-)

"Paul Clapham" <pclapham@core-mark.com> wrote:
>No.
>
>Christian Yungk <cyungk@cti.com> wrote in message
>news:38f5c645$1@news.devx.com...
>>
>> Hello all,
>>
>> I am working with a suite of products, trying to
>> interconnect their functionallity. One of the products that
>> I am tying into works well with DLLs. Is there a way that
>> I can create DLLs using Java? I am not really interested
>> in creating Java functionallity...then C/C++ placeholders
>> ..then tying both the Java and the application into the
>> relatively empty placeholders. Is there a way to get a
>> "direct" connection? Thanks.

Re: Creating DLLs with Java

Okay, sorry to give the short answer. I assumed you didn't mean you wanted
to write a compiler in Java that would output DLLs -- although you could do
that. I assumed you were asking whether you could create a DLL whose entry
points were methods of a Java class, or something along that line. There's
a tutorial on Sun's Java site on how to use JNI (start athttp://java.sun.com/docs/books/tutorial/trailmap.html), from which it's
apparent to me that the parameter lists for Java differ from the ordinary
parameter lists someone would have used in writing a DLL. So some kind of
adapter code would be necessary, and that's JNI. But you say you don't want
to do that. I don't blame you at all, after following the tutorial. I
don't want to do it either, and I have a DLL that I'd like to call from Java
too. I'm going to write a program that takes a list of arguments from the
command line and calls the DLL, then I can call that program from
getRuntime().exec().

Christian Yungk <cyungk@cti.com> wrote in message
news:38f5fafc$1@news.devx.com...
>
> Right...remind me not to ask yes/no questions in the future...too
unsatisfying.
> ;-)
>
> "Paul Clapham" <pclapham@core-mark.com> wrote:
> >No.
> >
> >Christian Yungk <cyungk@cti.com> wrote in message
> >news:38f5c645$1@news.devx.com...
> >>
> >> Hello all,
> >>
> >> I am working with a suite of products, trying to
> >> interconnect their functionallity. One of the products that
> >> I am tying into works well with DLLs. Is there a way that
> >> I can create DLLs using Java? I am not really interested
> >> in creating Java functionallity...then C/C++ placeholders
> >> ..then tying both the Java and the application into the
> >> relatively empty placeholders. Is there a way to get a
> >> "direct" connection? Thanks.
>