I’m unable to enable Bitbucket Plugin on my localhost dev. machine.
I follow this guide of Client-Side Extension: Getting Started - Client-side Extensions
When I go to manage apps → Bitbucket Plugin → Enable, in logs I receive following error:
c.a.plugin.osgi.factory.OsgiPlugin Detected an error (BundleException) enabling the plugin ‘com.atlassian.myapp.bitbucket-plugin-template’ :
Unable to resolve com.atlassian.myapp.bitbucket-plugin-template (R 93.0): missing requirement [com.atlassian.myapp.bitbucket-plugin-template (R 93.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=9.0))
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.myapp.bitbucket-plugin-template
Looking at that error it looks like there is a Java version (the plugin is expecting Java 9 or there is a dependency that is) and/or dependency discrepancy with your plugin.
Please verify the right version of Java is being used to compile/build your plugin and there is no issue with any dependency that your plugin is using with regard to the Java version.
Bitbucket Data Center Developer
Hi @ChristopherKochovski pherKochovski,
Thank you for your response.
In the documnetation, it is written that I need to use Java JDK 1.8
I have it on my pc. This is the java version I use:
java version “1.8.0_341”
Java™ SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot™ Client VM (build 25.341-b10, mixed mode)
C:\Program Files (x86)\Java\jdk1.8.0_341
Can you suggest?
I installed the latest java JDK 1.9 and same issue occurs. Please suggest.
java version “9.0.4”
Java™ SE Runtime Environment (build 9.0.4+11)
Java HotSpot™ 64-Bit Server VM (build 9.0.4+11, mixed mode)
The Java 8 version looks fine. Please do not use Java 9 as it is unsupported; see the Bitbucket supported platforms page for more details here
Are you aware of any dependency that your plugin is using that is/was built with Java 9? Or is there a specific version that you are importing that requires Java 9 potentially? Other community members had the same issue regarding dependencies, see here.
I’m using java 1.8 and run the template provided by Atlassian: email@example.com:atlassianlabs/bitbucket-client-side-extensions-template.git
I don’t make any changes. Just want that this template will work.
Also, I read the link which you provided. Which files should I update?