What Java code do i need to add to "Hello World" to make it a runnable Jar file in eclipse? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What Java code do i need to add to "Hello World" to make it a runnable Jar file in eclipse?

I wanna see "Hello World" on an independent window application but not on console. What code shall I add? Thanks.

28th Apr 2019, 9:23 PM
Khaing Khaing Mon
Khaing Khaing Mon - avatar
3 Answers
+ 4
If you don't want to use the console you need graphics (gui). Here is a tutorial about the swing class. https://www.javatpoint.com/java-swing Runnable jar file: https://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-37.htm&cp=1_3_1_4
28th Apr 2019, 9:41 PM
Denise Roßberg
Denise Roßberg - avatar
+ 4
VegetarianFalcon Your welcome :)
28th Apr 2019, 9:45 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Thanks, Denise
28th Apr 2019, 9:42 PM
Khaing Khaing Mon
Khaing Khaing Mon - avatar