Skip to content

Instantly share code, notes, and snippets.

@peschwa
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peschwa/0158083bc4e5613a6390 to your computer and use it in GitHub Desktop.
Save peschwa/0158083bc4e5613a6390 to your computer and use it in GitHub Desktop.
# THIS DOESN'T WORK WITH perl6-j AS IT BUILDS.
# To make it work the perl6-j executeable needs an additional entry in its Xbootclasspath argument,
# which points to the compiled .class file that's to be used.
# I don't see an obvious working solution for that problem.
psch@debvm:~/javatest$ cat A.java
import java.lang.System;
public class A {
public void doIt(String what) {
System.out.println(what + " is what we do.");
}
}
psch@debvm:~/javatest$ javac A.java
psch@debvm:~/javatest$ perl6-j -e'use A:from<java>; my $a = A.new; $a.doIt("foo")'
foo is what we do.
psch@debvm:~/javatest$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment