documents:120329javatips
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documents:120329javatips [2016/09/26 23:45] – single instance imageJ added kota | documents: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, | 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, | ||
- | <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, | So either make sure all JARs (or at least those which contain classes from the same packages) are signed using the same certificate, | ||
- | </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 | ||
</ | </ | ||
- | <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 / | The current ImageJ Launcher only looks for Java SE installations in / | ||
- | </quote> | + | </blockquote> |
[[https:// | [[https:// | ||
===== Generating Javadoc ===== | ===== Generating Javadoc ===== | ||
Line 185: | Line 185: | ||
+ | ===== ImageJ ===== | ||
==== Running single instance ImageJ (in OSX) ==== | ==== Running single instance ImageJ (in OSX) ==== | ||
documents/120329javatips.1474933547.txt.gz · Last modified: 2016/09/26 23:45 by kota