By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,738 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,738 IT Pros & Developers. It's quick & easy.

Compile java to bytecode & execute in java runtime?

P: n/a

I'm currently working on a little tool that would benefit from having
a little embedded script language. Although I have C++ source code
available for such a script language, I have 2 concerns:

- The capabilities of the C++ script interpreter that I've written are
rather limited (of course I can solve this)

- My little script interpreter was written for readability rather than
speed. As such, I'm afraid that running the script interpreter inside
Java's bytecode interpreter will turn out to be rather slow.

I haven't tried actually porting the interpreter from C++ to Java yet,
instead I'd like to check out what alternatives I have. It might be
far more attractive to be able to compile a chunk of Java to Java
bytecode in Java runtime, and then execute this compiled bytecode. Is
this possible? What other alternatives do I have?


Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.