At the language level, J# is Java, with a few extensions to make it good
citizen in .NET. But you can take vanilla Java source code and recompile it
with the J# compiler. You can also take Java class libraries (jar files) and
convert them to .NET assemblies.
On the other hand, J# is like "old Java" at the JDK level. J# is based on
version 1.1.4 of the JDK (very old, SUN stopped supporting it in July 2001).
So you don't have all the latest goodies of SUN's JDKs and you may
experience some API incompatibilities between J# and standard Java (usually,
classes or methods that have been added to the JDK and that don't exist in
J#). But Microsoft has added some goodies from the latest JDK (collection
classes for example) to close the gap.
Bottom line: You won't run into any trouble with the language syntax, but
you have to be careful and check that the JDK methods that you need are
supported by the J# JDK.
Also, if you don't care about portability between J# and standard Java and
only want to target .NET, you don't need to worry about the JDK issue,
because you will be able to use the full .NET framework from J#.
Bruno.
"MyName" <dkfjiw@argueemimini.net> a écrit dans le message de
news:pan.2003.12.10.20.02.33.705259@argueemimini.net...
[quoted text, click to view] >
> I'm wanting to get a way from Delphi.
>
> I'm thinking of J# because I might be able to
> transfer the code to Java without much difficulty.
> Is this true? How much is J# like Java?
> If not an easy recompile of code, are there
> translators that can convert J# to Java?
>
>