0

interpret and execute Java code

asked 2012-08-07 20:32:34 +0800

fmelossi gravatar image fmelossi
93

Hi all, I have the following problem, I have a field in the database that contains java code example MessageBox.Show ("help"); keep the code in a variable and I need to run within a Java class. As I can do.

thanks

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-08-08 12:02:13 +0800

fmelossi gravatar image fmelossi
93

Help please!!!

link publish delete flag offensive edit

answered 2012-08-08 15:08:51 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have you tried to call such a code with the BSH BeanShell interpreter ?

best
Stephan

link publish delete flag offensive edit

answered 2012-08-08 22:30:44 +0800

fmelossi gravatar image fmelossi
93

Tanks terrytornado

link publish delete flag offensive edit

answered 2012-08-09 06:50:41 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

At time i have not use it self. But have read a little bit of it. I think the bsh is the right and easy way.
Here are two links for it.

http://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html
http://www.beanshell.org/docs.html

best
Stephan

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-08-07 20:32:34 +0800

Seen: 113 times

Last updated: Aug 09 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More