Commit 46c441d7 authored by Martin Deinhofer's avatar Martin Deinhofer
Browse files

added hint for launch.json

parent 3fe0960f
......@@ -77,6 +77,28 @@ Visual Studio Code provides a Remote Development Environment using SSH to connec
You will need Visual Studio with [Java IDE Pack](https://marketplace.visualstudio.com/items?itemName=pverest.java-ide-pack) and [Remote Development Extension Pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack).
Please read the [tutorial for remote development with SSH](https://code.visualstudio.com/docs/remote/ssh).
#### Running/Debugging Java Code remotely
You can directly run/debug the Java program remotely. In order for that the JVM must know the location of the JNI shared object. This can be configured with the
```
-Djava.library.path=jni
```
argument.
You can set the vm arguments in the launch.json file. To open it, press ```F1``` and enter ```Open launch.json```
```json
{
"type": "java",
"name": "Debug (Launch)-HelloJNI<HelloJNI>",
"request": "launch",
"mainClass": "java_exercises8_1_1.HelloJNI",
"projectName": "HelloJNI",
"vmArgs": "-Djava.library.path=jni"
}
```
### Eclipse with remote system explorer
Eclipse supports remote code editing, but with no IntelliSense support.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment