IntelliJ IDEA Ultimate 2018.3 thinks my Java 9 Project is a Kotlin Project
I have an IntelliJ project composing several subprojects which are all Java 9 modules. I use Maven as a build system. My project has no "Facets". My run configuration looks like this:
My project settings look like this:
I can build everything with Maven just fine. However, when I try to compile with IntelliJ, it somehow thinks that my project is a Kotlin project and can't compile it:
Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 'requires kotlin.stdlib' clause in your module definition
Has anyone any idea how to fix this? I already tried deleting the run configuration and recreated it. This fixes the problem for some time, but then it reappears randomly.
java maven intellij-idea kotlin java-9
add a comment |
I have an IntelliJ project composing several subprojects which are all Java 9 modules. I use Maven as a build system. My project has no "Facets". My run configuration looks like this:
My project settings look like this:
I can build everything with Maven just fine. However, when I try to compile with IntelliJ, it somehow thinks that my project is a Kotlin project and can't compile it:
Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 'requires kotlin.stdlib' clause in your module definition
Has anyone any idea how to fix this? I already tried deleting the run configuration and recreated it. This fixes the problem for some time, but then it reappears randomly.
java maven intellij-idea kotlin java-9
4
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22
add a comment |
I have an IntelliJ project composing several subprojects which are all Java 9 modules. I use Maven as a build system. My project has no "Facets". My run configuration looks like this:
My project settings look like this:
I can build everything with Maven just fine. However, when I try to compile with IntelliJ, it somehow thinks that my project is a Kotlin project and can't compile it:
Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 'requires kotlin.stdlib' clause in your module definition
Has anyone any idea how to fix this? I already tried deleting the run configuration and recreated it. This fixes the problem for some time, but then it reappears randomly.
java maven intellij-idea kotlin java-9
I have an IntelliJ project composing several subprojects which are all Java 9 modules. I use Maven as a build system. My project has no "Facets". My run configuration looks like this:
My project settings look like this:
I can build everything with Maven just fine. However, when I try to compile with IntelliJ, it somehow thinks that my project is a Kotlin project and can't compile it:
Error:Kotlin: The Kotlin standard library is not found in the module graph. Please ensure you have the 'requires kotlin.stdlib' clause in your module definition
Has anyone any idea how to fix this? I already tried deleting the run configuration and recreated it. This fixes the problem for some time, but then it reappears randomly.
java maven intellij-idea kotlin java-9
java maven intellij-idea kotlin java-9
asked Nov 27 '18 at 10:20
daxdax
3111310
3111310
4
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22
add a comment |
4
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22
4
4
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22
add a comment |
2 Answers
2
active
oldest
votes
Meanwhile, this can be fixed using the kotlin-stdlib.jar
available in Kotlin JavaRuntime:
module kotlin.test {
requires kotlin.stdlib;
}
where kotlin.test
should be replaced with your module name.
Just in case the details matter, I am using
IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib
within the IntelliJ .app
which includes kotlin-stdlib.jar
as one of them.
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
add a comment |
Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.
New contributor
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
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%2f53497454%2fintellij-idea-ultimate-2018-3-thinks-my-java-9-project-is-a-kotlin-project%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
Meanwhile, this can be fixed using the kotlin-stdlib.jar
available in Kotlin JavaRuntime:
module kotlin.test {
requires kotlin.stdlib;
}
where kotlin.test
should be replaced with your module name.
Just in case the details matter, I am using
IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib
within the IntelliJ .app
which includes kotlin-stdlib.jar
as one of them.
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
add a comment |
Meanwhile, this can be fixed using the kotlin-stdlib.jar
available in Kotlin JavaRuntime:
module kotlin.test {
requires kotlin.stdlib;
}
where kotlin.test
should be replaced with your module name.
Just in case the details matter, I am using
IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib
within the IntelliJ .app
which includes kotlin-stdlib.jar
as one of them.
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
add a comment |
Meanwhile, this can be fixed using the kotlin-stdlib.jar
available in Kotlin JavaRuntime:
module kotlin.test {
requires kotlin.stdlib;
}
where kotlin.test
should be replaced with your module name.
Just in case the details matter, I am using
IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib
within the IntelliJ .app
which includes kotlin-stdlib.jar
as one of them.
Meanwhile, this can be fixed using the kotlin-stdlib.jar
available in Kotlin JavaRuntime:
module kotlin.test {
requires kotlin.stdlib;
}
where kotlin.test
should be replaced with your module name.
Just in case the details matter, I am using
IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib
within the IntelliJ .app
which includes kotlin-stdlib.jar
as one of them.
edited Nov 27 '18 at 10:40
answered Nov 27 '18 at 10:32
nullpointernullpointer
43.2k10101200
43.2k10101200
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
add a comment |
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
1
1
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
Thanks for the answer, but I do not want to add any requirements to my project to things I do not need...
– dax
Nov 27 '18 at 14:24
1
1
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
@dax I do understand that, and that's why have used the first word Meanwhile. Better solution would the IDE fixing this, which is where you can report a bug as CrazyCoder pointed out.
– nullpointer
Nov 27 '18 at 14:29
add a comment |
Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.
New contributor
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
add a comment |
Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.
New contributor
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
add a comment |
Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.
New contributor
Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.
New contributor
New contributor
answered yesterday
Yury SavchukYury Savchuk
1
1
New contributor
New contributor
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
add a comment |
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
it doesn't answer the question, I think. Since author mentions that some workaround helps for some time, the goal is to have stable successful build, not just to build once.
– Alexander Gutenev
yesterday
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%2f53497454%2fintellij-idea-ultimate-2018-3-thinks-my-java-9-project-is-a-kotlin-project%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
4
Please file a bug at youtrack.jetbrains.com/issues/KT and share the sample project to reproduce (privately).
– CrazyCoder
Nov 27 '18 at 10:29
As a workaround, I disabled the Kotlin plugin in IntelliJ. I have to check if I'm allowed to share the project...
– dax
Nov 27 '18 at 14:22