Getting a bunch of startup errors when trying to run ES 6.3.2 on my mac

I was running, without issue, Elastic Search 7.4.0 which comes bundled with a JDK.
However, after downloading and attempting to run 6.3.2, I receive 12 errors with the following message:

Message: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")

and a 13th with this message

No implementation for org.elasticsearch.repositories.Repository$Factory annotated with @org.elasticsearch.common.inject.multibindings.Element(setName=,uniqueId=8) was bound.

I have the JDK installed... the following output is as follows.

java --version
java 13.0.1 2019-10-15
Java(TM) SE Runtime Environment (build 13.0.1+9)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

javac --version
javac 13.0.1

Does anyone have any thoughts?

@Nicholas_Hillier how you resolve that ?

Also getting same error and scenario is same also.

Already assigned execute permission to elastic search script but still getting same error.

echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home

Error details

1) An exception was caught and reported. Message: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
  at _unknown_
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
	at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
	at java.base/java.security.AccessController.checkPermission(AccessController.java:1036)
	at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)

	...
	...

2) An exception was caught and reported. Message: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
  at _unknown_
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
	at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
	at java.base/java.security.AccessController.checkPermission(AccessController.java:1036)
	at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)
	at java.base/java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1324)

	...
	...

3) No implementation for org.elasticsearch.repositories.Repository$Factory annotated with @org.elasticsearch.common.inject.multibindings.Element(setName=,uniqueId=1) was bound.
  at _unknown_

3 errors
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.1.3.jar:6.1.3]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.1.3.jar:6.1.3]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.1.3.jar:6.1.3]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.3.jar:6.1.3]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.3.jar:6.1.3]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.1.3.jar:6.1.3]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.1.3.jar:6.1.3]
Caused by: org.elasticsearch.common.inject.CreationException: Guice creation errors:

@Nicholas_Hillier @ehsaan_israr

I was getting the same issue with elastic 6.6.1 and java 13. I was able to resolve it by downgrading java to 12:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.