We're Hiring!

How do you run the trunk importer?

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

How do you run the trunk importer?

Postby Steve » Wed Sep 30, 2009 11:54 pm

How do you run the importer client application from the trunk? I get an error when trying. Here are the steps I tried.

$ cd ~/omero/trunk
$ ./build.py
...
BUILD SUCCESSFUL
Total time: 5 minutes 13 seconds
$ cd ~/omero/trunk/components/tools/OmeroImporter
$ ./importer-gui
Starting OMERO.importer...
Suitable java version found [java = 1.6.0_0]
Configuring environment...
Java exec found in PATH. Verifying...
Loading OMERO.importer:
java -Xmx512m -cp "./OmeroImporter.jar:./libs/*.jar" -Djava.library.path="/home/steve/omero/trunk/components/tools/OmeroImporter" ome.formats.importer.gui.GuiImporter
Exception in thread "main" java.lang.NoClassDefFoundError: ome/formats/importer/gui/GuiImporter
Caused by: java.lang.ClassNotFoundException: ome.formats.importer.gui.GuiImporter
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: ome.formats.importer.gui.GuiImporter. Program will exit.
Exit from OMERO.importer complete
OMERO.importer TERMINATED.
Steve
 
Posts: 14
Joined: Thu Jul 23, 2009 9:11 pm

Re: How do you run the trunk importer?

Postby jmoore » Thu Oct 01, 2009 5:41 am

Almost right: to use the bash script from the build you need to change to: components/tools/OmeroImporter/target (i.e. one directory lower)

Cheers,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest