Re: java Windows Media Player

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alessandro Angeli [MVP::DigitalMedia] (nobody_at_nowhere.in.the.net)
Date: 01/09/05


Date: Sun, 9 Jan 2005 04:04:20 +0100

Prometheus wrote:

> hmmm interesting... I was considering using J# but can
> you tell me if i can import my own set of classes.
> basically, I have a jar file library with bluetooth API
> written in Java (the BlueCove project at
> www.sourceforge.net and also found on www.benhui.net)
> I was going to make some server code in normal java since
> I successfully set up hte new API Jar file. But can J#
> handle external jar file librairies? if so then how may i
> go about importing this jar file into J# (without
> rewriting the original source code of the library if
> possible)

J# is compiled into .NET bytecode and provides a Java
1.1-compatible class library so, if you have the source code
and it is 100% pure Java and it only uses 1.1 features, you
may successfully recompile it with J#. But you can not just
use compiled JVM bytecode, as found in a JAR, because the
VMs are not compatible.

Even if you have the source code and it meets the
requirements, a Bluetooth library is most likely going to
use JNI to access the hardware through the native system
(which would make it not 100% pure Java) and JNI is not
supported in J#, since the .NET VM uses a very different
native linking mechanism. You can add JNI support to .NET/J#
using <http://www.jnbridge.com/>, but I've never used it so
I don't know more. It also says it adds support to .NET for
execution of JVM bytecode, which may be useful to you.
Another integration library you can try:
<http://j-integra.intrinsyc.com/>.

-- 
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


Relevant Pages

  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... Go to Windows Explorer and navigate to any .jar file (perhaps in ... See it that will reset the file association for the jar files. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How to survive using a non Lisp language?
    ... > A friend of mine works in a java shop and he uses Jython, ... The detail here is that "they care", ... Clients may not care about source code, but the folks responsible for the ... other, Java source code, but they see jar file and ASSUME that there's Java ...
    (comp.lang.lisp)
  • Re: Running java programs from class files
    ... java -classpath /xyz/abc MyPackage.MyClass ... I think the most confusing part is the root business. ... I can get it to work if I put the jar file in the Class-Path: line in the manifest and put the jar file in the same directory as the program jar file but not from the command line. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... See it that will reset the file association for the jar files. ... it as a jar file. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)