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

I've exported a world to osm from OpenStreetMap, and I wanted to open it in osm2world, but it won't open. I have java 17.01 installed and every time I start the program in CMD, it throws up this message:

C:\Users\User\Downloads\OSM2World-latest-bin>java -Xmx2G -jar OSM2World.jar No parameters, running graphical interface. If you want to use the command line, use the --help parameter for a list of available parameters. No --config parameter, using default style (standard.properties). FPSAnimator P1:Thread[main-FPSAWTAnimator-Timer0,5,main]: Task[thread Thread[main-FPSAWTAnimator-Timer0,5,main], stopped false, paused false shouldRun true, shouldStop false -- started true, animating true, paused false, drawable 1, drawablesEmpty false] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:169) at javax.media.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:420) at javax.media.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1186) at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:572) at java.desktop/java.awt.Container.addNotify(Container.java:2804) at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839) at java.desktop/java.awt.Container.addNotify(Container.java:2804) at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839) at java.desktop/java.awt.Container.addNotify(Container.java:2804) at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839) at java.desktop/javax.swing.JRootPane.addNotify(JRootPane.java:729) at java.desktop/java.awt.Container.addNotify(Container.java:2804) at java.desktop/java.awt.Window.addNotify(Window.java:791) at java.desktop/java.awt.Frame.addNotify(Frame.java:495) at java.desktop/java.awt.Window.pack(Window.java:829) at org.osm2world.viewer.view.ViewerFrame.<init>(ViewerFrame.java:123) at org.osm2world.console.OSM2World.executeArgumentsGroup(OSM2World.java:210)

My only guess is that Java isn't starting a graphics library or something. Could it be that I don't have a newer version of java installed? Any help would be greatly appreciated. (P.S. I used the batch file to start it, and also tried the .jar file)

asked 23 Jan '22, 18:19

Youdubham's gravatar image

Youdubham
21112
accept rate: 0%


The error is caused by the JOGL library that OSM2World relies on for OpenGL rendering.

At the time of writing, that library still requires Java 8 (not "Java 8 or newer"), so your first step to get it to work would be to install this older version of Java.

Alternatively, you might be able to avoid the use of OpenGL (and therefore the graphical interface of OSM2World) by running a conversion entirely from the command line with suitable input & output parameters. But that depends on what you want to achieve.

permanent link

answered 23 Jan '22, 20:15

Tordanik's gravatar image

Tordanik
12.0k15106147
accept rate: 35%

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×76
×48
×8
×3

question asked: 23 Jan '22, 18:19

question was seen: 2,264 times

last updated: 23 Jan '22, 20:15

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