imagej / imagej-launcher

The ImageJ native launcher
https://imagej.net/learn/launcher
BSD 2-Clause "Simplified" License
21 stars 23 forks source link

Fix java.ext.dirs path on OS X #21

Closed ctrueden closed 10 years ago

ctrueden commented 10 years ago

As reported by @cmci on the ImageJ mailing list, the java.ext.dirs system property is set to ImageJ.app/java/macosx-java3d/Home/lib/ext/Library/Java/Extensions rather than Fiji.app/java/macosx-java3d/Home/lib/ext as intended, which causes problems with the local Java3D installation.

miura commented 10 years ago

Thanks Curtis!

dscho commented 10 years ago

@cmci feel free to test the imagej-launcher from http://jenkins.imagej.net/view/Failing/job/ImageJ-launcher/label=MacOSX/lastSuccessfulBuild/artifact/target/nar/imagej-launcher-3.1.7-SNAPSHOT-x86_64-MacOSX-gcc-executable/bin/x86_64-MacOSX-gcc/ (just copy it into your Fiji.app/ directory, make it executable and launch Fiji using that executable).

miura commented 10 years ago

Hi @dscho ,

I tested the following code:

from java.lang import System
print System.getProperty("java.ext.dirs")

Without Fiji.app/imagej-launcher

Started New_.py at Wed Aug 27 10:51:53 CEST 2014
/Applications/Fiji.app/java/macosx-java3d/Home/lib/ext/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Home/lib/ext

With Fiji.app/imagej-launcher (and launching Fiji with this)

Started New_.py at Wed Aug 27 10:50:02 CEST 2014
/Applications/Fiji.app/java/macosx-java3d/Home/lib/ext:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Home/lib/ext

Thanks!

Now I am curious: where actually is imagej-launcher located normally? I found imagej-launcher.jar but the binary is not inside.

By the way, Marching Cube still does not work. I will try finding out the reason.

Cheers, Kota

dscho commented 10 years ago

where actually is imagej-launcher located normally?

The executables are renamed to ImageJ-<platform>. The .jar supporting the executable is located in jars/imagej-launcher-<version>.jar.

By the way, Marching Cube still does not work.

Unfortunately, that does not equip me with enough information to wager an educated guess as to (the cause of) the problem.

miura commented 10 years ago

Unfortunately, that does not equip me with enough information to wager an educated guess as to (the cause of) the problem.

I'm working on it now.

miura commented 10 years ago

Hi Johannes,

I tried fixing the Marching Cube. ... Please check the pull request https://github.com/fiji/VIB/pull/1

Cheers, Kota