Login  Register

Re: ImageJ on HiDPI screens

Posted by Mort, Richard on Dec 15, 2016; 9:45am
URL: http://imagej.273.s1.nabble.com/ImageJ-on-HiDPI-screens-tp5017777p5017784.html

OK so if I use java9 I get:

$ ./ImageJ-linux64
Unrecognized option: -Xincgc
Warning: falling back to System JVM
Unrecognized option: -Xincgc
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Is anybody successfully using Fiji with Java9 on linux?

Dr. Richard Mort
Lecturer in Biomedicine

B088a Furness Building
Division of Biomedical and Life Sciences
Faculty of Health and Medicine
Lancaster University
Bailrigg
Lancaster.
LA1 4YG, UK.

Phone: 015245 95 803
Email: [hidden email]<https://link.nylas.com/link/f8zr9ittgtx5wdcoz6whd7t9/local-8c2ff1e9-8268/0?redirect=mailto%3Ar.mort%40lancaster.ac.uk>


On Dec 14 2016, at 4:04 pm, Curtis Rueden <[hidden email]> wrote:

Hi Richard,

Ah, sorry, I missed the code in your original post.

You can verify that ImageJ is using Java 9 by following these instructions:
http://imagej.net/Troubleshooting#Checking_the_Java_version

It looks like you wrote "--java_home" instead of "--java-home" (i.e.,
underscore instead of dash), so perhaps that is your problem.

That said, I have not tested it myself, so it still might not solve it...
either way, would be nice to hear back on this thread about how things go!

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/

On Wed, Dec 14, 2016 at 3:52 PM, Richard Mort <[hidden email]>
wrote:

> Hi Curtis,
>
> It didn't seem to work for me (see code in my post) but maybe this is my
> ignorance about how to specify a java version on launch. Does someone have
> a custom launch script for doing this on Linux?
>
> Best
>
> R
>
>
>
> On 14/12/16 11:35, Curtis Rueden wrote:
>
>> Hi Richard, Stephan & everyone,
>>
>> Java 9 has HiDPI support out of the box. Give it a try! At least one user
>> reports that it fixes the issue, at least on Win10 [1].
>>
>> Regards,
>> Curtis
>>
>> [1]
>> http://forum.imagej.net/t/how-to-increase-the-gui-font-size/
>> 552/4?u=ctrueden
>>
>> --
>> Curtis Rueden
>> LOCI software architect - http://loci.wisc.edu/software
>> ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
>> Did you know ImageJ has a forum? http://forum.imagej.net/
>>
>>
>> On Wed, Dec 14, 2016 at 10:52 AM, Saalfeld, Stephan <
>> [hidden email]> wrote:
>>
>> I would also be interested in a solution. Found none so far except
>>> that I bought reading glasses...
>>>
>>> Best,
>>> Stephan
>>>
>>>
>>>
>>> On Wed, 2016-12-14 at 09:29 +0000, Mort, Richard wrote:
>>>
>>>> Hi All,
>>>>
>>>> I wonder has anyone solved the problem of dpi scaling on hi
>>>> resolution screens (I know this is really a java issue)? I'm on a
>>>> dell xps 13 with Ubuntu linux 16.04. ImageJ is tiny unless I change
>>>> my screen resolution. I have tried:
>>>>
>>>> Packaged java:
>>>>
>>>> ./ImageJ-linux64 -Dsun.java2d.dpiaware=true
>>>>
>>>> Java-9:
>>>>
>>>> ./ImageJ-linux64 --java_home /usr/lib/jvm/java-9-oracle
>>>> -Dsun.java2d.dpiaware=true
>>>>
>>>> Any suggestions?
>>>>
>>>> --
>>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> Dr. Richard Mort
> Lecturer in Biomedicine
>
> B088a Furness Building
> Division of Biomedical and Life Sciences
> Faculty of Health and Medicine
> Lancaster University
> Bailrigg
> Lancaster.
> LA1 4YG, UK.
>
> Phone: 015245 95 803
> Email: [hidden email]
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html