Create test.js:

public class Greeting
	public function sayHello() : String
		return "Greetings!";

Compile into DLL using:

jsc test.js

Create ctest.js:

print(new Greeting().sayHello());

Compile into EXE using:

jsc /i:test.dll /exe ctest.js

run ctest.exe

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.