<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:wsr@nih.gov" title="Wayne Rasband <wsr@nih.gov>"> <span class="fn">Wayne Rasband</span></a>
</span> changed
<a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - Compile and Run Command not currently supported in version 1.49p"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1012">bug 1012</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>CONFIRMED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>wsr@nih.gov
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - Compile and Run Command not currently supported in version 1.49p"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1012#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - Compile and Run Command not currently supported in version 1.49p"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1012">bug 1012</a>
from <span class="vcard"><a class="email" href="mailto:wsr@nih.gov" title="Wayne Rasband <wsr@nih.gov>"> <span class="fn">Wayne Rasband</span></a>
</span></b>
<pre>I get the following exception when I copy the Red_And_Blue.java plugin included
with ImageJ into Fiji.app/plugins and try to compile it in Fiji using
Plugins>Compile and Run. Plugins>Compile and Run works as expected in ImageJ
1.49p.
ImageJ (Fiji Is Just) ImageJ 2.0.0-rc-24/1.49p; Java 1.8.0_25 [64-bit]; Mac OS
X 10.10.1; 52MB of 6983MB (<1%)
java.lang.Exception: Could not compile
/Applications/Fiji.app/plugins//Red_And_Blue.java:
/Applications/Fiji.app/plugins/Red_And_Blue.java:8: cannot access
java.lang.Object
bad class file:
ZipFileIndexFileObject[/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]
class file has wrong version 52.0, should be 50.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
public class Red_And_Blue implements PlugIn {
^
at fiji.scripting.java.Refresh_Javas.compile(Refresh_Javas.java:369)
at fiji.scripting.java.Refresh_Javas.compile(Refresh_Javas.java:320)
at fiji.scripting.java.Refresh_Javas.compile(Refresh_Javas.java:313)
at fiji.scripting.java.Refresh_Javas.compileAndRun(Refresh_Javas.java:105)
at fiji.scripting.java.Refresh_Javas.runScript(Refresh_Javas.java:71)
at common.RefreshScripts.run(RefreshScripts.java:287)
at fiji.scripting.java.Refresh_Javas.run(Refresh_Javas.java:61)
at ij.IJ.runUserPlugIn(IJ.java:199)
at ij.IJ.runPlugIn(IJ.java:163)
at ij.IJ.runPlugIn(IJ.java:152)
at fiji.Compile_and_Run.run(Compile_and_Run.java:23)
at ij.IJ.runUserPlugIn(IJ.java:199)
at ij.IJ.runPlugIn(IJ.java:163)
at ij.Executer.runCommand(Executer.java:131)
at ij.Executer.run(Executer.java:64)
at java.lang.Thread.run(Thread.java:745)
I get this exception if I open Red_And_Blue.java in the Script Editor and try
to compile and run by clicking on the "Run" button:
Started Red_And_Blue.java at Sun Mar 01 08:56:17 EST 2015
Compiling 1 file in
/var/folders/sj/hs9p4kxn1z9brlkf83ycm4qr0000gn/T/java4446364991685643541
/var/folders/sj/hs9p4kxn1z9brlkf83ycm4qr0000gn/T/java4446364991685643541/src/main/java/Red_And_Blue.java:8:
cannot access java.lang.Object
bad class file:
ZipFileIndexFileObject[/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]
class file has wrong version 52.0, should be 50.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
public class Red_And_Blue implements PlugIn {
^
org.scijava.minimaven.JavaCompiler$CompileError: Compile error: 1
at org.scijava.minimaven.JavaCompiler.call(JavaCompiler.java:80)
at org.scijava.minimaven.MavenProject.build(MavenProject.java:477)
at org.scijava.minimaven.MavenProject.build(MavenProject.java:406)
at org.scijava.minimaven.MavenProject.build(MavenProject.java:391)
at org.scijava.plugins.scripting.java.JavaEngine.eval(JavaEngine.java:154)
at org.scijava.script.ScriptModule.run(ScriptModule.java:175)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:167)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:126)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:65)
at
org.scijava.thread.DefaultThreadService$2.call(DefaultThreadService.java:164)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>