IKVM (Java) with Monodevelop
With IKVM it is possible to compile java code for the .net virtual maschine of mono, so that it can be mixed with other .net languages like C#.
Installation
I use monodevelop on gentoo linux (it is easy to use and always up to date in this distribution.)
Installing the newest (unstable) monodevelop eBuild:
cd /usr/portage/dev-util/monodevelop emerge monodevelop-0.5.ebuild
You might get warnings, that other packages are missing, which will not be installed
automatically, because they are marked as unstable.
You can install them in the same way (change to the appropriate directory,
type emerge <packagename>).
Download IKVM (I did use ikvm-0.8.0.0.zip)
- unzip it (I unpacked it to /home/ufechner/0Software/ikvm)
Additional steps:
- as root, create a file ikvm in /usr/local/bin with the following content:
mono /home/ufechner/0Software/ikvm/bin/ikvm.exe $@
(Well, replace the path to ikvm.exe to the place, where you put it.)
Now you need to create the stubs to make it possible to use the C# basic packages in Java:
cd /usr/lib mono /home/ufechner/0Software/ikvm/bin/ikvmstub.exe mscorlib.dll
Repeat this step for all libraries, you want to use in java.
Now you are able to run the "hello world" example of monodevelop.