I have made game in Java, and exported it to a Runnable Jar File. When I was developing in Eclipse I had a console along with my game how to get that console when my game is exported as an Runnable Jar File? (Do I have to run it as an console application?) Thanks
Asked
Active
Viewed 21 times
0
-
1Take a look at this https://www.java.com/en/download/help/javaconsole.xml – antonio Feb 22 '15 at 21:39
-
1`jar` files are by default executed with `javaw.exe` (windowless mode - without console). Consider adding GUI components (Swing maybe, like JTextArea) which would simulate console behaviour. – Pshemo Feb 22 '15 at 21:41
-
if you need to see the console you have to run it from console. use java -jar
– prasadmadanayake Feb 23 '15 at 04:53 -
Thank you! Is solved it with the sollution of prasadmadanayake – Ruben de groot Feb 23 '15 at 18:52