Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

Porting from MRJ/MRJVM to standard JVM

Thread view: 
Addle Jones - 18 Dec 2006 06:19 GMT
I have the source code for an application that was written using
Microsoft's apparently defunct variant of Java. It does not compile
under the standard JDK from Sun and I get a lot of errors that
are unfamiliar to me. I need to update this application so that it
runs under a standard JVM.

I don't know a thing about Microsoft's variant of Java. Is there
some place I can get a quick summary of the differences, just
enough to help me rip out the code that depends on Microsoft's
version?
Thomas Hawtin - 18 Dec 2006 11:31 GMT
> I have the source code for an application that was written using
> Microsoft's apparently defunct variant of Java. It does not compile
[quoted text clipped - 6 lines]
> enough to help me rip out the code that depends on Microsoft's
> version?

In terms of language, the main Microsoft specific feature is delegates.
Declarations with the 'delegate' keyword will need to be replaced by
interfaces. Where methods are treated as if they are fields, an inner
class will easily replace it.

More of a problem is the use of Microsoft specific libraries (which IIRC
have package names starting with com.ms, that indicates they are from
Morgan Stanley...).

Tom Hawtin
Steve W. Jackson - 18 Dec 2006 20:41 GMT
> I have the source code for an application that was written using
> Microsoft's apparently defunct variant of Java. It does not compile
[quoted text clipped - 6 lines]
> enough to help me rip out the code that depends on Microsoft's
> version?

MRJ is the Macintosh Runtime for Java and has nothing to do with
Microsoft.  It too is defunct.
Signature

Steve W. Jackson
Montgomery, Alabama

Addle Jones - 19 Dec 2006 05:55 GMT
> MRJ is the Macintosh Runtime for Java and has nothing to do with
> Microsoft.  It too is defunct.

The code I have used to run on both Windows and (classic) Mac,
so maybe mrj is not the right term. At the time this code was
written, I thought Apple had some kind of deal going with Microsoft
to support their Java extensions. Maybe I don't have it right. Or
maybe the code was written with J++. Unfortunately, the people who
originally wrote the code are gone and completely out of
contact.

In any case, it seems that Apple now has a standard JVM in OS X. I
need the code to run on current Mac OS X and Windows systems, and
would not mind if it ran on other systems as well.
Steve W. Jackson - 19 Dec 2006 16:08 GMT
> > MRJ is the Macintosh Runtime for Java and has nothing to do with
> > Microsoft.  It too is defunct.
[quoted text clipped - 10 lines]
> need the code to run on current Mac OS X and Windows systems, and
> would not mind if it ran on other systems as well.

Then you're in luck...

Apple currently has JDK 1.6 in development with no official word on its
scheduled release.  But all Mac OS X releases have included a JDK.  The
current version, Mac OS X 10.4 (aka Tiger), came (if memory serves) with
1.4 that was updated to 1.4.2 and later 1.5 became available...I may be
remembering that incorrectly.  But which specific Java you want may
depend in some part on whether you have a requirement to support
specific versions of Mac OS X.

I suggest visiting <http://developer.apple.com/java/> for a start.  
While Apple's JVM does in fact support Swing and all the usual stuff,
its UI and environment will need some extra steps if you want your
application to be able to act like a traditional Mac application -- one
that can be double-clicked, put a proper icon on the Dock, have a proper
name in the menu bar, etc.  But pure, unadulterated Swing will work and
simply not look quite like the norm.  You can find a wealth of
information starting there.  If you want more, you might want to
subscribe to the java-dev mailing list that's offered.  It's not too
high-traffic (though it has its days) and its archive is available to
search.  You'll find a link on that page for more on it.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Arne Vajhøj - 24 Dec 2006 00:26 GMT
> I have the source code for an application that was written using
> Microsoft's apparently defunct variant of Java. It does not compile
[quoted text clipped - 6 lines]
> enough to help me rip out the code that depends on Microsoft's
> version?

If you posted some of the errors, then you may get
some more specific advice.

Arne


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.