IntelliJ - Use JDK 11 and Eclipse Compiler
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)
So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
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
add a comment |
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)
So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
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
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
add a comment |
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)
So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
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
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)
So I decide to use Eclipse compiler on IDEA (Eclipse compiler 4.7.2) but I have always this error :
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
java intellij-idea compiler-errors javac
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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:
This should fix the first error.
@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
add a comment |
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.
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 toBuild process heap size
option which is the right place to manage this setting.
– Karol Dowbecki
Nov 26 '18 at 10:56
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
This should fix the first error.
@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
add a comment |
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:
This should fix the first error.
@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
add a comment |
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:
This should fix the first error.
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:
This should fix the first error.
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
add a comment |
@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
add a comment |
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.
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 toBuild process heap size
option which is the right place to manage this setting.
– Karol Dowbecki
Nov 26 '18 at 10:56
add a comment |
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.
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 toBuild process heap size
option which is the right place to manage this setting.
– Karol Dowbecki
Nov 26 '18 at 10:56
add a comment |
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.
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.
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 toBuild process heap size
option which is the right place to manage this setting.
– Karol Dowbecki
Nov 26 '18 at 10:56
add a comment |
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 toBuild 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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