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 / Languages / Visual J# / January 2004

Tip: Looking for answers? Try searching our database.

Converting Java to Visual J#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thao - 15 Jan 2004 01:13 GMT
Hi, sorry if this issue has already been asked, but I've
read and read about transitioning from Java classes to
Visual J# and still am having problems doing this, any
help would be appreciated.  

We run a web site for a very high profile client, the web
site is integrated with theirs which runs Java and Bea
Weblogic, etc.  We received some compiled Java classes
from them that handles digital signatures and uses Sun's
java.security package amongst others.  We were using MS
JVM to instantiate a Java wrapper class from ASP, which in
turn called their Java classes to handle the digital
signature processing.  Now that MS JVM is going away, I am
trying to convert to Visual J#.  What is the best way to
do this?  I managed to decompile the .class files
into .java source code and keep encountering errors when I
try to build with the source code in VJ#.  Their classes
imported other proprietary classes along with Sun's
packages.  I'm sure I didn't need to have all the .java
code to every imported item since it was running under MS
JVM.  I need to figure out if there is an easy way to
bring these classes over to .NET, and I don't want to use
C# since there's a deadline on this, it would be easier to
work with the classes I have and move to VJ# just for
these classes, and then be able to use it from within
ASP.Net.

So basically, there are 5 class files I received with
proprietary code.  The 5 class files reference other
packages, either Sun, or other proprietary stuff.  The
methods our current ASP code uses doesn't seem to need the
other proprietary stuff that we don't have on our server,
perhaps because it never goes down that code path, so I've
not seen it err.  Now that I'm trying to move the code to
Visual J#, I run into errors indicating certain files
can't be found, so far, it's been the proprietary stuff
which I don't readily have access to, but I imagine once I
get pass this problem, I might run into Sun java packages
missing (I've seen the technology mapping of what's
supported and it seems like java.security and java.util is
supported, but I had an error for java.util also).  Please
help if you can and assume I'm a newbie to VJ# with the
exception of having read a lot of MSDN articles and the
transition guide.

Thanks,
Thao
- 15 Jan 2004 01:24 GMT
PS. I forgot to mention that I also tried using JBimp on
the classes but that gave me lots of errors also regarding
not being able to locate files and the file not being in
the CLASSPATH, etc.

>-----Original Message-----
>Hi, sorry if this issue has already been asked, but I've
[quoted text clipped - 45 lines]
>Thao
>.
Michael Green - 19 Jan 2004 21:52 GMT
Thao,

J# only supports up to JDK 1.1.4 (with a few additional packages), so any
code that uses some newer JDK libraries will not convert automatically, and
may have to be reimplemented to run under .Net.   In order for J# to
convert your code to J# it will need access to all source code (except
those classes defined in JDK 1.1.4, which are implemented in the J#
runtime). JBImp will only work on JDK 1.1.4 class files as well. If you try
to run JBImp on a class file that references classes you don't have access
to, you will get error messages for those classes that could not be found.  

I hope this information is helpful,

Michael Green
Microsoft Developer Support

--------------------
| Content-Class: urn:content-classes:message
| From: "Thao" <tpham@genex.com>
[quoted text clipped - 63 lines]
| Thanks,
| Thao

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.