久久久久久久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 模擬相機)
主站蜘蛛池模板: 欧美一区二区三区在线观看视频 | 99久视频 | 国产精品久久久精品 | 99热在线免费 | 日韩人体在线 | 成人在线一区二区三区 | 中文字幕国产 | 亚洲 欧美 日韩在线 | 国产成人精品午夜视频免费 | 在线观看中文字幕 | 特级毛片爽www免费版 | 精品国产99 | 国产二区在线播放 | 精品国产不卡一区二区三区 | 午夜精品视频在线观看 | 亚洲精品一区二区三区 | 国产视频中文字幕 | 亚洲伊人久久综合 | 色综合一区二区三区 | 欧美日韩三区 | 国产一区二区小视频 | 91色视频在线观看 | 日本成人在线播放 | 手机在线不卡av | 男人的天堂久久 | 国产精品久久国产精品99 gif | 大乳boobs巨大吃奶挤奶 | 日韩有码在线播放 | 国产精品久久久久久久久婷婷 | 久久99国产精品 | 国产91网站在线观看 | 精品在线视频播放 | 亚洲成av人影片在线观看 | 国产精品影视在线观看 | 99热在线观看精品 | 国产精品1区 | 国产亚洲精品a | 操操操日日日 | 91精品国产色综合久久 | 国产亚洲欧美在线 | 韩日精品一区 |