Login  Register

Re: Ubuntu MATE 16.04.1 with JRE 9 installation

Posted by luke_bouma on Jun 30, 2017; 1:40pm
URL: http://astroimagej.170.s1.nabble.com/Ubuntu-MATE-16-04-1-with-JRE-9-installation-tp611p705.html

A comment:

I had a similar problem on Ubuntu 15.04, with JRE 9. Install seemed to work fine, but executing the astroimagej binary would fail with

```
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
        at java.base/java.lang.String.substring(String.java:1885)
        at ij.ImageJ.main(ImageJ.java:622)
```

The solution suggested here -- downgrading the java runtime environment (to JRE 8, available at http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html) -- worked for me.

Cheers,

Luke