NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, I'm trying to run osmosis(with mapsforge writer) on Yosemite, but I have encountered a problem. I followed the tutorials, but when I try to run the command I get this:

    GRAVE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to load plugin class ({\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170).
    at org.openstreetmap.osmosis.core.TaskRegistrar.loadPluginClass(
    at org.openstreetmap.osmosis.core.TaskRegistrar.loadPlugin(
    at org.openstreetmap.osmosis.core.TaskRegistrar.loadBuiltInPlugins(
    at org.openstreetmap.osmosis.core.TaskRegistrar.initialize(
    at org.openstreetmap.osmosis.core.Osmosis.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(
    at org.codehaus.classworlds.Launcher.main(
Caused by: java.lang.ClassNotFoundException: {\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(
    at org.openstreetmap.osmosis.core.TaskRegistrar.loadPluginClass(
    ... 14 more

I have no clue what this cocoasubrtf class is, and I could not find any help by googling (quite extensively). Any Ideas?

UPDATE: I have tried running osmosis on Windows as well, and I get the exact same error.

UPDATE 2: I have been suggested to use osmosis 0.44 as a fresh install, and that somehow worked :)

asked 18 Aug '15, 15:09

ZappyKeyboard's gravatar image

accept rate: 0%

edited 19 Aug '15, 19:45


Try asking at the osmosis-dev mailing list although it seems to be pretty low traffic.

(19 Aug '15, 10:28) scai ♦

I'd also add details of what tutorials you followed and what the output of "java -version" from the command line is.

(19 Aug '15, 11:23) SomeoneElse ♦

I followed the quick install guide on, but I should mention that I had to tinker a bit before making it work: at first it didnt see the jre path, then I had to modify the classworlds pointer in the osmosis file, because it was wrong. I have both java 8 and 7 on my Windows PC.

For mac, a first I downloaded the zipfile and tried running it from there (I used the guide on the wiki). Then I tried downloading osmosis with homebrew. On mac I only have java 8 (for work). Should I try to download java 7 and see if that works?

terminal output on mac: java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

It's especially odd to me that I get the same error on both machines.

(19 Aug '15, 11:37) ZappyKeyboard

... maybe you can also ask (or do an intensive search for "osmosis" there before) on the mapsforge mailinglist,


(19 Aug '15, 16:41) stephan75

It looks like you somehow managed to get RTF encoded text into a context where plain text was expected (all that "{\rtf1\ansi..." stuff smells of RTF). Editing some source or config file with and accidentally saving as RTF, perhaps?

(21 Aug '15, 07:40) turepalsson

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Aug '15, 15:09

question was seen: 3,166 times

last updated: 21 Aug '15, 07:40

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum