IntelliJ IDEA Ultimate 2018.3 thinks my Java 9 Project is a Kotlin Project












5















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:
Run Configuration



My project settings look like this:
Project Settings



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 message




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.










share|improve this question


















  • 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


















5















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:
Run Configuration



My project settings look like this:
Project Settings



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 message




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.










share|improve this question


















  • 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
















5












5








5


1






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:
Run Configuration



My project settings look like this:
Project Settings



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 message




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.










share|improve this question














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:
Run Configuration



My project settings look like this:
Project Settings



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 message




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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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














2 Answers
2






active

oldest

votes


















2














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.






share|improve this answer





















  • 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














Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.






share|improve this answer








New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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











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%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









2














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.






share|improve this answer





















  • 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
















2














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.






share|improve this answer





















  • 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














2












2








2







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.






share|improve this answer















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.







share|improve this answer














share|improve this answer



share|improve this answer








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














  • 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













-1














Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.






share|improve this answer








New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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
















-1














Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.






share|improve this answer








New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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














-1












-1








-1







Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.






share|improve this answer








New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










Try to rebuild the module using Ctrl+Shift+F9 or right click on the module and select "Rebuild " in menu.







share|improve this answer








New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered yesterday









Yury SavchukYury Savchuk

1




1




New contributor




Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Yury Savchuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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





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


















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%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





















































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

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks