Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher on windows with java 11+ doesn't work #93

Open
BishopWolf opened this issue Nov 6, 2023 · 2 comments
Open

Launcher on windows with java 11+ doesn't work #93

BishopWolf opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@BishopWolf
Copy link

The FIJI launcher for windows doesn't work with java 11. This is related to wrong file separator

PS ~\Fiji.app> .\ImageJ-win64.exe --java-home="C:\\JAVA\\java-11-openjdk" --debug
PS ~\Fiji.app> JRE not found in 'C:\Users\ALEX~1.VER\DOCUME~1\Fiji.app/jre'                   // Note this line with mangled path
JAVA_HOME appears to be a JRE: 'C:\\JAVA\\java-11-openjdk'
Available RAM: 8075MB, using 3/4 of that: 6057MB
Splashscreen library not found: 'C:\\JAVA\\java-11-openjdk/bin/splashscreen.dll'
javaw -Dpython.cachedir.skip=true -Dplugins.dir=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app -Xmx6057m -Xincgc -XX:PermSize=128m -Djava.class.path=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app/jars/imagej-launcher-6.0.2.jar -Dimagej.dir=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app -Dij.dir=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app -Dfiji.dir=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app -Dfiji.defaultLibPath=bin/server/jvm.dll -Dfiji.executable=C:\\Users\\alex.vergara\\Documents\\Fiji.app\\ImageJ-win64.exe -Dij.executable=C:\\Users\\alex.vergara\\Documents\\Fiji.app\\ImageJ-win64.exe -Djava.library.path=C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app/lib/win64;C:\\Users\\ALEX~1.VER\\DOCUME~1\\Fiji.app/mm/win64 -Dscijava.context.strict=false -Dij.debug=true -Dscijava.log.level=debug net.imagej.launcher.ClassLauncher -ijjarpath jars -ijjarpath plugins net.imagej.Main
Using JAVA_HOME C:\\JAVA\\java-11-openjdk
Opening Java library C:\\JAVA\\java-11-openjdk/bin/server/jvm.dll
Warning: falling back to System JVM

Please notice the paths are mangled and a lot of hard coded forward slashes mess up with the correct paths. You can use File.separator instead, this will work everywhere.

@ctrueden ctrueden transferred this issue from imagej/imagej.github.io Dec 23, 2023
@ctrueden ctrueden self-assigned this Dec 23, 2023
@mkitti
Copy link
Collaborator

mkitti commented Dec 23, 2023

Could you specify from where you downloaded Java 11? Oracle? Azul Zulu? Regarding File.separator, part of the issue is that launcher is largely coded in C, not Java.

@ctrueden
Copy link
Member

I am working on a new launcher to replace the current ImageJ Launcher. Source code is here. But it's Linux only right now. I will start working on Windows support soon, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants