-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
最新的greys-1.7.6.5-bin.zip 是用jdk9编译的把?java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer #219
Comments
plasma-umass/doppio#497 And then you try to run this on JDK8 you get exactly this error. Java-Workaround: Just cast your ByteBuffer to Buffer before calling flip()... i.e. ((Buffer)byteBuffer).flip(). Then you can compile your project with JDK9 and have it running on JDK8. Note: This is not really related to this project, I only use pure java. But I found this problem report and thought you might be interested in a workaround for this. |
非常抱歉,我立即解决!! 题外话,这个错误挺有意思,我以为在pom中指定了1.6就会万事大吉,但的确没有考虑过这个场景,学习了!! <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build> 结论:下次我还是得在本机装一个JDK6,哈哈哈; |
搞定了 |
那个pom只能指定编译出来的class文件 |
最新的greys-1.7.6.5-bin.zip 是用jdk9编译的把?
好奇怪,之前好的突然就这样了,改java path也不行
The text was updated successfully, but these errors were encountered: