JavaCall.jl
JavaCall.jl copied to clipboard
Call Java from Julia
`jcall` fails with `NoSuchMethodError` when calling methods of a dynamically compiled class. I use [InMemoryJavaCompiler](https://github.com/trung/InMemoryJavaCompiler/blob/master/src/main/java/org/mdkt/compiler/InMemoryJavaCompiler.java) to compile a new class and create its instance. (`InMemoryJavaCompiler` is based on `javax.tools.*`, so...
Prototype `@jcall` macro: ```julia julia> using JavaCall; JavaCall.init() julia> System = @jimport java.lang.System JavaObject{Symbol("java.lang.System")} julia> @jcall System.out.println("Hello from Java!!"::JString)::Nothing ┌ Info: args: │ func = :((:println, System.out)) │ rettype =...
How could we extend JavaCall to allow passing of multidimensional arrays? E.g. ```java public class Test { public static double[][] testDoubleArray2D(double[][] array) { return array; } } ``` The problem...
In Julia 1.6.3, `JavaCall.init()` causes a Segmentation fault. The same happens with version 1.7.0-rc1. It works in version 1.6.2. ``` _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_)...
In ahnlabb/BioformatsLoader.jl#18 @timholy noted that after the JVM was initialized sending the interrupt signal (e.g. through `Ctrl-C`) would exit Julia. This happens because the JVM installs signal handlers by default....
Hey, in the REPL it is possible to run a JavaCall dependent library (like View5D) without `JULIA_COPY_STACKS=1`. In IJulia or Pluto it is not: ```julia JavaCall.JavaCallError("Either the environmental variable JULIA_COPY_STACKS...
JavaCall throws a `java.awt.HeadlessException` in Linux systems due to a missing "X11" display specification, when Git-Hub automatic testing is performed. Does anyone know how to avoid this? Also on Mac...
I am struggling with being able to call java routines, whos classes are inside a subfolder view5d/ in the jar file. I tried in vain for days. After opening the...
Should we try to use BinaryBuilder to install a private version of Java within the Julia depot? * Is this a good idea? It's not a _terrible_ idea, many applications...
Hi there, i would like to call swing/awt components with JavaCall. But there seems to be some thread issues. Frames do not open. I think this is not an JavaCall...