|
28 | 28 | [](https://github.com/oracle/javavscode/actions?query=workflow:Java%20Platform%20Support%20for%20Visual%20Studio%20Code)
|
29 | 29 | [](https://github.com/oracle/javavscode/blob/main/LICENSE.txt)
|
30 | 30 |
|
31 |
| -Java Platform extension from Oracle brings full featured development support (edit-compile-debug & test cycle) to VS Code. It offers support for Maven and Gradle projects. |
32 |
| - |
| 31 | +Java Platform extension from Oracle brings full featured development support (edit-compile-debug & test cycle) to VS Code. It also offers support for Maven and Gradle projects. Applications using JDK 8 and above are supported. |
33 | 32 | ## Getting Started
|
34 |
| -1. Set JDK in `View | Command Palette | Preferences:Open User Settings (JSON) ...` __jdk: Jdkhome__ setting to point to JDK which Language Server will run on and projects will be compiled with. More below in section [Selecting the JDK](#selecting-the-jdk) |
35 |
| -2. If no JDK is present in your system then extension can setup things for you. More below in section [JDK Downloader](#jdk-downloader) |
36 |
| -3. Use __Java: New Project...__ " command to start creating new project, or |
37 |
| -4. Open the folder with existing __pom.xml__ for Maven or ___Gradle___ project files (_build.gradle, gradle.properties_). Language Server opens the project, resolves dependencies if any and performs priming build, or |
38 |
| -5. Simply create a new Java class file with `public static void main(String[] args)` method in opened folder and start coding, compiling, debugging. Works on JDK 11 and newer. |
| 33 | +1. Setting up the JDK |
| 34 | + - If no JDK is present in your system then the extension can set things up for you. For more details refer to [JDK Downloader](#jdk-downloader) section. |
| 35 | + - Set the JDK in the `View | Command Palette | Preferences: Open User Settings | Jdk: Jdkhome` setting to point to the JDK that the Language Server will run on and also by default use for running and compiling projects. |
| 36 | + - The extension requires JDK 17 or newer to run. |
| 37 | + - Optionally, set a different JDK to compile and run projects in the `View | Command Palette | Preferences: Open User Settings | Jdk › Project: Jdkhome` setting. |
| 38 | + - By default, the __jdk.jdkhome__ setting is used. |
| 39 | + - Projects can run on JDK 8 and above. |
| 40 | + - For more information, see the section [Selecting the JDK](#selecting-the-jdk). |
| 41 | +4. Use any one of the following ways to start coding, compiling and debugging in Java. |
| 42 | + - Simply create a new Java class with `public static void main(String[] args)` method. |
| 43 | + - Use the __Java: New From Template...__ command to create a new Java file. |
| 44 | + - Use the __Java: New Project...__ command to create a new project. |
| 45 | + - Open the folder with existing __Maven__ or __Gradle__ project files (_pom.xml_ or _build.gradle, gradle.properties_). |
39 | 46 |
|
40 | 47 | ## Supported Actions
|
41 | 48 | In the VS Code command palette :
|
@@ -159,19 +166,11 @@ When adding JavaDoc to code Oracle Java Platform extension assists by suggesting
|
159 | 166 | Oracle Java Platform extension provides Test Explorer view which allows to run all tests in a project, examine the results, go to source code and run particular test.
|
160 | 167 | 
|
161 | 168 |
|
162 |
| -## Supported Options |
163 |
| - |
164 |
| -* __jdk.jdkhome__ - path to the JDK, see dedicated section below |
165 |
| -* __jdk.verbose__ - enables verbose extension logging |
166 |
| - |
167 | 169 | ## Selecting the JDK
|
| 170 | +The JDK to build, run and debug projects is being searched in the following locations: |
168 | 171 |
|
169 |
| -The user projects are built, run and debugged using the same JDK which runs the |
170 |
| -Oracle Java Platform extension. The JDK is being searched in |
171 |
| -following locations: |
172 |
| - |
| 172 | +- `jdk.project.jdkhome` setting (workspace then user settings) |
173 | 173 | - `jdk.jdkhome` setting (workspace then user settings)
|
174 |
| -- `java.home` setting (workspace then user settings) |
175 | 174 | - `JDK_HOME` environment variable
|
176 | 175 | - `JAVA_HOME` environment variable
|
177 | 176 | - current system path
|
|
0 commit comments