I_love_tigersugar's blog

By I_love_tigersugar, history, 8 years ago, In English

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

  • Vote: I like it
  • +22
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

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

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

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

    • »
      »
      »
      8 years ago, # ^ |
      Rev. 2   Vote: I like it +3 Vote: I do not like it

      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