Connecting IntelliJ IDEA

Java Syntax
Level 3 , Lesson 2

"I'd like to tell you how to do your homework with IntelliJ IDEA. I'm sure you'll soon appreciate how powerful it is. For starters, let's stick to the following procedure."

Installing the Plugin

Step 1. Click the 'Download plugin' link.

Step 2. Run IntelliJ IDEA. Go to File -> Settings, and find Plugins. For MacOS, click IntelliJ IDEA -> Preferences -> Plugins.

Step 3. Click on the gear and select 'Install plugins from disk'

Connecting IntelliJ IDEA - 1

Step 4. Open the folder where you downloaded the plugin (CodeGymIdeaPlugin.jar). Select the plugin, and click OK.

Step 5. Restart IntelliJ IDEA (Restart IntelliJ IDEA -> Apply -> OK -> Restart)

You've successfully installed the CodeGym plugin for IntelliJ IDEA.

Working with the Plugin

"After IDEA restarts, you will see a new group of six buttons. These buttons are what you will work with. Here's what you need to do.

Step 1. Open the list of available tasks by pressing the following button:

Connecting IntelliJ IDEA - 2

If this is the first time you've done this, a 'New Project' window will pop up. In this case, you are prompted to load the CodeGymTasks project.

Step 2. Select the folder where you will store your project. You will then see short explanations about the six buttons.

Step 3. Now you can see the list of available tasks. If it's empty, then it's time to move on with the course: you've already completed all the tasks in this stage.

Step 4. Select an available task from the list and click OK.

Step 5. A window with two tabs pops up. One contains the task conditions, and the other tab (Solution) is where you enter your code. That's it! Now you're ready to start working on the task.

Step 6. Enter your solution.

Step 7. Now you can submit the task to your mentor for verification. Click the checkmark button:"

Connecting IntelliJ IDEA - 3

"If your solution didn't pass the test, you'll see the reason and a list of recommendations. If your solution did pass, congratulations! You'll get dark matter as a reward."

"If you're a student of the Dark Grand Master, you can send the code to your mentor for a style check by clicking this button:"

Connecting IntelliJ IDEA - 4

"If you feel like your solution is all messed up and you want to start over, click this button:"

Connecting IntelliJ IDEA - 5

"If you want to discuss your solution (or lack thereof) with other students, click this button:"

Connecting IntelliJ IDEA - 6

"And if you feel you can't do it without help from your fellow students, don't hesitate to use this button:"

Connecting IntelliJ IDEA - 7

"You'll get help."

"I think I get it. It almost works the same as the Web IDE."
"Absolutely. Have fun with it. And if you still missed something, here's a video on how to install and work with the plugin.

If something isn't clear, here's a how-to video for you:"

Important: You must choose the JDK version in the project settings.

First go to File -> Project Structure, then Project Settings -> Project. In the 'Project language level' section choose '8 - Lambdas, type annotations etc.'

Addition: If you have Linux

"Some students, mainly Linux users, install OpenJDK 8 instead of Oracle JDK 8. Since Open JDK 8 doesn't have a built-in JavaFX library, the CodeGym plugin for IntelliJ IDEA won't be able to work correctly."

Solution 1:

Install Oracle JDK 8 instead of OpenJDK 8

Solution 2:

Install Open JavaFX with a command like this:

sudo apt-get install openjfx

In case you face any issues with the plugin installation or its performance, do not hesitate to contact our support team by e-mail support@codegym.cc or using chat widget in the lower right corner of the page.

Comments (313)
AlexDan Level 7, Orlando
15 July 2021
Hi, this is my case: is there a new plugin version?
Justin Smith Level 13, Greenfield, USA, United States
5 July 2021
When I try to fun the first part of the minesweeper game, it says the JavaFX runtime components are missing. I see at the bottom of this lesson it says I can install Open JavaFX with a command: "sudo apt-get install openjfx". Where do I type that?
BRJava Level 13, Verona, United States
16 June 2021
I have the error below after adding the plugin. Which version of intellij should we install?
sachin Level 5, Singapore, Singapore
14 June 2021
I Installed the plugin on mac os version of intellij but i cannot see the codewithgym plugin option. is there any video link for setting the intellij on mac os?
Daniel Lungu Level 3, Seattle, United States
4 May 2021
After installing the plugin I'm getting this error Please help
Lorent Maxime Level 4, Nantes, France
2 May 2021
All worked nice for me, even with the latest version of InteliJ
DY Oh Level 10, Seoul, Korea, Republic of
14 April 2021
When I click view all tasks after plugin installation, PLUGIN OUTDATED pop-up opened. When I click yes, Error popup is opened too. Error - Error while loading the plugin descriptor from the HomeworkIdeaPlugin.jar file.
Kishan S Level 3, Toronto , Canada
26 March 2021
i am in level 3 and unable to see all tasks in Intelli J after i install the pulgin. I even set the secret password taken from my profile. . All i see is blank space.
irisjosevl Level 3, Netherlands
23 March 2021
When I'm opening the minesweeper task, I only get the 'conditions' tab and no 'solution' tab. There are no other tasks available for me so I can't check if the other tasks work fine or not. What can I do to fix this?
Dax Level 4, Singapore, Singapore
23 March 2021
when i have inserted the plug in this page does not appear, how do i get to this page ?