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

InstantiationException: jline.AnsiWindowsTerminal on WIndows #11

Open
lstocchi opened this issue Dec 11, 2023 · 0 comments · May be fixed by #12
Open

InstantiationException: jline.AnsiWindowsTerminal on WIndows #11

lstocchi opened this issue Dec 11, 2023 · 0 comments · May be fixed by #12
Assignees

Comments

@lstocchi
Copy link

When running kport init on WIndows i face this error

[ERROR] Failed to construct terminal; falling back to unsupported
java.lang.InstantiationException: jline.AnsiWindowsTerminal
        at [email protected]/java.lang.Class.newInstance(DynamicHub.java:639)
        at jline.TerminalFactory.getFlavor(TerminalFactory.java:205)
        at jline.TerminalFactory.create(TerminalFactory.java:96)
        at jline.TerminalFactory.get(TerminalFactory.java:180)
        at jline.TerminalFactory.get(TerminalFactory.java:186)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:244)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:236)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:224)
        at de.codeshelf.consoleui.prompt.reader.ConsoleReaderImpl.<init>(ConsoleReaderImpl.java:28)
        at de.codeshelf.consoleui.prompt.AbstractPrompt.<init>(AbstractPrompt.java:54)
        at de.codeshelf.consoleui.prompt.AbstractListablePrompt.<init>(AbstractListablePrompt.java:42)
        at de.codeshelf.consoleui.prompt.ListPrompt.<init>(ListPrompt.java:34)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.getListPrompt(ConsolePrompt.java:58)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.doPrompt(ConsolePrompt.java:134)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.prompt(ConsolePrompt.java:94)
        at org.eclipse.jkube.kport.commands.InitCommand.promptNextAction(InitCommand.java:139)
        at org.eclipse.jkube.kport.commands.InitCommand.run(InitCommand.java:91)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:40)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:129)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Caused by: java.lang.NoSuchMethodException: jline.AnsiWindowsTerminal.<init>()
        at [email protected]/java.lang.Class.getConstructor0(DynamicHub.java:3585)
        at [email protected]/java.lang.Class.newInstance(DynamicHub.java:626)
        ... 30 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
2 participants