Last active
August 29, 2015 14:03
-
-
Save peschwa/0158083bc4e5613a6390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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