Java for scripting

M

Mihai Cartoaje

I am programming an image codec and would like to use a VM to convert
RAW data into RGB data. Is it possible to use Java as a scripting
language for C programs like Lua? As in binding C fuctions to Java
bytecode. Has anyone done this? Or if not is there a Java VM that is
not under GPL that is easy to modify?

I know that JNI exists but it is difficult to use because JNI
implementations were designed to allow Java programs to acces
libraries not to add a script to an existing C program.
 
A

Arne Vajhøj

Mihai said:
I am programming an image codec and would like to use a VM to convert
RAW data into RGB data. Is it possible to use Java as a scripting
language for C programs like Lua? As in binding C fuctions to Java
bytecode. Has anyone done this? Or if not is there a Java VM that is
not under GPL that is easy to modify?

I know that JNI exists but it is difficult to use because JNI
implementations were designed to allow Java programs to acces
libraries not to add a script to an existing C program.

JNI also supports calling C from Java.

But Java it not really a scripting language.

And C->Java->JavaScript sound a bit cumbersome.

Arne
 
L

Lew

Mihai said:
I am programming an image codec and would like to use a VM to convert
RAW data into RGB data. Is it possible to use Java as a scripting
language for C programs like Lua? As in binding C fuctions to Java
bytecode. Has anyone done this? Or if not is there a Java VM that is
not under GPL that is easy to modify?

I know that JNI exists but it is difficult to use because JNI
implementations were designed to allow Java programs to acces
libraries not to add a script to an existing C program.

There is no need to post the question another time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top