I_love_tigersugar's blog

By I_love_tigersugar, history, 4 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

»
4 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:

  • »
    »
    4 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 :)

    • »
      »
      »
      4 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

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Visit this link. It will surely help

»
13 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I am facing problem in Intellij IDEA Chelper plugin as,whenever I click "+" sign for create new task it shows error as: CHelper: defaultDirectory should be under source and in non-default package. What its solution??? I need proper steps for using Chelper in competitive programming because I am new to it and really don't know how to use the plugin in the contests. Can anyone help me please???

  • »
    »
    13 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Under CHelper's Project Settings, make sure that the default directory is a package located under your source.

    (https://imgur.com/a/M4FnoUy) (im not sure how to link this inside my post if anyone could help out that'd be great lol)