Please help I want to get the root folder of running jar.
D:\My Folder\My Folder1\ myjarfile
D:\My Folder\My Folder1\My Folder2
I want to save image in MyFolder2 using myjarfile. I have difficulties in coding in getting path of the executable jar:
String savePath = what goes there?(i want this "D:\My Folder\My Folder1\My Folder2")
ImageIO.write(image1, "png",new File(savePath));