Skip to content

Instantly share code, notes, and snippets.

@yokolet
Created March 11, 2010 15:23
Show Gist options
  • Save yokolet/329230 to your computer and use it in GitHub Desktop.
Save yokolet/329230 to your computer and use it in GitHub Desktop.
import org.jruby.embed.LocalContextScope;
import org.jruby.embed.ScriptingContainer;
public class HelloWorldInJapanese {
private HelloWorldInJapanese() {
ScriptingContainer container = new ScriptingContainer(LocalContextScope.SINGLETHREAD);
container.runScriptlet("puts \"こんにちは世界\"");
}
public static void main(String[] args) {
new HelloWorldInJapanese();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment