Ticket #1626 (closed defect: duplicate)

Opened 7 years ago

Last modified 7 years ago

Sezpoz error on Windows

Reported by: bdezonia Owned by: dscho
Priority: major Milestone: imagej2-b7-ndim-data
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1207


During startup code of ImageJ2 on Windows there are multiple exceptions related to SezPoz that are thrown. They all have the following signature:

java.lang.ClassNotFoundException: com.sun.tools.apt.Main

at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at imagej.util.CheckSezpoz.fix(CheckSezpoz.java:368)
at imagej.util.CheckSezpoz.checkDirectory(CheckSezpoz.java:158)
at imagej.util.CheckSezpoz.check(CheckSezpoz.java:122)
at imagej.util.CheckSezpoz.check(CheckSezpoz.java:108)
at imagej.ImageJ.<init>(ImageJ.java:213)
at imagej.ImageJ.<init>(ImageJ.java:171)
at imagej.ImageJ.<init>(ImageJ.java:161)
at imagej.Main.launch(Main.java:59)
at imagej.Main.main(Main.java:74)

Change History

comment:1 Changed 7 years ago by dscho

That is not all there is to it, right?

1) I suspect you run this inside Eclipse, not from a regular Imagej.app/ directory, and

2) you asked Eclipse to run this with the *JRE* rather than the *JDK*.

If so, we should probably catch the Error and suggest to the user to run with the JDK instead since we cannot guarantee correct artifacts otherwise (and endless frustration on both their and our sides would ensue).

comment:2 Changed 7 years ago by bdezonia

Yes, I was running from within Eclipse on Windows and only with the JRE. I was doing a quick build to test some code.

comment:3 Changed 7 years ago by bdezonia

  • Status changed from new to reviewing

dscho, please associated with some feature ticket

comment:4 Changed 7 years ago by dscho

  • Blocking 1207 added

This is not really a bug, but it was a PEBCAK. Still, I can add code to point that out better.

comment:5 Changed 7 years ago by dscho

  • Status changed from reviewing to closed
  • Resolution set to duplicate

This is a duplicate of ticket #1560.

Note: See TracTickets for help on using tickets.