Re: Inline bytecode?

From: nos (nos_at_nospam.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 01:08:06 GMT


"PlasmaDragon" <PlasmaDragon@lycos.co.uk> wrote in message
news:15f1ff99.0402231626.495260b3@posting.google.com...
> "nos" <nos@nospam.com> wrote in message
news:<I%b_b.39392$Xp.177329@attbi_s54>...
> > "PlasmaDragon" <PlasmaDragon@lycos.co.uk> wrote in message
> > news:15f1ff99.0402221454.7899c6fa@posting.google.com...
> > > Is it possible to do iline bytecode in Java? Sort of like inline asm
> > > in c++, but platform independent.
> >
> > I think not.
>
> Is there anyway at all to link bytecode and java into the same program
then?
Look into JNI (java native interface) you can write methods in c/c++ or
whatever
and invoke them from a java method.



Relevant Pages

  • Re: JNI - is it good?
    ... >what do you think about JNI (Java Native Interface)? ... >I have to integrate C and Java, and now I know how to do it with JNI, ... Coaching, problem solving, economical contract programming. ...
    (comp.lang.java.programmer)
  • Re: JNI - is it good?
    ... > what do you think about JNI (Java Native Interface)? ... thumb is to write all the code in Java first, ... there is a clear performance bottleneck do I then consider JNI, ...
    (comp.lang.java.programmer)
  • Re: JNI - is it good?
    ... > what do you think about JNI (Java Native Interface)? ... > I have to integrate C and Java, and now I know how to do it with JNI, ... > but I would like to listen to some experienced programmer how is it, ...
    (comp.lang.java.programmer)
  • Re: How to convert a C++ Object to a JNI jobject in order to use GetObjectClass
    ... > I am trying to make a callback against, a C++ Dll that calls the Java ... > Java Method and then have the Java Method return a Hashtable or generic ... > object structure back to the C++ DLL Function via JNI. ... JVM instance ) which will live for the duration of your ...
    (comp.lang.java.programmer)
  • trouble passing float array from C to java method
    ... I have a float array, and I am trying to pass it to a java method, but ... it craps out during the call to pass the array. ... Here is the header for the java method: ...
    (comp.lang.java.programmer)