Login  Register

Re: ImageJ with OpenJDK with Windows 7/10

Posted by Michael Schmid on Dec 11, 2018; 6:17pm
URL: http://imagej.273.s1.nabble.com/ImageJ-with-OpenJDK-with-Windows-7-10-tp5021517p5021554.html

Hi Philipp,

for plain ImageJ under Windows, you can edit the ImageJ.cfg file to give
the path to the javaw.exe of your desired Java installation:

     .
     C:\path\to\your\jre\bin\javaw.exe
     -Xmx1500m -cp ij.jar ij.ImageJ

where '-Xmx1500m' means 'use 1500 MB memory'.
(You can change the memory settings later in
Edit>Options>Memory&Threads, then restart ImageJ)

You can see which Java Runtime Environment (jre) you are using with
Plugins>Utilities>ImageJ Properties in the line 'java.home:'

In case there is no ImageJ.cfg file and no jre folder in the ImageJ
directory, the ImageJ Launcher will try to find the default Java
installation and create a ImageJ.cfg file for it.
   https://imagej.nih.gov/ij/docs/install/windows.html#upgrade

Michael
________________________________________________________________
Michael Schmid                    email: [hidden email]
Institut für Angewandte Physik, Technische Universität Wien
Wiedner Hauptstr. 8-10/E134, 1040 Wien, Austria
Tel. +43 1 58801-13452, Fax +43 1 58801 13499
________________________________________________________________

On 11.12.18 18:46, Philipp Schneider wrote:

> Am 04.12.18 um 08:49 schrieb Philipp Schneider:
>>> * What did you try -- and do you receive an error message?
>>> * Which version of OpenJDK do you want to use? 8? 11?
>>> * Which version of ImageJ do you want? ImageJ 1.x? Or ImageJ2 via Fiji?
>>
>> I am not that firm in switching between Java Versions (Oracle and
>> OpenJDK) using Windows - its better documented using Linux.
>> ImageJ for Windows always comes with build-in JRE - just deleting the
>> JRE Folder and installing OpenJDK hoping it will work or I just need
>> to configure the "Java Path" did not lead to success. How can I teach
>> ImageJ to use OpenJDK in the windows world?
>> Is there any idea or experience to use ImageJ with OpenJDK and Windows?
>
> Is there any way to download Imagej for Windows without any Java and
> configure Imagej in that way it can use OpenJDK? Which config files have
> to be edit to do so?
>
> Philipp
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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