How to pass gradle.properties key/value pairs into JUnit test when clicking VSCode “Run Test” codelens

We set several key/value pairs in our gradle.properties file. (eg LOGIN_UID, LOGIN_PWD) We can successfully reference them in our build.gradle (eg $LOGIN_UID) and our JUnit tests (eg System….

Browse referenced Java libraries in VS Code

I have VS Code set up with the Java Extension Pack. In the JAVA PROJECTS section of the sidebar I can see the files in my project as well as the referenced .jar files. The last time I used VS Code for …

org.json cannot be resolved to a module?

I’m learning Java. To read JSON in my application, I downloaded this JSON library; which is an automatic module. I included that library in my module descriptor like: module art { exports art….

Visual Studio Code Java Project export location

I’m using Visual Studio Code with the Java Extension Pack for a java application. As you can see in the image above, the downwards facing arrow button exports my project to a Jar, which is saved to …

How do you load a Sound object in tinySound in visual studio code?

Here is the example provided by the library tinySound : https://github.com/finnkuusisto/TinySound/blob/master/example/TinySoundExample.java I read the example and wrote the basic piece of code to test …

String[] no longer working in visual code studio

I updated Visual Studio Code, created a new file and messed around with Java and something broke. Can someone please help me out? import java.util.*; public class test { public static void main(…

Java Dependency Viewer not appearing in the Explorer Window of Visual Studio Code. Any command to force toggle the view?

I have the Java Dependency Viewer extension configured in my Visual Studio Code and it used to work perfectly fine. But off late, whenever I open up VSCode and try to work on a Spring/ Maven Project, …

Visual Studio Code: Java Extension Pack can’t locate java sdk when started over SSH

I’m trying to start a JAVA program on my Raspberry 4 from my Windows laptop using a SSH Connection in Visual Studio Code. The connection works (I can see I’m on the Raspberry in the Terminal) and I …