Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

java 1.3 on .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 06 Dec 2004 02:49 GMT
Hi;

Is there any way to compile java under .NET where it uses java 1.3 run-time
library calls? I have all the source so I can re-compile everything. But the
source uses a lot of java 1.3 library calls. (A LOT.)

Signature

thanks - dave

Nick Malik - 06 Dec 2004 15:13 GMT
I haven't tried this, but the java api calls that are supported under J#
should be available simply by placing 'Imports' statements (if you are
vb.net) or 'using' statements (if you are using C#) in your code.

The following article may prove useful (especially the figures):
http://msdn.microsoft.com/msdnmag/issues/03/06/ZipCompression/default.aspx

--- Nick

> Hi;
>
> Is there any way to compile java under .NET where it uses java 1.3 run-time
> library calls? I have all the source so I can re-compile everything. But the
> source uses a lot of java 1.3 library calls. (A LOT.)
David Thielen - 06 Dec 2004 16:37 GMT
Hi;

I think you misunderstood my problem. It's not that I need to call the java
run-time from C#. It's that I have a large java program that I need to
compile for .NET so I can call that program from C#. But that large program
uses a lot of java 1.3 run-time methods.

thanks - dave

> I haven't tried this, but the java api calls that are supported under J#
> should be available simply by placing 'Imports' statements (if you are
[quoted text clipped - 12 lines]
> the
> > source uses a lot of java 1.3 library calls. (A LOT.)
Steven Cheng[MSFT] - 07 Dec 2004 07:26 GMT
Hi Dave,

From your description, you've a existing java application which is
originally compiled under JDK1.3 and is wondering whether it's possible to
compile it directly under .net framework so as to run under .net
enviroment, yes?

If so, I'm afraid the java code you have can't be directly compiled against
net framework since it's not a language supported by the .net. We need to
convert the whole application to another language which is supproted by the
net. Such as C# , VB.NET or  J#.

And here is some tech article on this:

#Moving Java Applications to .NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/dotnet_movingjavaapps.asp

#Migrating Java Developers
http://msdn.microsoft.com/netframework/gettingstarted/java/

Hope helps. If still anything unclear, please feel free to post here.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

David Thielen - 07 Dec 2004 07:45 GMT
Yes - that's it.

I tried J# but it's run-time library is 1.1.4 and I need 1.3. And converting
to C# would be a nightmare.

At the moment we just run the java app under java 1.3 and call it from C#
via TCP. I'm guessing that remains our best option.

thanks - dave

> Hi Dave,
>
[quoted text clipped - 28 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 08 Dec 2004 02:10 GMT
Thanks for the response Dave,

Yes, actually speaking , we should always think J# is a .net language (just
like C# or VB.NET), which is totally different thing from the java.  And
the J# version 1.1.4 is the version of the .net runtime rather the language
version, and the java's version 1.3 is the jdk's version. So they're also
two different things.  

Also, if you can't migrate your whole application to .net currently, I also
think the means you're using now( via TCP communication) is the best means
we can find.

BTW, if you're considering to rewrite the application into C#(VB.NET)
later, please feel free to post here if you meet any problem. We're willing
to help you :).

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.