Error module not specified intellij idea

I was trying to execute a simple program in IntelliJ IDEA as a static web project. I'm newbie and I'm learning web development with Node.js. I took help from the official website of IntelliJ IDEA, ...

I was trying to execute a simple program in IntelliJ IDEA as a static web project. I’m newbie and I’m learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure also.

Error:

"C:Program FilesJavajdk1.8.0_91binjava" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2libidea_rt.jar" com.intellij.rt.execution.application.AppMain ""
Exception in thread "main" java.lang.ClassNotFoundException: 
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)

Process finished with exit code 1

Snapshot of IDE

Please help me to sort out this problem. I’m digging out this problem since few days.

Matt's user avatar

Matt

8,86012 gold badges63 silver badges83 bronze badges

asked Jun 24, 2016 at 16:57

Warda.M's user avatar

1

Update

Module not specified

According to the snapshot you have provided this problem is because you have not determined the app module of your project, so I suggest you to choose the app module from configuration. For example:

enter image description here

answered Jun 24, 2016 at 17:46

Elham Kohestani's user avatar

Elham KohestaniElham Kohestani

2,9532 gold badges19 silver badges28 bronze badges

8

this is how I fix this issue
1.open my project structure

2.click module
enter image description here
3.click plus button
enter image description here
4.click import module,and find the module’s pom
enter image description here
5.make sure you select the module you want to import,then next next finish:)
enter image description here

answered Feb 14, 2019 at 5:46

Hanz's user avatar

HanzHanz

2363 silver badges8 bronze badges

For IntelliJ IDEA 2019.3.4 (Ultimate Edition), the following worked for me:

  1. Find the Environment variables for your project.
  2. Specify, from the dropdowns, the values of «Use class path of module:» and «JRE» as in the attached screenshot.

enter image description here

answered May 26, 2020 at 12:21

tonderaimuchada's user avatar

I faced the exact issue of module not found and solved it by navigating to pom.xml file in file system of my project and opening it as a maven project in my intelliJIdea.

Then it has populated the sub modules for selection in the edit configurations window.

answered Jul 5, 2021 at 13:36

Ravi's user avatar

Faced the same issue. To solve it,

  • I had to download and install the latest version of gradle using the comand line. $ sdk install gradle using the package manager or $ brew install gradle for mac. You might need to first install brew if not yet.
  • Then I cleaned the project and restarted android studio and it worked.

answered Aug 12, 2019 at 11:30

Gomez NL's user avatar

Gomez NLGomez NL

8728 silver badges12 bronze badges

This happened to me when I started to work with a colleque’s project.

He was using jdk 12.0.2 .

If you are suspicious jdk difference might be the case (Your IDE complains about SDK, JDK etc.):

  1. Download the appropriate jdk
  2. Move new jdk to the folder of your choice. (I use C:Program FilesJava)
  3. On Intellij, click to the dropdown on top middle bar. Click Edit Configurations. Change jdk.
  4. File -> Invalidate Caches and Restart.

answered Jan 14, 2020 at 10:58

Onat Korucu's user avatar

Onat KorucuOnat Korucu

91411 silver badges13 bronze badges

You may encounter an error indicating that the Intellij error module is not listed. Well, there are several ways to fix this problem, which we’ll talk about shortly.

Approved: ASR Pro

  • 1. Download ASR Pro and install it on your computer
  • 2. Launch the program and click «Scan»
  • 3. Click «Repair» to fix any issues that are found
  • Speed up your computer’s performance now with this simple download.

    brtjrtkk.blogspot.com Image: brtjrtkk.blogspot.comError: Unspecified module (IntelliJ IDEA), this is a className value that you almost certainly didn’t find or doesn’t exist as an argument for the forName (String className) method, if you don’t pay it will be disabled, and if you enter this configuration while another instance is still running, IntelliJ IDEA will prompt you to stop all running instances and start another. This is useful when setting up run / debug is resource intensive and there is usually no good reason to run instances.

    I tried to run a relatively simple program in IntelliJ IDEA as a fixed web project. I’m new to learning about the Node.js network. I maintained the official IntelliJ IDEA site, but the error remained the same. However, I also have my project settings and structure configured.

      "C:  Program Files  Java  jdk1.8.0_91  bin  java" -Didea.launcher.port = 7535 "-Didea.launcher.bin.path = C:  Programs  JetBrains  IntelliJ IDEA 2016.1.2  bin "-Dfile.-classpath encoding = utf-8" C:  Program Files  JetBrains  IntelliJ IDEA 2016.1.2  lib  ide_rt.jar "com.intellij.rt.execution.application.AppMain" "The exception stream is mostly java.lang.ClassNotFoundException:    java at.lang.Class.forName0 (native method)   at java.lang.Class.forName (Class.java:264)    World Wide Web at.intellij.rt.execution.application.AppMain.main (AppMain.java:122)Process Exited with Exit Code Help 1 

    Approved: ASR Pro

    ASR Pro is the world’s most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, ASR Pro quickly finds and fixes a broad range of Windows problems — from system instability and security issues to memory management and performance bottlenecks.

  • 1. Download ASR Pro and install it on your computer
  • 2. Launch the program and click «Scan»
  • 3. Click «Repair» to fix any issues that are found
  • Solve this problem. Dug this problem for 2-3 weeks.

    This happened after I renamed the modules in IntelliJ 2018.3 Ultimate Edition to more descriptive and obvious names. As a result, my two versions of the Maven mod were no longer marked as mods in IntelliJ (no blue square in the right corner of the folder icon relative to the project window). To solve the distribution, I did the following:

    1. “Uncheck” from presources, from all caffeinated or test folders in each module file (“right click / command + click, select” mark directory as “).
    2. Accessing this helps you select File> Project Structure, Modules, Project Settings Overview.
    3. Click the Copy icon (next to the + and – symbols).
    4. In the Copy Module dialog box that opens, select the folder source for your module as the Module File Location and click OK.
    5. Open the runtime configuration screen. If “Use module classpath” currently only offers modules, “Without saving startup configuration settings and leads, remove the old configuration and add a new configuration (+ symbol).

    Learn More:

    The reason is that the project directory was changed and the classpath of the disabled module does not match, you really need to specify the next module again

    I was trying to help you run a simple program in IntelliJ IDEA as a static web project. I am a good beginner and learning web development with Node.js. I requested official help on each of our IntelliJ IDEA websites, but the specific error was the same. However, I also have my project settings and structure configured.

    Error:

    "C:  Program Files  Java  jdk1.8.0_91  bin  java" -Didea.launcher.port = 7535 "-Didea.launcher.bin.path = C:  Program Files  JetBrains  IntelliJ IDEA 2016.1.2  bin "-Dfile.-classpath encoding = utf-8" C:  Program Files  JetBrains  IntelliJ IDEA 2016.1.2  lib  ide_rt.jar "com.intellij.rt.execution.application. ""Declare an exception in the careful thread "main" java.lang.ClassNotFoundException:   only with java.lang.Class.forName0 (native method)   by visiting java.lang.Class.forName (Class.java:264).   At com.intellij.rt.execution.application.AppMain.main (AppMain.java:122)Process ended with exit code Help 1 

    intellij error module not specified

    ask me to solve this problem. I’ve been digging around this awesome problem for several days.

    intellij error module not specified

    Update July 17 at 17:37

    Comments

    The error you are getting here is trying to get the class to work, IntelliJ cannot help but find it.

    How do I unmark a module in IntelliJ?

    Disable any resources, Java or test folders containing each module folder (“right click / command + click, try” mark directory as “). Go to File> Project Structure, select Modules under Project Settings.

    To fix this you need to add it to your .jar file, I would say classpath:

    java org.somepackage.SomeClass -cp myJarWithSomeClass.jar

    or if you are using the command line, you need the addition to appear in the statement: (.) ​​

    java YourSingleClass -cp.

    Hope this helped you!

    This content, along with all content related to source code and files, is licensed only by The Code Project Open License (CPOL)

    Top Experts
    Last 24 Hours This Month

    My goal was to run a simple program in IntelliJ IDEA as a static web project. I am a beginner and I am learning the development of the internet with Node.js. I asked for help on the IntelliJ IDEA authorized website, but the recent error remained the same. However, I also have configuration settings and a project structure.

    "C:  Program Files  Java  jdk1.8.0_91  bin  java" -Didea.launcher.port = 7535 "-Didea.launcher.bin.path = C:  Program Files  JetBrains  IntelliJ IDEA 2016.1.2  bin "-Dfile.-classpath encoding = utf-8" C:  Program Files  JetBrains  IntelliJ IDEA 2016.1.2  lib  ide_rt.jar "com.intellij.rt.execution.application. ""Appmain exception on "main" thread java.lang.ClassNotFoundException:   in java.lang.Class.forName0 (native method)   author: java.lang.Class.forName (Class.java:264)   At com.intellij.rt.execution.application.AppMain.main (AppMain.java:122)Process ready with exit code 1 

    Please help everyone to solve this problem. I’ve been digging into this issue for several days.

    Same error as here, if you try to run the class, IntelliJ cannot find it.

    What does module not specified mean in IntelliJ?

    We could use this line for much more analysis. When I run the program, this tool reports that the module is not specified. Please login or login to vote. The error you are getting here means IntelliJ cannot find it when you try to runClass.

    To solve this problem, you need to create a .jar file for all classpaths:

    or when you run the command you need to add the dot operator: (.) ​​

    This substance, along with associated source code related to the files, is licensed under the Code Project Open License (CPOL).

    Speed up your computer’s performance now with this simple download.

    I was trying to execute a simple program in IntelliJ IDEA as a static web project. I’m a newbie and I’m learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure also.

    Error:

    "C:Program FilesJavajdk1.8.0_91binjava" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2libidea_rt.jar" com.intellij.rt.execution.application.AppMain ""
    
    Exception in thread "main" java.lang.ClassNotFoundException: 
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
    
    Process finished with exit code 1

    Please help me to sort out this problem. I’m digging out this problem since few days.

    Updated 17-Jul-17 18:37pm

    Comments


    1 solution

    Solution 1

    The error you are receiving here means when you are trying to run the class, IntelliJ is not able to find it.

    To fix this, you need to add a .jar file to the classpath:

    java org.somepackage.SomeClass -cp myJarWithSomeClass.jar

    or if running on the command line you must add the dot operator: (.)

    java YourSingleClass -cp .

    Hope this helped!

    This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

     

    Print

    Answers RSS

    Top Experts
    Last 24hrs This month

    CodeProject,
    20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
    +1 (416) 849-8900

    I was trying to execute a simple program in IntelliJ IDEA as a static web project. I’m newbie and I’m learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure also.

    Error:

    "C:Program FilesJavajdk1.8.0_91binjava" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2libidea_rt.jar" com.intellij.rt.execution.application.AppMain ""
    Exception in thread "main" java.lang.ClassNotFoundException: 
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
    
    Process finished with exit code 1
    

    Snapshot of IDE

    Please help me to sort out this problem. I’m digging out this problem since few days.

    6 Answers

    Update

    Module not specified
    

    According to the snapshot you have provided this problem is because you have not determined the app module of your project, so I suggest you to choose the app module from configuration. For example:

    enter image description here

    this is how I fix this issue
    1.open my project structure

    2.click module
    enter image description here
    3.click plus button
    enter image description here
    4.click import module,and find the module’s pom
    enter image description here
    5.make sure you select the module you want to import,then next next finish:)
    enter image description here

    For IntelliJ IDEA 2019.3.4 (Ultimate Edition), the following worked for me:

    1. Find the Environment variables for your project.
    2. Specify, from the dropdowns, the values of «Use class path of module:» and «JRE» as in the attached screenshot.

    enter image description here

    Faced the same issue. To solve it,

    • I had to download and install the latest version of gradle using the comand line. $ sdk install gradle using the package manager or $ brew install gradle for mac. You might need to first install brew if not yet.
    • Then I cleaned the project and restarted android studio and it worked.

    This happened to me when I started to work with a colleque’s project.

    He was using jdk 12.0.2 .

    If you are suspicious jdk difference might be the case (Your IDE complains about SDK, JDK etc.):

    1. Download the appropriate jdk
    2. Move new jdk to the folder of your choice. (I use C:Program FilesJava)
    3. On Intellij, click to the dropdown on top middle bar. Click Edit Configurations. Change jdk.
    4. File -> Invalidate Caches and Restart.

    I faced the exact issue of module not found and solved it by navigating to pom.xml file in file system of my project and opening it as a maven project in my intelliJIdea.

    Then it has populated the sub modules for selection in the edit configurations window.

    Я пытался выполнить простую программу в IntelliJ IDEA как статический веб-проект. Я новичок и изучаю веб-разработку с Node.js. Я воспользовался помощью с официального сайта IntelliJ IDEA, но ошибка была такой же. Хотя я также настроил параметры и структуру проекта.

    Ошибка:

    "C:Program FilesJavajdk1.8.0_91binjava" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJetBrainsIntelliJ IDEA 2016.1.2libidea_rt.jar" com.intellij.rt.execution.application.AppMain ""
    Exception in thread "main" java.lang.ClassNotFoundException: 
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
    
    Process finished with exit code 1
    

    Снимок IDE

    Пожалуйста, помогите мне разобраться с этой проблемой. Я выкапываю эту проблему несколько дней.

    5 ответов

    Лучший ответ

    Обновить

    Module not specified
    

    Согласно предоставленному вами снимку, эта проблема связана с тем, что вы не определили модуль приложения своего проекта, поэтому я предлагаю вам выбрать модуль приложения из конфигурации. Например:

    enter image description here


    101

    Elham Kohestani
    24 Июн 2016 в 18:26

    Это случилось со мной, когда я начал работать над коллекционным проектом.

    Он использовал jdk 12.0.2.

    Если у вас есть подозрения, что разница в jdk может иметь место (ваша IDE жалуется на SDK, JDK и т. Д.):

    1. Загрузите соответствующий jdk
    2. Переместите новый jdk в папку по вашему выбору. (Я использую C: Program Files Java)
    3. В Intellij щелкните раскрывающийся список на верхней средней панели. Щелкните «Изменить конфигурации». Измените jdk.
    4. Файл -> Недействительные кеши и перезапуск.


    0

    Onat Korucu
    14 Янв 2020 в 10:58

    Столкнулся с той же проблемой. Чтобы решить эту проблему,

    • Мне пришлось загрузить и установить последнюю версию gradle с помощью командной строки. $ sdk install gradle с помощью диспетчера пакетов или $ brew install gradle для Mac. Возможно, вам потребуется сначала установить brew, если еще нет.
    • Затем я очистил проект и перезапустил студию Android, и все заработало.


    0

    Gomez NL
    12 Авг 2019 в 11:36

    Для IntelliJ IDEA 2019.3.4 (Ultimate Edition) у меня работало следующее:

    1. Найдите переменные среды для вашего проекта.
    2. Укажите из раскрывающихся списков значения «Использовать путь к классу модуля:» и «JRE», как на прилагаемом снимке экрана.

    enter image description here


    1

    tonderaimuchada
    26 Май 2020 в 12:21

    Вот как я исправляю эту проблему
    1. открыть структуру моего проекта

    2. модуль щелчка введите описание изображения здесь 3. нажмите кнопку плюс введите описание изображения здесь 4. щелкните модуль импорта , и найдите модуль pom введите описание изображения здесь
    5. убедитесь, что вы выбрали модуль, который хотите импортировать, затем следующий шаг :) введите описание изображения здесь


    10

    Hanz
    22 Июн 2020 в 09:36

    Понравилась статья? Поделить с друзьями:
  • Error mods were not processed as server update had errors
  • Error modifying перевод
  • Error modifying c gog games the witcher 3 wild hunt goty content metadata store
  • Error modifying c games cyberpunk 2077 archive pc content audio 1 general archive
  • Error model is singular