kendzi3d icon indicating copy to clipboard operation
kendzi3d copied to clipboard

Jogl complains about com/jogamp/opengl/GLEventListener when plugin loads

Open softgrow opened this issue 5 years ago • 1 comments

==== What steps will reproduce the problem?

  1. Run JOSM and install Kenzi3D plugin
  2. Restart JOSM

==== What is the expected result? All Plugins load

==== What happens instead? Kenzi3d plugin does not load

==== Please provide any additional information below. Attach a screenshot if possible.

{{{ Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-06-03 00:05:30 +0200 (Mon, 03 Jun 2019) Revision:15155 Build-Date:2019-06-02 22:10:24 URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (15155 en_AU) Mac OS X 10.14.5 OS Build number: Mac OS X 10.14.5 (18F132) Memory Usage: 301 MB / 2048 MB (64 MB allocated, but free) Java version: 11.0.3+7, AdoptOpenJDK, OpenJDK 64-Bit Server VM Screen: Display 69731840 1280x800 Maximum Screen Size: 1280x800 VM arguments: [-Djava.library.path=/Applications/JOSM.app/Contents/MacOS, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DApplicationDirectory=${HOME}/Applications, -DAutosavedInformationDirectory=${HOME}/Library/Autosave Information, -DDesktopDirectory=${HOME}/Desktop, -DDownloadsDirectory=${HOME}/Downloads, -DMoviesDirectory=${HOME}/Movies, -DMusicDirectory=${HOME}/Music, -DPicturesDirectory=${HOME}/Pictures, -DSharedPublicDirectory=${HOME}/Public, -DSystemLibraryDirectory=/Library, -DSystemApplicationSupportDirectory=/Library/Application Support, -DSystemCachesDirectory=/Library/Caches, -DSystemApplicationDirectory=/Applications, -DSystemUserDirectory=/Users, -DUserHome=${HOME}, -DSandboxEnabled=true, -DLaunchModifierFlags=0, -DLaunchModifierFlagCapsLock=false, -DLaunchModifierFlagShift=false, -DLaunchModifierFlagControl=false, -DLaunchModifierFlagOption=false, -DLaunchModifierFlagCommand=false, -DLaunchModifierFlagNumericPad=false, -DLaunchModifierFlagHelp=false, -DLaunchModifierFlagFunction=false, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]

Plugins:

  • apache-commons (34908)
  • ejml (34908)
  • geotools (34908)
  • jaxb (35014)
  • jogl (1.2.3)
  • jts (34908)
  • kendzi3d
  • kendzi3d-resources (0.0.2)
  • log4j (34908)
  • opendata (34997)
  • routing (${version.entry.commit.revision})
  • turnrestrictions (34977)
  • utilsplugin2 (34977)

Last errors/warnings:

  • W: No configuration settings found. Using hardcoded default values for all pools.
  • E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plug-in kendzi3d. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: com/jogamp/opengl/GLEventListener. Cause: java.lang.ClassNotFoundException: com.jogamp.opengl.GLEventListener
  • W: Disable plug-in - Could not load plug-in 'kendzi3d'. Delete from preferences? }}}

softgrow avatar Jun 29 '19 11:06 softgrow

Seems to be something to do with the JRE, 11.0.3+7, AdoptOpenJDK

Following instructions at https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-os-x

Disable the JRE by sudo mv /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jre/Contents/Info.plist /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jre/Contents/Info.plist.disabled

Install AdoptOpenJDK 8

JOSM now loads Kenzi3d plugin, can start camera etc

softgrow avatar Jun 29 '19 12:06 softgrow