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 Runtime only recognizes class file versions up to 52.0 #4

Open
neumachen opened this issue Mar 28, 2019 · 6 comments
Open

Java Runtime only recognizes class file versions up to 52.0 #4

neumachen opened this issue Mar 28, 2019 · 6 comments

Comments

@neumachen
Copy link

╰─$ dcomp run --rm okta-aws
Exception in thread "main" java.lang.UnsupportedClassVersionError: javafx/application/Application has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at com.okta.tools.saml.OktaSaml.getSamlResponse(OktaSaml.java:41)
        at com.okta.tools.OktaAwsCliAssumeRole.doRequest(OktaAwsCliAssumeRole.java:130)
        at com.okta.tools.OktaAwsCliAssumeRole.run(OktaAwsCliAssumeRole.java:100)
        at com.okta.tools.awscli.main(awscli.java:41)
@neumachen
Copy link
Author

How can this be fixed?

@lucasteligioridis
Copy link
Contributor

Is this an issue with the version of the JDK this image is based on?

Can you give a little bit more information as to what you are doing here please?

@mcameron
Copy link

In ~/.okta/config.properties what is your OKTA_BROWSER_AUTH setting?

@neumachen
Copy link
Author

@Lucas044 I think so. I'm just running the image and that error pops up.

@neumachen
Copy link
Author

@mcameron I don't have one?

@lucasteligioridis
Copy link
Contributor

@magicalbanana what does your ~/.okta/config.properties look like?
Or are you passing in environment variables?

At a minimum you need the OKTA_ORG and the OKTA_AWS_APP_URL variables to be passed into the container as stated in the documentation:
https://github.com/contino/docker-okta-aws#environment-variables

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

3 participants