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

[Windows 11] JCDP realted exception #82

Closed
li-yifei opened this issue Apr 7, 2022 · 0 comments · Fixed by #105
Closed

[Windows 11] JCDP realted exception #82

li-yifei opened this issue Apr 7, 2022 · 0 comments · Fixed by #105

Comments

@li-yifei
Copy link

li-yifei commented Apr 7, 2022

OS Version
Windows 11

Web3j-CLI version

Version: 1.4.1
Build timestamp: 2021-02-16 20:28:46.190 UTC

Java version

openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)

Tried on OpenJDK 11, Oracle JDK 8 too but came to the same exception.
Maybe the JCDP library doesn't consider that Windows 11 is compatible with Windows 10

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.web3j.console.project.utils.ProjectCreationUtils.executeProcess(ProjectCreationUtils.java:62)
        at org.web3j.console.project.utils.ProjectCreationUtils.executeBuild(ProjectCreationUtils.java:49)
        at org.web3j.console.project.utils.ProjectCreationUtils.generateWrappers(ProjectCreationUtils.java:32)
        at org.web3j.console.project.AbstractProject.createProject(AbstractProject.java:65)
        at org.web3j.console.project.kotlin.KotlinProjectRunner.generateKotlin(KotlinProjectRunner.java:50)
        at org.web3j.console.project.kotlin.KotlinProjectCreatorRunner.createProject(KotlinProjectCreatorRunner.java:26)        at org.web3j.console.project.ProjectRunner.run(ProjectRunner.java:86)
        at org.web3j.console.project.NewProjectCommand.run(NewProjectCommand.java:55)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1729)
        at picocli.CommandLine.access$900(CommandLine.java:145)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2101)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2068)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1935)
        at picocli.CommandLine.execute(CommandLine.java:1864)
        at org.web3j.console.Web3jCommand.parse(Web3jCommand.java:113)
        at org.web3j.console.Web3j.main(Web3j.java:18)
Caused by: java.lang.UnsupportedOperationException: Your version of JCDP (v4.*) requires Windows 10 -- if you cannot upgrade, then use JCDP v3.*
        at com.diogonunes.jcdp.color.ColoredPrinter.<init>(ColoredPrinter.java:56)
        at com.diogonunes.jcdp.color.ColoredPrinter$Builder.build(ColoredPrinter.java:132)
        at org.web3j.console.openapi.utils.PrettyPrinter.<clinit>(PrettyPrinter.kt:24)
        ... 16 more
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

Successfully merging a pull request may close this issue.

1 participant