<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Exception when running from the command line"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=964">964</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Exception when running from the command line
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Fiji
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Generic
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>imagej-bugs@imagej.net
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hinerm@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When running Fiji from the command line, I get an exception in the CodeHacker.
This is interfering with command line options, such as running scripts directly
(see <a href="https://groups.google.com/forum/#!topic/fiji-devel/QgucpfxRQ-s">https://groups.google.com/forum/#!topic/fiji-devel/QgucpfxRQ-s</a>).


---------------

log4j:WARN No appenders could be found for logger
(org.bushe.swing.event.EventService).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for more
info.
java.lang.IllegalArgumentException: Cannot modify method: public void run()
    at net.imagej.patcher.CodeHacker.insertAtTopOfMethod(CodeHacker.java:167)
    at
net.imagej.patcher.LegacyExtensions.injectHooks(LegacyExtensions.java:229)
    at net.imagej.patcher.LegacyInjector.inject(LegacyInjector.java:308)
    at net.imagej.patcher.LegacyInjector.injectHooks(LegacyInjector.java:109)
    at
net.imagej.patcher.LegacyEnvironment.initialize(LegacyEnvironment.java:101)
    at
net.imagej.patcher.LegacyEnvironment.applyPatches(LegacyEnvironment.java:495)
    at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:397)
    at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:376)
    at
net.imagej.legacy.DefaultLegacyService.<clinit>(DefaultLegacyService.java:124)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:357)
    at java.lang.Class.newInstance(Class.java:310)
    at
org.scijava.service.ServiceHelper.createServiceRecursively(ServiceHelper.java:302)
    at
org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:269)
    at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:231)
    at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:194)
    at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:166)
    at org.scijava.Context.<init>(Context.java:244)
    at org.scijava.Context.<init>(Context.java:203)
    at org.scijava.Context.<init>(Context.java:142)
    at org.scijava.Context.<init>(Context.java:98)
    at org.scijava.Context.<init>(Context.java:86)
    at net.imagej.ImageJ.<init>(ImageJ.java:82)
    at net.imagej.Main.launch(Main.java:61)
    at net.imagej.Main.main(Main.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:258)
    at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:184)
    at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:76)
Caused by: java.lang.IllegalArgumentException: No such class:
JavaScriptEvaluator
    at net.imagej.patcher.CodeHacker.getClass(CodeHacker.java:880)
    at net.imagej.patcher.CodeHacker.getMethod(CodeHacker.java:906)
    at net.imagej.patcher.CodeHacker.getBehavior(CodeHacker.java:896)
    at net.imagej.patcher.CodeHacker.insertAtTopOfMethod(CodeHacker.java:158)
    ... 34 more
Caused by: javassist.NotFoundException: JavaScriptEvaluator
    at javassist.ClassPool.get(ClassPool.java:450)
    at net.imagej.patcher.CodeHacker.getClass(CodeHacker.java:875)
    ... 37 more</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>