久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Intellij IDEA 使用 java7 編譯器編譯時我已將其配置

Intellij IDEA using java7 compiler to compile when I have configured it to use Java6(Intellij IDEA 使用 java7 編譯器編譯時我已將其配置為使用 Java6)
本文介紹了Intellij IDEA 使用 java7 編譯器編譯時我已將其配置為使用 Java6的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我已將 Module SDK 設置為 1.6

I have set the Module SDK to 1.6

我還將 Project SDK 設置為 1.6

I have also set the Project SDK to 1.6

我還將 Java 編譯器選項從設置更改為使用 java 6

and I also change Java compiler options from setting to use java 6

但它仍然使用 java 7 進行編譯.當我編譯或運行時,它會出現以下錯誤

but still it is using java 7 to compile. When I compile or run it gives following error

Using javac 1.7.0_11 to compile java sources
java: Errors occurred while compiling module 'SSLJava6'
Compilation completed with 1 error and 0 warnings in 1 sec
1 error
0 warnings
java: javacTask: source release 1.7 requires target release 1.7

以前有人遇到過這樣的問題嗎?必須做什么?

Has anyone faced such problem before? What must be done?

java -version的輸出

[aniket@localhost jndiProperties]$ java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

我的 JAVA_HOME 也設置為相同.

and my JAVA_HOME is also set to same.

推薦答案

有趣.

問題:

  1. 檢查 c:Users$user.IntelliJIdea12configoptionsjdk.table.xml 是否僅引用了 JDK6.

    這就是我的文件的樣子:



    如果其中有對 JDK 7 的引用,則刪除相應的 <jdk> 元素并重新啟動 Intellij.

  2. 我知道您已經確認了javajavac 路徑.通過在一個全新的 Intellij 項目中編寫一個簡單的 HelloWorld.java 來確認正在使用的 javac.

    如果在新項目中使用了 javac6,那么這是舊項目配置的問題.

  3. 如果有公共 JRE 7 潛伏,請嘗試暫時卸載它.卸載后檢查在 HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment

  4. 處的 Windows 注冊表中沒有遺留任何內容
  5. 如果重命名JDK7主目錄,請檢查構建是否失敗.如果是這樣,請嘗試符號鏈接 JDK7 目錄以指向 Java6 安裝目錄.在 Windows 世界中,以下將用于執行符號鏈接:mklink/J c:Java7Home c:ExistingJava6Home
  1. Check that c:Users$user.IntelliJIdea12configoptionsjdk.table.xml has a reference to JDK6 only.

    This is what the file looks like for me:



    If there is a reference to a JDK 7 in there then delete the corresponding <jdk> element and restart Intellij.

  2. I know that you have confirmed the java and javac path. Confirm the javac being used by writing a simple HelloWorld.java in a brand new Intellij project.

    If in the new project javac6 is used, then it's an issue with the old project configuration.

  3. If there is a public JRE 7 lurking about, try un-installing it temporarily. After un-installation check that there is no cruft left behind in the Windows registry at HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment

  4. Check whether the build fails if you rename the JDK7 home dir. If so, try symlinking the JDK7 dir to point to the Java6 installation dir. In the windows world the following will work to do the symlink : mklink /J c:Java7Home c:ExistingJava6Home

這篇關于Intellij IDEA 使用 java7 編譯器編譯時我已將其配置為使用 Java6的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Why does the android emulator camera stop unexpectedly?(為什么android模擬器相機會意外停止?)
Android camera , onPictureTaken(byte[] imgData, Camera camera) method amp; PictureCallback never called(Android camera , onPictureTaken(byte[] imgData, Camera camera) 方法 amp;PictureCallback 從未調用過) - IT屋-程序員軟件開發技
Understanding the libGDX Projection Matrix(了解 libGDX 投影矩陣)
QR code reading with camera - Android(使用相機讀取二維碼 - Android)
IP camera with OpenCv in Java(Java中帶有OpenCv的IP攝像頭)
Android mock Camera(Android 模擬相機)
主站蜘蛛池模板: 欧美精品日韩精品国产精品 | 欧美成视频在线观看 | 国产精品 亚洲一区 | 久久精品久久精品久久精品 | 毛片日韩| 欧美在线资源 | 亚洲有码转帖 | 真人一级毛片 | 亚洲人成人一区二区在线观看 | 日韩成人 | a视频在线| 欧美综合自拍 | 亚洲成人999| 中文字幕在线网 | 国产黄色麻豆视频 | 国产一级免费视频 | 九九久久99| 91在线网站 | 在线看一区二区三区 | 久久亚洲一区 | 国内自拍偷拍视频 | 日韩视频免费看 | 久久成人午夜 | 91麻豆精品国产91久久久久久 | 艹逼网 | 午夜影院网站 | 免费观看a级毛片在线播放 黄网站免费入口 | 成年人网站免费 | 91精品国产综合久久婷婷香蕉 | 91欧美精品成人综合在线观看 | 亚洲小说图片 | 综合欧美亚洲 | 99热在这里只有精品 | 午夜丁香视频在线观看 | 国产精品国产馆在线真实露脸 | 成人在线免费av | 欧美一区二区在线观看 | 欧洲视频一区二区 | 婷婷福利视频导航 | 精品一区av | 日本在线中文 |