Exception in thread "main" java.lang.UnsupportedClassVersionError:
這種錯誤是因為jdk版本太低的問題,設定環境變數,將較高版本的jdk路徑在前面
配置環境變數。在命令列輸入 sudo vi /etc/environment。新增紅色的部分。
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME/bin"
export JAVA_HOME=/usr/java/jdk1.7.0_25
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
輸入命令 source /etc/environment,使配置生效。相關文章
- Java報錯:Exception in thread "main" java.lang.UnsupportedClassVersionErrorJavaExceptionthreadAIError
- oracle dbca報Exception in thread mainOracleExceptionthreadAI
- Exception in thread "main" java.lang.NoClassDefFoundErrorExceptionthreadAIJavaError
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- Exception in thread "main" java.lang.NullPointerException: Cannot invokeExceptionthreadAIJavaNull
- Exception in thread "main" java.lang.ClassCastException: $Proxy13ExceptionthreadAIJavaAST
- jmeter報錯“Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]“JMeterExceptionthreadAI
- Exception in thread "main" java.lang.NoClassDefFoundError錯誤資訊(轉帖)ExceptionthreadAIJavaError
- Appcrawler 執行報錯 Exception in thread "main" java.lang.NullPointerExceptionAPPExceptionthreadAIJavaNull
- oracle dbca報Exception in thread main 問題解決一例OracleExceptionthreadAI
- Exception in thread "main" org.apache.hadoop.security.AccessControlException: Permission deniedUseExceptionthreadAIApacheHadoop
- Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnecExceptionthreadAIJavaErrorApacheHTTP
- Exception in thread “main“ java.lang.ArrayStoreException解決方案(記錄一下)ExceptionthreadAIJava
- Oracle 11g 安裝RAC時報錯'Exception in thread "main" java.lang'OracleExceptionthreadAIJava
- Exception in thread "main" java.lang.UnsatisfiedLinkError: i386/libawt.soExceptionthreadAIJavaError
- 解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.ExceptionthreadAIJavaElasticsearch
- Exception in thread "main" ,設定Oracle9i,10g環境變數ExceptionthreadAIOracle變數
- myeclipse執行tomcat報錯Exception in thread "main" java.lang.OutOfMemoryError: PermGen space...EclipseTomcatExceptionthreadAIJavaError
- 為何在JBoss中釋出Message-Driven Bean總出Exception in thread "main" javax.naming.NamBeanExceptionthreadAIJava
- 【原】MyEclipse8.5整合Tomcat7時啟動錯誤:Exception in thread “main” java.lang.NoClassDefFoundErrorEclipseTomcatExceptionthreadAIJavaError
- 請問錯誤提示Exception in thread "main" java.lang.NoClassDefFoundError是否是環境變數的配置問題ExceptionthreadAIJavaError變數
- myeclipse中傳送郵件出現Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStreamEclipseExceptionthreadAIJavaError
- Exception in thread “main” com.sun.xml.internal.ws.model.RuntimeModelerException: 必須在沒有程式包的類上指定 @WebService.targetNamespace。ExceptionthreadAIXMLWebnamespace
- java 異常:java.lang.UnsupportedClassVersionErrorJavaError
- Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dlErrorExceptionAIthreadFunction
- ExceptionException
- activity_main與fragment_mainAIFragment
- 【Weblogic】java.lang.UnsupportedClassVersionError問題處理方案WebJavaError
- main方法AI
- Main()方法AI
- 找不到so的問題,in thread “main“ java.lang.UnsatisfiedLinkError: no xxlibrary in java.library.paththreadAIJavaError
- Thread.join()方法實現main()方法等待所有子執行緒執行完成[base jdk8]threadAI執行緒JDK
- 開源相機管理庫Aravis例程學習(二)——連續採集multiple-acquisition-main-threadUIAIthread
- Oracle exceptionOracleException
- Java——ExceptionJavaException
- 原創:java.lang.UnsupportedClassVersionError: Bad version number in .class fileJavaError
- AS執行main()方法報錯:SourceSet with name ‘main‘ not foundAI
- 存檔mainAI