Programming Taskbook


E-mail:

Password:

User registration   Restore password

Russian

SFedU SMBU

1100 training tasks on programming

©  M. E. Abramyan (Southern Federal University, Shenzhen MSU-BIT University), 1998–2024

 

Examples | Java | Configuring IDE

PrevNext


Configuring IDEs for Java language

This page briefly describes how to config the VS Code and Eclipse IDEs for Java.

VS Code

1. Install Java Development Kit 17 (for example, https://download.oracle.com/java/17/archive/jdk-17.0.1_windows-x64_bin.msi). During installation, select all suggested components.

2. Install VS Code https://code.visualstudio.com/download#, (Windows, 64 bit, User Installer or System Installer). If you select System Installer, the environment will be installed in the directory C:\Program Files, if you select User Installer, then the environment will be installed in the subdirectory of the current user directory, for example, C:\Users\<UserName>\AppData\Local\Programs\Microsoft VS Code.

3. Run the PT4Setup program (Start | All programs | Programming Taskbook 4 | PT4 Setup) and make sure that the taskbook has detected the Visual Studio Code (Java) IDE. If the path to the executable file Code.exe is not found by the taskbook, then specify it by clicking the Browse button. Close the PT4Setup program.

4. Run the PT4Load program, call its context menu (by right-clicking) and select the Visual Studio Code (Java) command In the Task field, enter the name of a task (for example, Begin1) and press [Enter] of click the Load button. The created template file will be loaded into the VS Code editor. The first time you load a file with the .java extension, the VS Code editor will prompt you to install the Java language extension pack. When this extension pack is installed, you will be able to start Java programs from VS Code by pressing [F5].

As a result of the steps described above, the taskbook will be set up to be used with the VS Code environment for the Java language.

Eclipse

1. Download and run the Eclipse installer eclipse-inst-jre-win64.exe (for example, from https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2021-12/R/eclipse-inst-jre-win64.exe). On the first installation step, select the Eclispse IDE for Java Developers option. On the second installation step, pay attention to the directory in which the Eclipse IDE will be located, because the path to this directory will need to be specified when setting up the Eclipse IDE for the taskbook (by default, the PyCharm IDE is installed in a subdirectory of the directory associated with the current user, for example, C:\Users\<UserName>\eclipse\java-2021-12).

2. Run the PT4Setup program (Start | All programs | Programming Taskbook 4 | PT4 Setup) and make sure that the taskbook has detected the Eclipse (Java) IDE. If the path to the executable file eclipse.exe is not found by the taskbook, then specify it by clicking the Browse button. The file eclipse.exe may have, for example, the following path: C:\Users\<UserName>\eclipse\java-2021-122\eclipse\eclipse.exe. Close the PT4Setup program.

As a result of the steps described above, the taskbook will be set up to be used with the Eclipse environment for the Java language.


PrevNext

 

  Рейтинг@Mail.ru

Designed by
M. E. Abramyan and V. N. Braguilevsky

Last revised:
01.01.2024