Shell script to extract single file from a bunch of jar files
Each jar file has a manifest file in META_INF/MANIFEST.MF I have to read each…
August 14, 2019
Assuming you have a java project and is using Visual Studio Code as IDE. All of your programs were running perfectly fine. Suddenly, you ran a main class and you encountered with this error:
Could not find or load main class
And, there is no compilation errors. No error in problems tab in IDE. Only warnings may exists.
This solution assumes your java project/program is having no compilation error.
This issue happens most of the time when you have moved/renamed multiple files or folders in your project. The issue exists with Visual Studio Code as its registry becomes out of sync with these bulk files rename operation.
The solution is to remove the workspace directory. You may find the locations:
Windows : %APPDATA%\Code\User\workspaceStorage\
MacOS : $HOME/Library/Application Support/Code/User/workspaceStorage/
Linux : $HOME/.config/Code/User/workspaceStorage/
You may need to restart your Visual Studio Code. And, try to run now. It should work.
Each jar file has a manifest file in META_INF/MANIFEST.MF I have to read each…
Listing down the commonly used Elastic Search queries. You can get search…
One of the biggest task while writing article or blog is to have right set of…
Being a drupal user from last around 5 years, I used to know small codes for…
Introduction I have created a view, with some filters and content fields. I will…
You might need to put sudo before above command. The command will show details…
In this post, we will see some of the frequently used concepts/vocabulary in…
System design interview is pretty common these days, specially if you are having…
Introduction You are given an array of integers with size N, and a number K…
Graph Topological Sorting This is a well known problem in graph world…
Problem Statement Given a Binary tree, print out nodes in level order traversal…
Problem Statement Given an array nums of n integers and an integer target, are…