[quoted text, click to view] > > I don't know of any Java stubs for the .Net Framework. Keep in mind
that
> > J# was meant to help you migrate away from Java and onto .Net, not the
> > other way around.
> >
> > Thanks,
> >
> > Michael Green
> > Microsoft Developer Support
What Ivan means is classes with dummy implementation ("stubs") that
represent the .NET framework System.* or other package classes. Obviously he
wants to use productivity tools of other Java IDE (like Borland JBuilder) to
write his source code and then build using the J# compiler (could add a
plugin to JBuilder for example or a custom menu item at the tools menu to
call the J# compiler)
I've done similar with JBuilder in the past, was building code that
contained both MSJava and SunJava stuff and was loading the appropriate
classes at runtime depending on whether it found out it was running in
MSJava or not. My pattern was using interfaces in the main program code and
talk to interfaces only, not concrete classes, plus loading classes that
implemented those interfaces dynamically (like plugins), depending on the
Java Runtime I found (MS or Sun one). The MS version of my code would use
say ActiveX controls for multimedia whereas the Sun Java part would use JMF,
QTJava etc. Was using such a thing at the TV and Browser components of
E-Slate (
http://e-slate.cti.gr) before the platform moved to Java2 (wasn't
my decision at the time, but proved to not be a bad decision since MSJava VM
died eventually)
So Ivan, you could maybe use Rational Rose or similar tool to get UML out of
the .NET classes, then spit out Java stubs for those class definitions.
Another nice tool that can also do Java decompilation into UML is Poseidon
UML, but it doesn't support .NET (yet). Supports Sun Java and C++ for now.
Why not send them a suggestion? .NET supports introspection so it shouldn't
be very hard to add .NET library->UML support so that you can then do .NET
library->UML->Sun Java stubs as you were wanting in the first place
or you can write a direct .NET library->Java stub yourself using J# or other
..NET
language and the reflection/introspection API offered by .NET
cheers,
George
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis@kagi.com> [MVP J#] [9880]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis + Robotics
http://www.mech.upatras.gr/~robgroup
.........................................................................