What happens if you type this on the command line to run the application:
java -jar test.jar
Do you get any error messages or does the program run as you'd expect?
Note: Your test program prints out a line of text to the console window. If you start an executable JAR file by double-clicking it, the console window is not opened, and you won't see the output of your program. So, you don't see anything happen.
I am an IDIOT!! when executing it from the comand prompt it prints the line. Another question while we are on the subject... why doesnt it print a line to the command prompt if i have it open and then double click on the jar file?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com