PC Review


Reply
Thread Tools Rate Thread

Call Java library using C#

 
 
Alan Wang
Guest
Posts: n/a
 
      20th Sep 2005
Hi there:

I am just wondering if I could call java library using C#. The reason to do
that is my application wants to automate OpenOffice and create document.

Thanks in advance

Alan


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th Sep 2005
Alan,

I believe Java has the ability to export classes into COM objects. I
would do that. However, I can't imagine it would be too fast, since you are
going to interop through to unmanaged code on the .NET side, and then
marshal from COM to the java runtime.

If the document format is known, you might have better performance
manually creating the file yourself (if this is an issue for you, that is).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Alan Wang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there:
>
> I am just wondering if I could call java library using C#. The reason to
> do that is my application wants to automate OpenOffice and create
> document.
>
> Thanks in advance
>
> Alan
>



 
Reply With Quote
 
Alan Wang
Guest
Posts: n/a
 
      20th Sep 2005
I tried and my program thrown exception "Cannot create ActiveX component."

Please help

Alan
"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Alan,
>
> I believe Java has the ability to export classes into COM objects. I
> would do that. However, I can't imagine it would be too fast, since you
> are going to interop through to unmanaged code on the .NET side, and then
> marshal from COM to the java runtime.
>
> If the document format is known, you might have better performance
> manually creating the file yourself (if this is an issue for you, that
> is).
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Alan Wang" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi there:
>>
>> I am just wondering if I could call java library using C#. The reason to
>> do that is my application wants to automate OpenOffice and create
>> document.
>>
>> Thanks in advance
>>
>> Alan
>>

>
>



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th Sep 2005
Alan,

Did you create a COM interop wrapper? The java utility should be able
to export a type library which you need to set a reference to.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Alan Wang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I tried and my program thrown exception "Cannot create ActiveX component."
>
> Please help
>
> Alan
> "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote
> in message news:(E-Mail Removed)...
>> Alan,
>>
>> I believe Java has the ability to export classes into COM objects. I
>> would do that. However, I can't imagine it would be too fast, since you
>> are going to interop through to unmanaged code on the .NET side, and then
>> marshal from COM to the java runtime.
>>
>> If the document format is known, you might have better performance
>> manually creating the file yourself (if this is an issue for you, that
>> is).
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - (E-Mail Removed)
>>
>> "Alan Wang" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi there:
>>>
>>> I am just wondering if I could call java library using C#. The reason to
>>> do that is my application wants to automate OpenOffice and create
>>> document.
>>>
>>> Thanks in advance
>>>
>>> Alan
>>>

>>
>>

>
>



 
Reply With Quote
 
j-integra_support@intrinsyc.com
Guest
Posts: n/a
 
      21st Sep 2005
J-Integra Espresso allows for seamless Java/.NET interop. It is a100%
managed code solution and features SSL/TLS security (if required). For
a free evaluation, go to http://j-integra.intrinsyc.com/.

Shane Sauer
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
When Web Services are not enough

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Third Pary Java Library ellakayeekwan@gmail.com Microsoft Dot NET 0 28th Apr 2006 04:55 PM
how to call .net web service call from java client? B Deepak Microsoft C# .NET 2 21st Sep 2005 05:30 AM
java api is better than .net api(.net framework class library) =?Utf-8?B?RmVpIExp?= Microsoft C# .NET 1 22nd Aug 2004 07:05 PM
Java Graphics Library Brandon Franklin Freeware 0 19th Jul 2004 03:29 AM
Big Faceless PDF Library 2.2.3 - A Java class library for importing and creating PDF documents. Gordon Darling Freeware 0 13th Jul 2004 09:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.