User Tools

Site Tools


documents:120329javatips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documents:120329javatips [2016/09/26 23:46] – [Running single instance ImageJ (in OSX)] kotadocuments:120329javatips [2020/11/26 09:11] (current) – external edit 127.0.0.1
Line 11: Line 11:
  
 I encountered this message when there is a conflict by having two same jar files in the class path. Removing one of them should over come this error. There seems to be more to it as an explanation, and for that [[http://stackoverflow.com/questions/2877262/java-securityexception-signer-information-does-not-match|refer to this page]] or the quote below.   I encountered this message when there is a conflict by having two same jar files in the class path. Removing one of them should over come this error. There seems to be more to it as an explanation, and for that [[http://stackoverflow.com/questions/2877262/java-securityexception-signer-information-does-not-match|refer to this page]] or the quote below.  
-<quote>+<blockquote>
 This happens when classes belonging to the same package are loaded from different JAR files, and those JAR files have signatures signed with different certificates - or, perhaps more often, at least one is signed and one or more others are not (which includes classes loaded from directories since those AFAIK cannot be signed). This happens when classes belonging to the same package are loaded from different JAR files, and those JAR files have signatures signed with different certificates - or, perhaps more often, at least one is signed and one or more others are not (which includes classes loaded from directories since those AFAIK cannot be signed).
  
 So either make sure all JARs (or at least those which contain classes from the same packages) are signed using the same certificate, or remove the signatures from the manifest of JAR files with overlapping packages. So either make sure all JARs (or at least those which contain classes from the same packages) are signed using the same certificate, or remove the signatures from the manifest of JAR files with overlapping packages.
-</quote>+</blockquote>
  
 ===== Extract compiler version from a class file ===== ===== Extract compiler version from a class file =====
Line 28: Line 28:
 javap -verbose MyClass | head javap -verbose MyClass | head
 </code> </code>
-<quote>+<blockquote>
 Java 1.2 uses major version 46\\ Java 1.2 uses major version 46\\
 Java 1.3 uses major version 47\\ Java 1.3 uses major version 47\\
Line 35: Line 35:
 Java 6 uses major version 50\\ Java 6 uses major version 50\\
 Java 7 uses major version 51\\ Java 7 uses major version 51\\
-</quote>+</blockquote>
  
 ** JAR file ** ** JAR file **
Line 159: Line 159:
  
 By the way, as of 20150620: By the way, as of 20150620:
-<quote>+<blockquote>
 The current ImageJ Launcher only looks for Java SE installations in /Library/Java/JavaVirtualMachines The current ImageJ Launcher only looks for Java SE installations in /Library/Java/JavaVirtualMachines
-</quote>+</blockquote>
 [[https://groups.google.com/forum/#!topic/fiji-devel/iftcQAEdPuA]] [[https://groups.google.com/forum/#!topic/fiji-devel/iftcQAEdPuA]]
 ===== Generating Javadoc ===== ===== Generating Javadoc =====
documents/120329javatips.1474933604.txt.gz · Last modified: 2016/09/26 23:46 by kota

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki