c-stranger c-stranger - 1 year ago 127
Java Question

missing java package ome.units

Sorry I'm completely new to java.
A java file referenced ome.units.UNITS, when I loaded the file I had warning "package ome.units" doesn't exist.
I'm curious, does the package ome.units belong to system or user implementation?
I googled ome.units but had no luck to find any helpful info.

Answer Source

You need to include/import the following dependency as Jon Skeet pointed out:

The ome-xml project contains the package ome.units.

You have a couple options…




compile 'org.openmicroscopy:ome-xml:5.3.1'


  1. Open Microscopy | Support | ome-xml | Download
  2. Open Microscopy | Bio Formats 5.2.4
  3. Bio-Formats components downloads
  4. OME-XML Java library | ome-xml.jar

Here is the source code via GitHub.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download