[英]How to fix Clean and build project netbeans error
清理和構建項目時出現如下錯誤
> javac: invalid target release: 15 Usage: javac <options> <source
> files> use -help for a list of possible options
> C:\Users\Shehan Rathnayake\Documents\NetBeansProjects\Sesatha\nbproject\build-impl.xml:930: The following error occurred while executing this line:
> C:\Users\Shehan Rathnayake\Documents\NetBeansProjects\Sesatha\nbproject\build-impl.xml:270: Compile failed; see the compiler error output for details.
> BUILD FAILED (total time: 0 seconds)
這些是行 xml:930 - <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> xml:270 -
錯誤消息“invalid target release”實際上應該來自 java 編譯器。 您確實可以為例如 Java 11 創建 Java 源代碼並對其進行編譯,這樣字節碼也將在 Java 上執行,因為某些原因奇怪地設置了這些參數 8。
如果您無法找出有意義的值,請列出您擁有的值,並讓我們知道您希望它如何編譯並在之后運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.