Блог пользователя I_love_tigersugar

Автор I_love_tigersugar, история, 8 лет назад, По-английски

Hi everyone,

I am trying to solve problems by JAVA so I want to use Chelper. Here is what I have done:

  1. Install IntelliJ IDEA 2016.2.4

  2. Install CHelper plugin

  3. Create an empty project named "Competitive programming"

  4. Change some project settings like the image below:

However, it does not work. When I click on "New task", it says "defaultDirectory should be under source and in non-default package."

Could anyone show me the way to setup CHelper? I am new to Java and IntelliJ so many things may be unclear with me.

Thank you very much for your help

  • Проголосовать: нравится
  • +22
  • Проголосовать: не нравится

»
8 лет назад, # |
Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

As I see, "my" is a directory, not a package? you should create a package instead of directory. Below is my setting:

  • »
    »
    8 лет назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    Could you tell me more in details how to create a package? Thank you very much :)

    • »
      »
      »
      8 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

      Firstly, you need a source folder. -> Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S). -> In the left-hand pane, select Modules. -> In the pane to the right, select the necessary module and mark it as Source.  After that, right click on your source folder new -> package