I want to launch groovy console during runtime of my java program and Groovy Console should be able to access some java variables
ex.
int x = 5 ;// a variable in java program
launchGroovyConsole(); // hypothetical method to launch groovy console
Now in groovy console x should be accessible
println x
==> 5