Hi John,
Thanks for the suggestion and patch. Is the reason for this so that you can have classes without needing dummy "main" methods?
Did you consider using org-babel-tangle to generate the source files? This works for me:
Steps:
3. run org-babel-tangle on
javatangle.org (this writes two source files to the pkg dir)
4. run C-c C-c on the top source block (this compiles both source files and runs main)
#+begin_src java :results output :classname pkg/Main :tangle pkg/Main.java
package pkg;
public class Main {
public static void main(String[] args) {
System.out.println(Hey.hey());
}
}
#+end_src
#+begin_src java :results output :classname pkg/Hey :tangle pkg/Hey.java
package pkg;
public class Hey {
public static String hey() {
return "hey";
}
}
#+end_src