undefined

Connecting IntelliJ IDEA

Java Syntax
Level 3 , Lesson 2
Available

"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 (278)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
DY Oh Level 4 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 ?
Jeremy Bridges Level 4 Barnstable United States
8 March 2021
error when trying to use IntelliJ using openjdk15 v 15.0.2, language: 8. Lambdas java: cannot access javafx.application.Application class file for javafx.application.Application not found
KARMA GURUNG Level 5 Wyken United Kingdom
31 January 2021
Hi there when i try to select new task . I got this . but I downloaded code gym plugin again and selected it I got this. whats the solution .TIA
Miles Level 3 Evanston United States
28 January 2021
This took me forever to do, finally got it complete!
Paul from Hamburg Level 4 Hamburg Germany
2 January 2021
Hello all together and I wish you all Happy New Year! After successfully installing of plug-in in Intellij IDEA I've got a message "Intellij IDEA version does not match plugin version. Download suitable plugin?" Should I push "Yes" or "No" button? Sorry, I've found already a solution of my issue. I should see a video till end. Thanks a lot CodeGym team!
Ajibola Olayemi Level 3 Nigeria
24 December 2020
why are some tasks showing "unavailabe" or "closed" from the IntelliJ IDE?
Nathaniel Mayowa Omole Level 15 Lagos Nigeria
24 December 2020
I'm having an error. After installing codegym plugin i can only see the coditions tab of a task open to me. There is no solution tab on my screen, please what is the way out?