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/05/24 12:46] – external edit 127.0.0.1 | 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 184: | Line 184: | ||
</ | </ | ||
+ | |||
+ | ===== ImageJ ===== | ||
+ | ==== Running single instance ImageJ (in OSX) ==== | ||
+ | |||
+ | |||
+ | Though there is an option available in windows, there is none in OSX and here is the way to run a ImageJ with socket listener running, that no second ImageJ instance is created. This is convenient for feeding your macro code to the running ImageJ. | ||
+ | |||
+ | < | ||
+ | java -jar / | ||
+ | </ |
documents/120329javatips.1464094015.txt.gz · Last modified: 2016/09/26 23:45 (external edit)