Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect install instructions #155

Open
Gregory365 opened this issue Dec 20, 2024 · 0 comments
Open

Incorrect install instructions #155

Gregory365 opened this issue Dec 20, 2024 · 0 comments

Comments

@Gregory365
Copy link

The issue / experience

The READ.ME links to the wiki, which says to go to java.com to download java, but that is java 8 which is incompatible with the project which uses java 21 (as far as I can tell). Error message: "org/openstreetmap/osmosis/core/Osmosis has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0"

What worked

  1. Uninstalled whatever current version of java I had using https://www.java.com/en/download/uninstalltool.jsp
  2. Installing Java21 JDK from https://www.oracle.com/java/technologies/downloads/#java21
  3. Modified the osmosis.bat script in notepad:
  4. Changed if defined JAVA_HOME goto findJavaFromJavaHome to goto findJavaFromJavaHome
  5. Changed set JAVA_HOME=%JAVA_HOME:"=% to set JAVA_HOME=C:/Program Files/Java/jdk-21
  6. Ran the osmisis.bat script (in PowerShell: C:\Program Files\osmosis-0.49.2\bin then .\osmosis.bat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant