![]() vscode folder) that launches before running your program (with the launch.json code).įirst, add the compile java task. I am not sure what the problem is exactly but you could make sure you are correctly compiling your Java files by adding a task to your workplace (by creating a tasks.json file and putting it in your. I hope someone can help me with my confusion or have an idea what the problem might be about. I am afraid that the issue might have something to do with the classpath, but I have tried several things with this such as setting it directly in the launch.json to my jdk and jre without luck.Īlso, currently I'm not using maven or anything like that - is that necessary in order to build the project from within vscode when using redhat java plugin? My launch.json looks like following: "configurations": [ This error seems to have just disappeared and I don't know whether I'm further away from solving the problems or closer to, I cannot replicate this error. This is not the only error I have gotten, before this error appeared, I got this problem: build project cannot be resolved to a typeĪt some classes that I am using in the main method. I press F5 to launch the application and the error I get is: Error: Could not find or load main class pacman.ExecutorĬaused by: : pacman.Executor java file, I have configured the launch.json file to find my main class etc. I have downloaded the various extensions that vscode suggests when opening a. I want to make it work in visual studio code. I downloaded an existing project that works fine in eclipse/intelliJ etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |