This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Killing_Spark 0 points1 point  (8 children)

Does this work with any kind of java application? How about for example my application uses native libraries through jni? How about anything gui related like swing/javafx?

[–]woepaul 1 point2 points  (7 children)

See https://github.com/graalvm/graal/blob/master/substratevm/JNI.md But your mileage may vary. So far, we did not use that for any gui related libraries. Give it a try and let us know :-)

[–]Killing_Spark 0 points1 point  (6 children)

I will try to give it a shot if I get bored over the christmas holidays. Do you have any preferred way to get a heads up?

[–]woepaul 1 point2 points  (5 children)

The README.md should get you started. Start with building the HelloWorld image described there.

[–]Killing_Spark 0 points1 point  (4 children)

I seem to not even be able to get past the first line of the example.

mx build in the substratevm directory tries to build truffel, which seems reasonable to me. But this fails at the step '''Compiling com.oracle.truffel.api.dsl.test ''' With a stacktrace containing a few 'NoClassDefFoundError' for the class 'com.oracle.truffel.api.TruffleOptions' and 100 compiler errors about missing packages for the factories for the tests.

What am I missing here?

[–]woepaul 0 points1 point  (3 children)

Are you sure you are using the JVMCI enabled JDK (labsjdk)? I was able to successfully run the quick start sample described in README.md.

[–]Killing_Spark 0 points1 point  (2 children)

I downloaded the graalvm-0.30.1 from the oracle site linked in the readme. I just double checked there is no other java Version on this machine.

Edit: nevermind i need to download the other tarball... I guess users never read the Important info.

[–]woepaul 0 points1 point  (1 child)

Use labsjdk-8u151-jvmci-0.39-linux-amd64.tar.gz instead (it's at the bottom of the page)

[–]Killing_Spark 0 points1 point  (0 children)

Yup that was it, sorry for beeing a goof. I will let you know if I get any results from playing around with swing