ubuntu 9.10 imagej "Plugins>Compile and Run..." does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagej (Debian) |
Fix Released
|
Unknown
|
|||
imagej (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: imagej
I upgraded from Ubuntu 9.04 (fresh install) to Ubuntu 9.10 just last night (great job, guys!). I opted to install the ImageJ package 1.43b-1ubuntu1 (http://
But when I select "Plugins>Compile and Run..." I get the error: "Unable to find the javac compiler, which comes with the Windows and Linux versions of ImageJ that include Java in the ImageJ/jre folder.<newline> java.home: /usr/lib/
So at this point, with apologies, it becomes confusing. I had been trying to get ImageJ running (same bug!) on 9.04, so my system's java use/preferences may have changed. So let me point out the following behaviours, for different choices of jre (using "sudo update-alternatives --config java" to toggle between different javas (javae??).
IF I CHOOSE "/usr/bin/gij-4.3" or "/usr/bin/gij-4.4", THEN I replicate Bug #471127. In this case, implementing the "hack" suggested by linuxed on that report/thread (editing "/usr/bin/imagej") has no effect and ImageJ will not launch from the Applications menu. Command-line launch gives the "Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.
IF I CHOOSE "/usr/lib/
I apologize if fixing Bug #471127 fixes this as well. But my guess is that perhaps the Ubuntu repository packaging has environment variables which aren't pointing in the correct place (I see that the package's imagej.jar has a "hack" in it from previous instances of this problem - found on the web...).
(Hopefully it will be possible to eventually just run ImageJ in all its functionality directly from the Applications menu...)
Changed in imagej (Debian): | |
status: | Unknown → Fix Released |
In my installation, in order to make it compile I had to do the following : jvm/java- 6-sun-1. 6.0.15/ lib/tools. jar to /usr/lib/ jvm/java- 6-sun-1. 6.0.15/ jre/lib/ ext/
- install package sun-java6-jdk
- copy /usr/lib/
then it worked !