System.out.print("Results succesfully saved!"); will work just as well for the .jar program. However, it requires the user to run it in the terminal, so that he sees that the material is printed on a standard output.
If this is not what you need, then maybe you want to look at JOptionPane , which has several static methods for graphically displaying such messages.
This screenshot

for example, created by this fragment:
import javax.swing.JOptionPane; class Test { public static void main(String[] args) { JOptionPane.showMessageDialog(null, "Results succesfully saved!"); } }
source share