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

Java 9 does not support java.sql package outside of rt.jar #1

Open
jericks opened this issue Jul 16, 2018 · 0 comments
Open

Java 9 does not support java.sql package outside of rt.jar #1

jericks opened this issue Jul 16, 2018 · 0 comments

Comments

@jericks
Copy link

jericks commented Jul 16, 2018

GeoScript Groovy can't connect to PostGIS when the new hatbox jar is on the classpath.

https://groups.google.com/forum/#!topic/geoscript/Ff2vqftzhqQ

The error we get is:

java.lang.SecurityException: Prohibited package name: java.sql
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:662)
at java.lang.ClassLoader.defineClass(ClassLoader.java:761)

The solution appears to be removing the hatbox java.sql package and upgrading the java compiler version to 1.6. The interfaces were only there to support java 1.5.

I am pretty sure that GeoTools will run into the same problem. I can send a pull request if you would like.

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