Ticket #42 (closed task: fixed)
Expected resource locations for UoM API?
| Reported by: | jbartels | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Keywords: | formatting | Cc: |
Description
I'm attempting to use the UoM API and I am having some difficulty with the initialization.
I'm attempting to use a very simple case:
Unit unit = UnitFormat.getInstance().parse("some unit string");
I am getting an error
java.lang.Error: No service provider found for org.unitsofmeasure.util.UnitFormatProvider
at org.unitsofmeasure.util.UnitFormat.findJarServiceProvider(UnitFormat.java:173)
at org.unitsofmeasure.util.UnitFormat.<clinit>(UnitFormat.java:51)
I looked at UnitFormat?.java and it appears to be using a resource loader looking in META-INF/services. I placed the UoM JAR in that path in my project and still no luck.
Where should the UoM JARs be located within a project so that the resources can be found??
Change History
Note: See
TracTickets for help on using
tickets.
