<div dir="ltr">Hi Florian,<div><br></div><div>Thanks for the update!</div><div><br></div><div><div>> if you know better place to discuss this then email… sure, let me</div><div>> know… I could cut and paste this mail easily into a forum type thing</div><div>> of your choice...</div></div><div><br></div><div>I have CCed the imagej-devel list, since this discussion may interest other developers. I chose imagej-devel instead of fiji-devel because although the 3D_Viewer plugin does not ship on the core ImageJ update site, a version of it does ship with ImageJ1. So it is not really a "Fiji-specific" plugin.</div><div><br></div><div><div>> we switched gears and looked out for methods that could bundle our</div><div>> favorite jogl and gluegen libraries in our own ueber-jar.</div></div><div><br></div><div>I hope you guys saw this page at some point:</div><div><a href="http://imagej.net/Uber-JAR">http://imagej.net/Uber-JAR</a></div><div><br></div><div>Indeed, shading the dependencies is the most robust way of shipping two versions of the same libraries in ImageJ right now without causing conflicts. There are still disadvantages though, as discussed at the above link. But if it is working for you, that is OK.</div><div><br></div><div><div>> we had to find out that on 0 of the 5 machines we could ever start the</div><div>> 3D Viewer if we used Java7 or Java8.</div></div><div><br></div><div>All Macs? If any were Windows, did you try the updated experimental bundle I linked before?</div><div><a href="http://curtis.imagej.net/2015-04-09-jogl-java3d/">http://curtis.imagej.net/2015-04-09-jogl-java3d/</a><br></div><div><br></div><div>For one thing, that bundle uses an updated version of the 3D Viewer that never takes the liberty of trying to install Java 3D [1].</div><div><br></div><div>If it would be helpful, I could also prepare OS X and/or Linux versions of such a bundle.</div><div><br></div><div><div>> Let me know what you think and if we can help in any way.</div></div><div><br></div><div>If you guys are feeling motivated, you could do more testing on various platforms of the code changes I have done. It would be great to get the JOGL version of Java 3D 1.6 shipping with Fiji.</div><div><br></div><div>I am insanely busy through at least mid June, but will try to make time to work on this before July 1st (since after that point, I have a moratorium on coding in order to work on papers for a while).</div><div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] <a href="https://github.com/fiji/3D_Viewer/compare/jogl-java3d">https://github.com/fiji/3D_Viewer/compare/jogl-java3d</a></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 3:48 AM, Florian Jug <span dir="ltr"><<a href="mailto:jug@mpi-cbg.de" target="_blank">jug@mpi-cbg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Curtis, Mark,<div><br></div><div>I have some exciting and potentially also some less exciting news! </div><div>Loic and I sat together yesterday and only went to bed far after it was still yesterday… ;)</div><div>First we started playing with some classpath isolation ideas, hoping that the 3D Viewer und ClearVolume could happily coexist within Fiji.</div><div>Long story short: it was hell… and our ‘lessons learned’ is that such an attempt is only feasible if the entire interaction between the default and the new classpath goes via interfaces alone.</div><div><br></div><div>Then we switched gears and looked out for methods that could bundle our favorite jogl and gluegen libraries in our own ueber-jar. That sounds bad, doesn’t it? Yes it does… BUT: we figured that if we can at the same time rename the package names of jogl and gluegen + modify all our internal code such that only these modified packages are used we would also have our separate version of these libraries and could even coexist in the same classloader.</div><div><br></div><div>The solutions turns out to be quite easy and uses a very nice and potent Maven plugin you might know: <b>maven-shade-plugin</b></div><div><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><div style="font-weight:normal;margin:0px"><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">plugin</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">groupId</span><span style="color:#009193">></span>org.apache.maven.plugins<span style="color:#009193"></</span><span style="color:#4e9192">groupId</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">artifactId</span><span style="color:#009193">></span><span style="text-decoration:underline">maven</span>-shade-plugin<span style="color:#009193"></</span><span style="color:#4e9192">artifactId</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#000000"> </span><span style="color:#009193"><</span>version<span style="color:#009193">></span><span style="color:#000000">2.3</span><span style="color:#009193"></</span>version<span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#009193"><span style="white-space:pre-wrap"> </span><</span>executions<span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">execution</span><span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">phase</span><span style="color:#009193">></span>package<span style="color:#009193"></</span><span style="color:#4e9192">phase</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">goals</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">goal</span><span style="color:#009193">></span>shade<span style="color:#009193"></</span><span style="color:#4e9192">goal</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">goals</span><span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#000000"> </span><span style="color:#009193"><</span>configuration<span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">artifactSet</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">includes</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">include</span><span style="color:#009193">></span>net.clearvolume:cleargl<span style="color:#009193"></</span><span style="color:#4e9192">include</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">include</span><span style="color:#009193">></span>net.clearvolume:clearcuda<span style="color:#009193"></</span><span style="color:#4e9192">include</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">include</span><span style="color:#009193">></span>net.clearvolume:clearvolume<span style="color:#009193"></</span><span style="color:#4e9192">include</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">include</span><span style="color:#009193">></span>org.jogamp.gluegen:gluegen-rt<span style="color:#009193"></</span><span style="color:#4e9192">include</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"><</span><span style="color:#4e9192">include</span><span style="color:#009193">></span>org.jogamp.jogl:jogl-all<span style="color:#009193"></</span><span style="color:#4e9192">include</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="white-space:pre-wrap"> </span><span style="color:#009193"></</span><span style="color:#4e9192">includes</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">artifactSet</span><span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#000000"><span style="white-space:pre-wrap"> </span></span><span style="color:#009193"><</span>relocations<span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">relocation</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">pattern</span><span style="color:#009193">></span>javax.media.opengl<span style="color:#009193"></</span><span style="color:#4e9192">pattern</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"><</span><span style="color:#4e9192">shadedPattern</span><span style="color:#009193">></span>cv.javax.media.opengl<span style="color:#009193"></</span><span style="color:#4e9192">shadedPattern</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">relocation</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(79,118,203)"><span style="color:rgb(0,0,0);text-align:-webkit-auto"> </span><span style="text-align:-webkit-auto;color:rgb(0,145,147)"></</span><span style="text-align:-webkit-auto;color:rgb(78,145,146)">relocations</span><span style="text-align:-webkit-auto;color:rgb(0,145,147)">></span><span style="color:rgb(0,0,0);text-align:-webkit-auto"> </span><span style="color:rgb(0,0,0);text-align:-webkit-auto"> </span></div><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#000000"> </span><span style="color:#009193"></</span>configuration<span style="color:#009193">></span></div><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"> <br></p><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">execution</span><span style="color:#009193">></span></div></div><div style="font-weight:normal;margin:0px"><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">execution</span><span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:#000000"> </span><span style="color:#009193"></</span>executions<span style="color:#009193">></span></div><div style="margin:0px;font-size:11px;font-family:Monaco"> <span style="color:#009193"></</span><span style="color:#4e9192">plugin</span><span style="color:#009193">></span></div><div><span style="color:#009193"><br></span></div></div><div style="font-weight:normal;margin:0px">The setup above is the ‘minimal’ setup we came up with late last night. We include our own dependencies + jogl + gluegen. From within both those libraries we then relocate all packages conflicting with the 3D Viewer, which happens to be all packages below ‘javax.media.opengl’.</div><div style="font-weight:normal;margin:0px"><br></div><div style="font-weight:normal;margin:0px">Status quo: <span style="text-align:-webkit-auto">on 5 out of 5 machines we tried this setup ClearVolume can still start (when Fiji was run with Java7 or Java8) even after the 3D Viewer did his pollution downloads into 'ext’.</span></div><div style="font-weight:normal;margin:0px"><br></div><div style="margin:0px"><b>Some potentially bad news:</b> we had to find out that on 0 of the 5 machines we could ever start the 3D Viewer if we used Java7 or Java8. Either there is some inherent issue with Java>6, or it is because we ran the 3D Viewer using Java6 before, he downloaded some dependencies into some Java6 related path, and when later we tried to run it using Java>6 the 3D Viewer did not check if he has all dependencies at hand. I don’t know and did not yet attempt to figure that out.</div><div style="margin:0px"><br></div><div style="margin:0px">On a fresh fiji install I did for example this:</div><div style="margin:0px">1) open fiji with regular java (1.6 on mac)</div><div style="margin:0px">2) run the 3D Viewer on the mitosis 5d example dataset — he downloaded stuff</div><div style="margin:0px">3) restart and redo — he opens the 3d viewer</div><div style="margin:0px">4) restart using Java7</div><div style="margin:0px">5) fail! (see below)</div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:#34bd26">jug@myers-mac-7</span>:<span style="color:#5330e1">~/Repositories/GIT/imglib2/imglib2-clearvolume</span><span style="color:#d53bd3"> (master)</span>$ /Applications/Fiji4tests.app/Contents/MacOS/ImageJ-macosx --java-home /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">May 28 10:38:49 myers-mac-7 ImageJ-macosx[86410] <Error>: The function ‘CGContextErase’ is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">log4j:WARN No appenders could be found for logger (org.bushe.swing.event.EventService).</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">log4j:WARN Please initialize the log4j system properly.</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">log4j:WARN See <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for more info.</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">[ERROR] Skipping unsupported option -port7</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">version = 1.5</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Exception in thread "J3D-Renderer-1" java.lang.UnsatisfiedLinkError: no jogl in java.library.path</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.lang.Runtime.loadLibrary0(Runtime.java:849)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.lang.System.loadLibrary(System.java:1088)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.security.AccessController.doPrivileged(Native Method)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.<clinit>(MacOSXGLDrawableFactory.java:53)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.lang.Class.forName0(Native Method)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at java.lang.Class.forName(Class.java:191)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at javax.media.j3d.JoglPipeline$QueryCanvas.<init>(JoglPipeline.java:9029)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8793)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at javax.media.j3d.Renderer.doWork(Renderer.java:514)</div><div style="margin:0px;font-size:14px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="white-space:pre-wrap"> </span>at javax.media.j3d.J3dThread.run(J3dThread.java:275)</div><div><br></div></div><div style="margin:0px"><b>ClearVolume is NOT installed in this Fiji yet.</b><br><br></div><div style="margin:0px">Anyways… this was my coredump of today. Let me know what you think and if we can help in any way.</div><div style="margin:0px">For us it was important that you guys are informed about how ClearVolume deals with the version conflict of jogl at the moment.</div><div style="margin:0px"><br></div><div style="margin:0px">Let us know if you have questions or concerns.</div><div style="margin:0px"><br></div><div style="margin:0px">Cheers,</div><div style="margin:0px">Florian</div><div style="margin:0px">:)</div><div style="margin:0px"><br></div><div style="margin:0px">PS: if you know better place to discuss this then email… sure, let me know… I could cut and paste this mail easily into a forum type thing of your choice...</div><span class=""><div style="margin:0px"><br></div><div style="margin:0px">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="font-weight:normal;margin:0px"><br></div><div style="font-weight:normal;margin:0px">MPI of Molecular Cell Biology and Genetics</div><div style="font-weight:normal;margin:0px">Group: Gene Myers<br>Pfotenhauer Strasse 108<br>01307 Dresden </div><div style="font-weight:normal;margin:0px">Germany<br></div><br></span></div></span></div></span></div></span></div></span><span class=""><div style="font-weight:normal;margin:0px">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="font-weight:normal;margin:0px"><br></div></span></span><br>
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On 13 May 2015, at 21:01, Curtis Rueden <<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>> wrote:</div><br><div><div dir="ltr"><div>Hi Florian,</div><div><br></div><div>> <span style="font-size:12.8000001907349px">a little bit of waiting time will solve all our problems. :)</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">:-)</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I wish I could promise it will only be a little bit. Good news is: Mark's current main project is to solve the various launcher / Java 8 / OS X / Java 3D issues, since they are pretty much all related. Bad news is: it's amazing how little time we actually spend these days working on our "main projects"...</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div>> we should check out <a href="https://github.com/imagej/imagej/issues/120" target="_blank">https://github.com/imagej/imagej/issues/120</a> —</div><div>> if the mavenized jogl is all we need… that would be perfect!</div><div><br></div><div>Just to clarify: JOGL is already Mavenized. It was the hharrison Java 3D fork that wasn't yet Maven based. So I did that work, and it lives in my fork right now:</div><div><br></div><div>* <a href="http://github.com/ctrueden/java3d-core/compare/maven" target="_blank">http://github.com/ctrueden/java3d-core/compare/maven</a></div><div>* <a href="http://github.com/ctrueden/java3d-utils/compare/maven" target="_blank">http://github.com/ctrueden/java3d-utils/compare/maven</a></div><div>* <a href="http://github.com/ctrueden/vecmath/compare/maven" target="_blank">http://github.com/ctrueden/vecmath/compare/maven</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Harvey expressed interest in merging it, although he's slow to respond (probably he's super busy).</div><div class="gmail_extra"><br></div><div class="gmail_extra">The worst case scenario is that we move the Maven-based Java 3D fork to scijava org and maintain it there. But hopefully it won't come to that—the JOGL community seems very helpful and active so far.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Curtis</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 1:51 PM, Florian Jug <span dir="ltr"><<a href="mailto:jug@mpi-cbg.de" target="_blank">jug@mpi-cbg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Curtis,<div><br></div><div>thanks, that was very helpful.</div><div>For it means that a little bit of waiting time will solve all our problems. :)</div><div><br></div><div>@Loic: we should check out <a href="https://github.com/imagej/imagej/issues/120" target="_blank">https://github.com/imagej/imagej/issues/120</a> — if the mavenized jogl is all we need… that would be perfect!</div><div><br></div><div>Thanks for you response Curtis,</div><div><span>Florian<br><div>
<span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div style="margin:0px"><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="margin:0px"><br></div><div style="margin:0px">MPI of Molecular Cell Biology and Genetics</div><div style="margin:0px">Group: Gene Myers<br>Pfotenhauer Strasse 108<br>01307 Dresden </div><div style="margin:0px">Germany<br></div><br></div></span></div></span></div></span></div></span><div style="margin:0px">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="margin:0px"><br></div></span><br>
</div>
<br></span><div><div><div><blockquote type="cite"><div>On 13 May 2015, at 20:37, Curtis Rueden <<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>> wrote:</div><br><div><div dir="ltr">Hi Florian,<div><br></div><div><div>> We would love to see the 3D Viewer and ClearVolume to coexist in Fiji.</div><div>> However, for this to become reality we do face the problem of</div><div>> mismatching dependencies. 3D Viewer depends on Java 3D >= 1.5 (Jogl</div><div>> 1), while ClearVolume depends on Jogl 2.2.4.</div></div><div><br></div><div>I have recently been working on updating ImageJ to use the JOGL version of Java 3D 1.6, currently in prerelease.</div><div><br></div><div>This issue has the details so far:</div><div><a href="https://github.com/imagej/imagej/issues/120" target="_blank">https://github.com/imagej/imagej/issues/120</a><br></div><div><br></div><div>In short, there is already an experimental version of Fiji that bundles JOGL 2.2, the Java 3D 1.6 fork using it [1], and an updated version of the 3D Viewer that removes some of the "old Java 3D" cruft.<br></div><div><br></div><div>So far, it seems to work pretty well. The plan is to upgrade Fiji across the board, so that Java 3D no longer has to be installed into the JRE, but rather can ship with ImageJ just like any other dependency.</div><div><br></div><div><div><div>> 1. 3D Viewer gets upgraded to the latest Java3D which is based on Jogl</div><div>> 2. (see <a href="https://github.com/hharrison/java3d-core" target="_blank">https://github.com/hharrison/java3d-core</a>) If this version</div><div>> turns out to be 100% compatible, which it should, then the work to</div><div>> upgrade should be minimal.</div><div><br></div><div><div>Yep, right on. That's the option we're going for, and it seems to work well so far. More testing needed, though.</div></div><div><br></div><div>> 2. Since 3D Viewer downloads some dependencies on first start — we</div><div>> could do the same in CV + manually copy the right versions into place</div><div>> if a user attempts to start one of the two tools. This is ugly, but</div><div>> would at least allow switching between the 2 3D viewers somehow.</div><div><br></div><div>Actually, I would strongly prefer that ImageJ plugins not take the liberty of downloading more things outside of the ImageJ Updater paradigm. It makes things really messy. I'm glad we're moving toward a version of Java 3D where the 3D Viewer no longer needs to do that.</div><div><br></div><div>> 3. Classloader isolation — I know what the idea is, but I have no clue</div><div>> how we could set this up. This would be a somewhat clean solution but…</div><div>> is it really what we want?</div></div></div><div><br></div><div>OSGi. We've discussed it before. It's a big can of worms, which we have decided to avoid indefinitely, since it makes things too complicated for casual developers. Perhaps a compelling reason to use it will crop up, but not so far.</div><div><br></div><div>(BTW: KNIME already uses OSGi. So for people who need OSGi downstream, we already have a solution for that. We just don't want to require it for the core SciJava software stack.)</div><div><br></div><div>Regards,</div><div>Curtis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 12:31 PM, Florian Jug <span dir="ltr"><<a href="mailto:jug@mpi-cbg.de" target="_blank">jug@mpi-cbg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Curtis,<div><br></div><div>we write directly to you and are not posting this on some mailing list or more public place because we really want to have your opinion.</div><div>As soon as we come to some conclusion on this 'private channel' we are more then happy to write corresponding texts that live in the cloud and can be found by anybody interested in this topic.</div><div><br></div><div>We would love to see the 3D Viewer and ClearVolume to coexist in Fiji. However, for this to become reality we do face the problem of mismatching dependencies. </div><div>3D Viewer depends on Java 3D >= 1.5 (Jogl 1), while ClearVolume depends on Jogl 2.2.4.</div><div><br></div><div>We see X ways out, but we are happy to learn about other options if you see any:</div><div><ol><li>3D Viewer gets upgraded to the latest Java3D which is based on Jogl 2. (see <a href="https://github.com/hharrison/java3d-core" target="_blank">https://github.com/hharrison/java3d-core</a>) If this version turns out to be 100% compatible, which it should, then the work to upgrade should be minimal.</li><li>Since 3D Viewer downloads some dependencies on first start — we could do the same in CV + manually copy the right versions into place if a user attempts to start one of the two tools. This is ugly, but would at least allow switching between the 2 3D viewers somehow.</li><li>Classloader isolation — I know what the idea is, but I have no clue how we could set this up. This would be a somewhat clean solution but… is it really what we want?</li></ol></div><div><div>
<span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div style="margin:0px"><br></div><div style="margin:0px">We would be very interested to get a core-dump of your thoughts on this.</div><div style="margin:0px"><br></div><div style="margin:0px">Thanks,</div><div style="margin:0px">Loïc and Florian</div><div style="margin:0px"><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="margin:0px"><br></div><div style="margin:0px">MPI of Molecular Cell Biology and Genetics</div><div style="margin:0px">Group: Gene Myers<br>Pfotenhauer Strasse 108<br>01307 Dresden </div><div style="margin:0px">Germany<br></div><br></div></span></div></span></div></span></div></span><div style="margin:0px">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </div><div style="margin:0px"><br></div></span><br>
</div>
<br></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>