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

JDK11 build fails during "exploded-image-optimize" target trying to invoke built Java #1478

Closed
andrew-m-leonard opened this issue Mar 19, 2018 · 3 comments

Comments

@andrew-m-leonard
Copy link
Contributor

During the exploded-image-optimize target of the build where the built jdk Java gets called for the first time, it fails with the exception below.
It looks like src/java.base/share/native/libjava/jni_util.c is expecting an internal variable "fastEncoding" to have been set... but it isn't.

Exception in thread "main" java/lang/InternalError: platform encoding not initialized
	at java/io/UnixFileSystem.canonicalize0 (java.base@9/NativeMethod:4294967295)
	at java/io/UnixFileSystem.canonicalize (java.base@9/UnixFileSystem.java:176)
	at java/io/File.getCanonicalPath (java.base@9/File.java:618)
	at java/io/File.getCanonicalFile (java.base@9/File.java:643)
	at jdk/internal/loader/URLClassPath.toFileURL (java.base@9/URLClassPath.java:355)
	at jdk/internal/loader/URLClassPath.<init> (java.base@9/URLClassPath.java:286)
	at jdk/internal/loader/ClassLoaders.<clinit> (java.base@9/ClassLoaders.java:77)
	at java/lang/ClassLoader.initializeClassLoaders (java.base@9/ClassLoader.java:181)
	at java/lang/Thread.initialize (java.base@9/Thread.java:422)
	at java/lang/Thread.<init> (java.base@9/Thread.java:153)
@DanHeidinga
Copy link
Member

See #1460

@pshipton
Copy link
Member

#1460 is merged, but another blocker #1466 is still pending.

@pshipton
Copy link
Member

#1439 is opened to cover #1466 so I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants