Exception in thread “main” java.lang.UnsupportedClassVersionError: com/crunchify/Main : Unsupported
来源:互联网 发布:程序员一天工作几小时 编辑:程序博客网 时间:2024/06/06 03:30
https://crunchify.com/exception-in-thread-main-java-lang-unsupportedclassversionerror-comcrunchifymain-unsupported-major-minor-version-51-0/
完美解决!!!!
Recently I faced this wired exception while running my Java application on Linux environment.
The only difference I noticed in about Java Version. I compiled all code on my laptop with version 7 and Linux had version 6. java.lang.UnsupportedClassVersionError
happens because of a higher JDK during compile time and lower JDK during runtime.
Now how to solve it?
- Project -> Properties -> Java Compiler
- Enable project specific settings.
- Then select Compiler Compliance Level to 1.6 or 1.5, build and test your app.
And that’s all.
The version numbers mentioned above are the version of the JRE the class file is compatible with. There is another way to fix this problem – try bundling your own required JVM with your application and set JAVA_HOME from your startup.shscript.
Would love to know what you think. Chime in and share it as a comment. Don’t forget to share this guide!- Exception in thread “main” java.lang.UnsupportedClassVersionError: com/crunchify/Main : Unsupported
- Exception in thread "main" java.lang.UnsupportedClassVersionError:
- Exception in thread "main" java.lang.UnsupportedClassVersionError
- Exception in thread “main" java.lang.UnsupportedClassVersionError
- Exception in thread "main" java.lang.UnsupportedClassVersionError
- Exception in thread "main" java.lang.UnsupportedClassVersionError
- Exception in thread ”main“java.lang.UnsupportedClassVersionError
- Exception in thread "main" java.lang.UnsupportedClassVersionError
- Exception in thread "main" java.lang.UnsupportedClassVersionError
- Exception in thread "main" java.lang.UnsupportedClassVersionError:Unsupported major.minor version 52
- Exception in thread "main" java.lang.UnsupportedClassVersionError:Unsupported major.minor version 52
- Exception in thread "main" java.lang.UnsupportedClassVersionError: Filter(Unsupported major.minor ve
- 《Exception in thread "main" java.lang.UnsupportedClassVersionError: J_Area : Unsupported major.mino》
- Java命令行出错Exception in thread "main" java.lang.UnsupportedClassVersionError:
- Exception in thread "main" java.lang.UnsupportedClassVersionError 解决方法
- 命令行出错Exception in thread "main" java.lang.UnsupportedClassVersionError
- 命令行出错Exception in thread "main" java.lang.UnsupportedClassVersionError:
- Linux(centOS):Exception in thread "main" java.lang.UnsupportedClassVersionError***
- 翻转二叉树
- 设计模式之享元模式
- lintcode 整数排序 II | 快速排序(Java)
- web 学习笔记12-JSP技术
- 【剑指offer】用两个栈实现队列
- Exception in thread “main” java.lang.UnsupportedClassVersionError: com/crunchify/Main : Unsupported
- 工厂模式
- 代码之髓读后感——关于学习
- 链表(单向、双向、单向循环、双向循环)学习过程总结——有源代码、注释和示意图
- spring boot中spring.profiles.active的用法
- Mybatis整理
- springMVC 多图片多name上传
- SpringMVC WebSocket Apache代理 相关技术点总结
- 博客迁移通知