ImageJ2 on OpenVMS

Tags: #<Tag:0x00007fb882fba5f8>


I’m trying to get Fiji-ImageJ running on my OpenVMS systems. Ofcourse there is no launcher present so I tried to run the .jar files directly.

I got some succes with
java -Xmx256m -Djava.awt.headless=false -d64 -jar [.jar]ij-1.51l-SNAPSHOT.jar

It looks more or less the same as on my linux system, but I’m bothered by the 1.5 : is this realy ImageJ2 or is this a campatibility mode?
What is the proper .jar file to run? I also tried ImageJ-2.0.0-rc59.jar but that one gave an error



Welcome to the forum, @joukj!

Sorry for my ignorance, but does OpenVMS include a POSIX-compliant shell? If so, I suggest using the launch script. And in that case, the instructions for the Raspberry Pi are probably pretty close to on target for OpenVMS as well. If they work for you, let’s create an OpenVMS page in Category:Platforms and add it to that section of the wiki.

Yes, the invocation you already tried simply runs ImageJ 1.x, without the ImageJ2 parts.

If you need a very simple one-liner, you could try this:

java -cp 'jars/*:jars/bio-formats/*:plugins/*' net.imagej.Main


Yes, there is a port of the bash. I’ll try that one first…

      to be continued



Hmm… not very sucessfully; I’m still missing things:

gigue-jj) bash -c
ls: cannot access /$disk16/JOUKJ/public/imagej/*.jar: no such file or directory
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is
deprecated and will likely be removed in a future release
Error: Could not find or load main class net.imagej.updater.ClassLauncher


I did not find the ij-launcher*.jar: on my machine…


When I use the suggested simple liner I get Errors:

12:23:36,668 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
12:23:36,670 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
12:23:36,672 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar!/logback.xml]
12:23:36,738 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7777e10 - URL [jar:file:/$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar!/logback.xml] is not of type file
12:23:36,740 |-ERROR in ch.qos.logback.classic.joran.JoranConfigurator@6c3023d3 - Could not open URL [jar:file:/$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar!/logback.xml]. /$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar (i/o error)
	at /$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar (i/o error)
	at 	at Method)
	at 	at<init>(
	at 	at<init>(
	at 	at java.util.jar.JarFile.<init>(
	at 	at java.util.jar.JarFile.<init>(
	at 	at<init>(
	at 	at
	at 	at
	at 	at
	at 	at
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
	at 	at ch.qos.logback.classic.util.ContextInitializer.configureByResource(
	at 	at ch.qos.logback.classic.util.ContextInitializer.autoConfig(
	at 	at org.slf4j.impl.StaticLoggerBinder.init(
	at 	at org.slf4j.impl.StaticLoggerBinder.<clinit>(
	at 	at org.slf4j.LoggerFactory.bind(
	at 	at org.slf4j.LoggerFactory.performInitialization(
	at 	at org.slf4j.LoggerFactory.getILoggerFactory(
	at 	at org.slf4j.LoggerFactory.getLogger(
	at 	at org.slf4j.LoggerFactory.getLogger(
	at 	at loci.formats.ImageReader.<clinit>(
	at 	at
	at 	at<init>(
	at 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at 	at java.lang.reflect.Constructor.newInstance(
	at 	at java.lang.Class.newInstance(
	at 	at org.scijava.plugin.PluginInfo.createInstance(
	at 	at org.scijava.plugin.DefaultPluginService.createInstance(
	at 	at org.scijava.plugin.DefaultPluginService.createInstances(
	at 	at org.scijava.plugin.DefaultPluginService.createInstancesOfType(
	at 	at$
	at 	at org.scijava.thread.DefaultThreadService$
	at 	at java.util.concurrent.Executors$
	at 	at
	at 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at 	at java.util.concurrent.ThreadPoolExecutor$
	at 	at

#6 /$DISK16/JOUKJ/PUBLIC/IMAGEJ/FIJI.APP-20170407/jars/scijava-config-2.0.1.jar (i/o error)

That suggests that your disk might be going bad. The file jars/scijava-config-2.0.1.jar cannot be read succesfully. What happens if you cp jars/scijava-config-2.0.1.jar ~ or some such? Does it work, or also give an error?

That is a bizarre error: the JAR previously called ij-launcher was renamed to imagej-launcher a long time ago. If you execute ls jars/ij-[a-z]* you should see no files listed. Otherwise, you have a very old version of Fiji!