PDA

View Full Version : Embedded Java



Macros
02-21-2009, 12:24 AM
Is it possible to embed any form of Java in a C# form? If so, how? (Or could you point me towards some tutorials).

R0b0t1
02-21-2009, 12:37 AM
Not really, unless you want to find a Java interpreter compatible with C# or you find a plugin that will interface with the JVM or you build a Java program that will interact with a C# program (interprocess communication) or you just don't do it.

Macros
02-21-2009, 01:27 AM
OK, how about J# then? Is that possible?

R0b0t1
02-21-2009, 01:58 AM
No, as it is still compiled. It only assumes Java-like syntax.

Macros
02-21-2009, 02:02 AM
I'm just starting to learn Java, so this may seem like a silly question, but: There's no way to export the java files, in compiled form , (like an .exe)?

R0b0t1
02-21-2009, 02:21 AM
Look at gcj. If you compile it like that, however, some Java places might not help you :p (I wouldn't worry about it, though, it will accept anything you can get javac to compile)

EDIT: Oh, if you're on windows -- I suspect you are -- you should look for mingw. In the installer, there's a "GNU Compiler for Java" option, make sure that's ticked.

Freddy1990
02-23-2009, 07:04 PM
You can use the java native interface... You can't compile java class files into exe files though, at max you could compile them into an exe, but they can always be extracted...

ShowerThoughts
02-23-2009, 07:36 PM
C#.net can be combined with Java, right?

Macros
02-26-2009, 01:52 AM
You can use the java native interface...

Thanks, suppose it was a pretty darn noobie question; I wanted to make sure before I started making this C# gui =p