Login  Register

Problems running astroimagej on linux (guix)

Posted by rlemmon on May 11, 2020; 11:44am
URL: http://astroimagej.170.s1.nabble.com/Problems-running-astroimagej-on-linux-guix-tp1347.html

Hi All,

I am trying to run AstroImageJ on my laptop (using guix linux).

I have downloaded AIJ into my home directory and unpacked it. If I go into the AstroImageJ directory and run:

$ java -Xmx8192m -jar ij.jar

I get the following error:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
        at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
        at java.base/java.lang.String.substring(Unknown Source)
        at ij.ImageJ.main(ImageJ.java:622)

I don't normally use java so I am not sure what is happening here. It seems to be an error in the code itself. I wonder if it is a compatibility issue with my version of java. For example:

$ java -version

openjdk version "12" 2019-03-19
OpenJDK Runtime Environment (build 12+0-adhoc..jdk-0276cba45aac)
OpenJDK 64-Bit Server VM (build 12+0-adhoc..jdk-0276cba45aac, mixed mode, sharing)

Thanks
Roy.