Welcome to the forum!
I want to use vector images in my code.This is because I've used raster images(.png) previously in my code inorder to set the icon for my jlabel.
You will need to use a 3rd party library to use SVG. Here is an Oracle Sun Developer article from several years ago - included because it is from Oracle.
There are other more recent offerings on the web. Here is a simple one that illustrates it
Can't be done by a beginner. You will have noticed (or should have noticed) that the person who does know how to do it required several hundred lines of code and a long list of supporting classes. So rejecting that expertise and asking for something simple is rather absurd.
But,I'm a java beginner and I'm unable to get the stuff clearly in the blog that u've suggested.
Did you download,compile and try the source code and example from the link?
Let me guess - NO. Am I right?
The best way to learn is to actually do it. You have a link. It has source code. It has an example. Download the source code, compile it and try the example.
Don't bother asking for more help if you aren't willing to make an effort yourself.
So, pls tell me how to set the .svg image as icon for the jlabel in java without using any 3rd party tool.
We already gave you the answer to that. As already said above
You will need to use a 3rd party library to use SVG.
You can choose to believe it or not. That is your choice. You ask a question. You got the answer. Deal with reality.