Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99124

Not able to run Tests in VS code

$
0
0

I am fairly new to programming( 1st year CompSci). I decided to write my java code in VSCode. I Have a test file but whenever i try to run the test i get the following errors in the Debug Console:-

Unrecognized option: -ea,--enable-preview

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

I have a "lib" folder in the folder containing my java and test file which contains the junit-platform-console-standalone-1.5.2.jar

If I click on Debug Test , I get a popup error saying

"Failed to launch debuggee VM. Reason: com.sun.jdi.connect.VMStartException: VM did not connect within given time: 10000ms"

Any Ideas on how to fix this please?

Thank You.


Viewing all articles
Browse latest Browse all 99124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>