You will event eventually find that you need to remove Object, String, Cloneable interface and some other classes. This is because the .NET base objects conflict with Java, since it is basically a remake of Java. Even then you will still have some issues, such as the assert function was non-existent in Java 1.1.4 but used in the 1.4 JDK. I also have not found a way to unload the MS Java 1.1.4 libraries to keep the dup warnings out.
Anyway, removing these classes and other mods invalidate the terms of use of the Sun JDK (because you have modified the packages) and you will not be able to distribute (legally) anything you have done and it is only an academic exercise.
Unfortunately for legal reasons you will need to wait for GNU Classpath to port the Java libraries. GNU Classpath currently works pretty well for non-GUI stuff (XERXES, XALAN and FOP port well), but is woefully inadequate for apps with Swing and AWT. If you know your Swing you could help port this, but you need to do it in a clean room environment (you can't reference or build from the Sun source).
Check out IKVM (
www.ikvm.net) and GNU Classpath (
http://www.gnu.org/software/classpath/classpath.html) for a partial JDK 1.4 open-source library that may have what you need.
[quoted text, click to view] "YangHua" wrote:
> Hi, all
>
> My question is just as the title. Is it possible to compile JDK1.4 source
> code with J#?
> I have tried but it failed with 11 error messages and hundreds of warning.s.
>
> During the compiling process, because 'delegate' becomes a reserved words
> now in J#, i have replaced all with 'delegate_', but there are still other
> errors i can not handle.
>
> It also seems that though i deleted jsharp library from project reference,
> J# will still use it, then throw out a lot of warnings on duplicated name
> between package and source code....
>
> I think it will be funny if i succeed, ... but is it really a mission
> impossible?
>
> Xmihu
>
>
>
You will event eventually find that you need to remove Object, String, Cloneable interface and some other classes. This is because the .NET base objects conflict with Java, since it is basically a remake of Java. Even then you will still have some issues, such as the assert function was non-existent in Java 1.1.4 but used in the 1.4 JDK. I also have not found a way to unload the MS Java 1.1.4 libraries to keep the dup warnings out.
Anyway, removing these classes and other mods invalidate the terms of use of the Sun JDK (because you have modified the packages) and you will not be able to distribute (legally) anything you have done and it is only an academic exercise.
Unfortunately for legal reasons you will need to wait for GNU Classpath to port the Java libraries. GNU Classpath currently works pretty well for non-GUI stuff (XERXES, XALAN and FOP port well), but is woefully inadequate for apps with Swing and AWT. If you know your Swing you could help port this, but you need to do it in a clean room environment (you can't reference or build from the Sun source).
Check out IKVM (
www.ikvm.net) and GNU Classpath (
http://www.gnu.org/software/classpath/classpath.html) for a partial JDK 1.4 open-source library that may have what you need.
[quoted text, click to view] "YangHua" wrote:
> Hi, all
>
> My question is just as the title. Is it possible to compile JDK1.4 source
> code with J#?
> I have tried but it failed with 11 error messages and hundreds of warning.s.
>
> During the compiling process, because 'delegate' becomes a reserved words
> now in J#, i have replaced all with 'delegate_', but there are still other
> errors i can not handle.
>
> It also seems that though i deleted jsharp library from project reference,
> J# will still use it, then throw out a lot of warnings on duplicated name
> between package and source code....
>
> I think it will be funny if i succeed, ... but is it really a mission
> impossible?
>
> Xmihu
>
>
>
You will event eventually find that you need to remove Object, String, Cloneable interface and some other classes. This is because the .NET base objects conflict with Java, since it is basically a remake of Java. Even then you will still have some issues, such as the assert function was non-existent in Java 1.1.4 but used in the 1.4 JDK. I also have not found a way to unload the MS Java 1.1.4 libraries to keep the dup warnings out.
Anyway, removing these classes and other mods invalidate the terms of use of the Sun JDK (because you have modified the packages) and you will not be able to distribute (legally) anything you have done and it is only an academic exercise.
Unfortunately for legal reasons you will need to wait for GNU Classpath to port the Java libraries. GNU Classpath currently works pretty well for non-GUI stuff (XERXES, XALAN and FOP port well), but is woefully inadequate for apps with Swing and AWT. If you know your Swing you could help port this, but you need to do it in a clean room environment (you can't reference or build from the Sun source).
Check out IKVM (
www.ikvm.net) and GNU Classpath (
http://www.gnu.org/software/classpath/classpath.html) for a partial JDK 1.4 open-source library that may have what you need.
[quoted text, click to view] "YangHua" wrote:
> Hi, all
>
> My question is just as the title. Is it possible to compile JDK1.4 source
> code with J#?
> I have tried but it failed with 11 error messages and hundreds of warning.s.
>
> During the compiling process, because 'delegate' becomes a reserved words
> now in J#, i have replaced all with 'delegate_', but there are still other
> errors i can not handle.
>
> It also seems that though i deleted jsharp library from project reference,
> J# will still use it, then throw out a lot of warnings on duplicated name
> between package and source code....
>
> I think it will be funny if i succeed, ... but is it really a mission
> impossible?
>
> Xmihu
>
>
>
Don't see what you're looking for? Try a search.