[MonoDevelop] Using Java libs like in Xamarin

Miljenko Cvjetko mcvjetko at holisticware.net
Sat Mar 30 08:34:18 UTC 2013


Hi

On 2013.03.30 03:13, sanyock wrote:
> Please let me know is it possible to import/reference java libs for example
> from asp.net application like in Xamarin?
ikvm

You probably mean like in Xamarin Studio exactly Xamarin.Android (AKA 
Mono for Android - M4A
or even further in history Monodroid)

I don't think it is possible like in M4A, at least not with a lot 
tweaks/secrets etc.
M4A is commercial product and this binding of java jars to c# world is 
this simple automagic process
is not implemented elsewhere (with few steps more it can be done with ikvm)
The core of this process is generator[.exe] which produces assemblies 
for M4A and those cannot be
used in ASP.net projects (some cmdline switches are Android specific 
like SDK and API version).

With ikvm you can

  * run java code inside mono CLR, or
  * compile (jit) java jars to native x86 (what c, c++ would output) and
    use PInvoke

References

  * ikvm
    http://www.mono-project.com/IKVM
    http://www.mono-project.com/Java
    http://www.ikvm.net/ <http://www.ikvm.net/>

  * sharpen
    http://www.pauldb.me/post/14916717048/a-guide-to-sharpen-a-great-tool-for-converting-java
    http://en.wikipedia.org/wiki/Sharpen


Just for fun - take a look on XobotOS

>
> Also is  there an easy way to write programs in mono for Java app servers
> without purchasing expensive toolkits?
http://www.mono-project.com/Java 
<http://www.mono-project.com/Java#Exposing%20.NET%20Libraries%20to%20Java>
Exposing .NET Libraries to Java

commercial

  * http://www.jnbridge.com/store.htm
  * http://java-dotnet-bridge.com/


cheers

mel
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Using-Java-libs-like-in-Xamarin-tp4659178.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list


-- 
Miljenko Cvjetko dipl.ing. ET
	Direktor/CEO
	Projektant rjes(enja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20130330/b76b6ff9/attachment-0001.html>


More information about the Monodevelop-list mailing list