IntelliJ - Use JDK 11 and Eclipse Compiler












2















I use IntelliJ 2018.3 and I need to use JDK 11.



The project compile on Eclipse (the Eclipse compiler) but not on IDEA (the Javac compiler)



enter image description here



So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
enter image description here



Is there any solution to compile my programm on IntelliJ with the Eclipse compiler and if yes, How can I do that ?










share|improve this question























  • Did you choose project bytecode version as 11?

    – Vineeth Chitteti
    Nov 26 '18 at 10:53











  • @VineethChitteti yes.

    – charles Lgn
    Nov 26 '18 at 10:55
















2















I use IntelliJ 2018.3 and I need to use JDK 11.



The project compile on Eclipse (the Eclipse compiler) but not on IDEA (the Javac compiler)



enter image description here



So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
enter image description here



Is there any solution to compile my programm on IntelliJ with the Eclipse compiler and if yes, How can I do that ?










share|improve this question























  • Did you choose project bytecode version as 11?

    – Vineeth Chitteti
    Nov 26 '18 at 10:53











  • @VineethChitteti yes.

    – charles Lgn
    Nov 26 '18 at 10:55














2












2








2








I use IntelliJ 2018.3 and I need to use JDK 11.



The project compile on Eclipse (the Eclipse compiler) but not on IDEA (the Javac compiler)



enter image description here



So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
enter image description here



Is there any solution to compile my programm on IntelliJ with the Eclipse compiler and if yes, How can I do that ?










share|improve this question














I use IntelliJ 2018.3 and I need to use JDK 11.



The project compile on Eclipse (the Eclipse compiler) but not on IDEA (the Javac compiler)



enter image description here



So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
enter image description here



Is there any solution to compile my programm on IntelliJ with the Eclipse compiler and if yes, How can I do that ?







java intellij-idea compiler-errors javac






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 '18 at 10:35









charles Lgncharles Lgn

1471217




1471217













  • Did you choose project bytecode version as 11?

    – Vineeth Chitteti
    Nov 26 '18 at 10:53











  • @VineethChitteti yes.

    – charles Lgn
    Nov 26 '18 at 10:55



















  • Did you choose project bytecode version as 11?

    – Vineeth Chitteti
    Nov 26 '18 at 10:53











  • @VineethChitteti yes.

    – charles Lgn
    Nov 26 '18 at 10:55

















Did you choose project bytecode version as 11?

– Vineeth Chitteti
Nov 26 '18 at 10:53





Did you choose project bytecode version as 11?

– Vineeth Chitteti
Nov 26 '18 at 10:53













@VineethChitteti yes.

– charles Lgn
Nov 26 '18 at 10:55





@VineethChitteti yes.

– charles Lgn
Nov 26 '18 at 10:55












2 Answers
2






active

oldest

votes


















3














Use JDK 9 or lower, it's not supported for Java 10 and 11 yet: https://youtrack.jetbrains.com/issue/IDEA-190791 (Eclipse compiler specific limitation).



You can increase the heap size of the JVM running the build process and switch back to javac compiler instead of using Eclipse compiler:



build process heap size



This should fix the first error.






share|improve this answer


























  • @KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

    – CrazyCoder
    Nov 26 '18 at 10:47











  • I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53











  • It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

    – charles Lgn
    Nov 26 '18 at 11:05











  • @charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

    – CrazyCoder
    Nov 26 '18 at 11:06



















2














To resolve OutOfMemoryError during javac compilation you can pass the command line flags -J-Xms256m -J-Xmx256m to increase the memory.



This can be done in Settings > Build, Execution, Deployment > Compiler > Java Compiler menu under Additional Command Line Parameters field.






share|improve this answer
























  • I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53






  • 1





    @charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

    – Karol Dowbecki
    Nov 26 '18 at 10:56












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53479247%2fintellij-use-jdk-11-and-eclipse-compiler%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Use JDK 9 or lower, it's not supported for Java 10 and 11 yet: https://youtrack.jetbrains.com/issue/IDEA-190791 (Eclipse compiler specific limitation).



You can increase the heap size of the JVM running the build process and switch back to javac compiler instead of using Eclipse compiler:



build process heap size



This should fix the first error.






share|improve this answer


























  • @KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

    – CrazyCoder
    Nov 26 '18 at 10:47











  • I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53











  • It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

    – charles Lgn
    Nov 26 '18 at 11:05











  • @charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

    – CrazyCoder
    Nov 26 '18 at 11:06
















3














Use JDK 9 or lower, it's not supported for Java 10 and 11 yet: https://youtrack.jetbrains.com/issue/IDEA-190791 (Eclipse compiler specific limitation).



You can increase the heap size of the JVM running the build process and switch back to javac compiler instead of using Eclipse compiler:



build process heap size



This should fix the first error.






share|improve this answer


























  • @KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

    – CrazyCoder
    Nov 26 '18 at 10:47











  • I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53











  • It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

    – charles Lgn
    Nov 26 '18 at 11:05











  • @charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

    – CrazyCoder
    Nov 26 '18 at 11:06














3












3








3







Use JDK 9 or lower, it's not supported for Java 10 and 11 yet: https://youtrack.jetbrains.com/issue/IDEA-190791 (Eclipse compiler specific limitation).



You can increase the heap size of the JVM running the build process and switch back to javac compiler instead of using Eclipse compiler:



build process heap size



This should fix the first error.






share|improve this answer















Use JDK 9 or lower, it's not supported for Java 10 and 11 yet: https://youtrack.jetbrains.com/issue/IDEA-190791 (Eclipse compiler specific limitation).



You can increase the heap size of the JVM running the build process and switch back to javac compiler instead of using Eclipse compiler:



build process heap size



This should fix the first error.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 26 '18 at 10:53

























answered Nov 26 '18 at 10:43









CrazyCoderCrazyCoder

280k51660667




280k51660667













  • @KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

    – CrazyCoder
    Nov 26 '18 at 10:47











  • I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53











  • It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

    – charles Lgn
    Nov 26 '18 at 11:05











  • @charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

    – CrazyCoder
    Nov 26 '18 at 11:06



















  • @KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

    – CrazyCoder
    Nov 26 '18 at 10:47











  • I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53











  • It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

    – charles Lgn
    Nov 26 '18 at 11:05











  • @charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

    – CrazyCoder
    Nov 26 '18 at 11:06

















@KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

– CrazyCoder
Nov 26 '18 at 10:47





@KarolDowbecki yes, but not when using Eclipse compiler. So the answer is correct.

– CrazyCoder
Nov 26 '18 at 10:47













I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

– charles Lgn
Nov 26 '18 at 10:53





I can't use lower than JDK 11 so I tried to increase the size and it work. tnx.

– charles Lgn
Nov 26 '18 at 10:53













It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

– charles Lgn
Nov 26 '18 at 11:05





It is maybe a stupid question but eclipse use the eclipse compiler and I tried to run the project on eclipse (with JDK 11) and it works. is that because the Eclipse compiler on IDEA is obsolete or it is more complex ? :/

– charles Lgn
Nov 26 '18 at 11:05













@charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

– CrazyCoder
Nov 26 '18 at 11:06





@charlesLgn IntelliJ IDEA bundles an older version of Eclipse compiler.

– CrazyCoder
Nov 26 '18 at 11:06













2














To resolve OutOfMemoryError during javac compilation you can pass the command line flags -J-Xms256m -J-Xmx256m to increase the memory.



This can be done in Settings > Build, Execution, Deployment > Compiler > Java Compiler menu under Additional Command Line Parameters field.






share|improve this answer
























  • I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53






  • 1





    @charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

    – Karol Dowbecki
    Nov 26 '18 at 10:56
















2














To resolve OutOfMemoryError during javac compilation you can pass the command line flags -J-Xms256m -J-Xmx256m to increase the memory.



This can be done in Settings > Build, Execution, Deployment > Compiler > Java Compiler menu under Additional Command Line Parameters field.






share|improve this answer
























  • I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53






  • 1





    @charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

    – Karol Dowbecki
    Nov 26 '18 at 10:56














2












2








2







To resolve OutOfMemoryError during javac compilation you can pass the command line flags -J-Xms256m -J-Xmx256m to increase the memory.



This can be done in Settings > Build, Execution, Deployment > Compiler > Java Compiler menu under Additional Command Line Parameters field.






share|improve this answer













To resolve OutOfMemoryError during javac compilation you can pass the command line flags -J-Xms256m -J-Xmx256m to increase the memory.



This can be done in Settings > Build, Execution, Deployment > Compiler > Java Compiler menu under Additional Command Line Parameters field.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 26 '18 at 10:43









Karol DowbeckiKarol Dowbecki

25.5k93759




25.5k93759













  • I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53






  • 1





    @charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

    – Karol Dowbecki
    Nov 26 '18 at 10:56



















  • I tried to increase the size and it work. tnx.

    – charles Lgn
    Nov 26 '18 at 10:53






  • 1





    @charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

    – Karol Dowbecki
    Nov 26 '18 at 10:56

















I tried to increase the size and it work. tnx.

– charles Lgn
Nov 26 '18 at 10:53





I tried to increase the size and it work. tnx.

– charles Lgn
Nov 26 '18 at 10:53




1




1





@charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

– Karol Dowbecki
Nov 26 '18 at 10:56





@charlesLgn do note that CrazyCoder's answer points to Build process heap size option which is the right place to manage this setting.

– Karol Dowbecki
Nov 26 '18 at 10:56


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53479247%2fintellij-use-jdk-11-and-eclipse-compiler%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin