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

Exception in thread "main" java.lang.IncompatibleClassChangeError #5

Open
cybernetics opened this issue Sep 22, 2016 · 2 comments
Open

Comments

@cybernetics
Copy link
Contributor

javac -version
javac 9-ea

java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+136)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+136, mixed mode)

java -jar try-artifact-0.2.0.jar
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface jdk.jshell.SourceCodeAnalysis$CompletionInfo, but class was expected
at net.unit8.erebus.tryartifact.tool.TryJShellTool.processSource(TryJShellTool.java:1877)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.processSourceCatchingReset(TryJShellTool.java:614)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.run(TryJShellTool.java:594)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.resetState(TryJShellTool.java:531)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.start(TryJShellTool.java:367)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.start(TryJShellTool.java:362)
at net.unit8.erebus.TryArtifact.main(TryArtifact.java:17)

@bhagatrawat
Copy link

Same problem here.
Java Version: build 9-ea+153-jigsaw-nightly-h6003-20170124
OS: Windows 10

$.\jdk-9\bin\java -jar try-artifact-0.2.0.jar

Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface jdk.jshell.SourceCodeAnalysis$CompletionInfo, but class was expected
at net.unit8.erebus.tryartifact.tool.TryJShellTool.processSource(TryJShellTool.java:1877)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.processSourceCatchingReset(TryJShellTool.java:614)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.run(TryJShellTool.java:594)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.resetState(TryJShellTool.java:531)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.start(TryJShellTool.java:367)
at net.unit8.erebus.tryartifact.tool.TryJShellTool.start(TryJShellTool.java:362)
at net.unit8.erebus.TryArtifact.main(TryArtifact.java:17)

@bhagatrawat
Copy link

bhagatrawat commented Apr 27, 2017

  • Fixed " java.lang.IncompatibleClassChangeError" exception and you can find the modified code at try-artifact
  • Added /cls command to clear the JShell Console.

Please download from try-artifactv0.2.1

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

2 participants