Eclipse - 完成一个程序 [英] Eclipse - Finishing a program
问题描述
我创建了一个可运行的.jar,但似乎没有开始。我使用 System.out.println()
,但是有0个输出。为了输出一些东西,我必须做别的事情,还是只能在Eclipse中测试时输出控件中的东西,而不是编译程序时呢?
您可能需要创建可执行的Jar文件,除非是Web应用程序。 Googleeclipse create executable jar
在Windows上为System.out.println工作,您可能需要使用java而不是javaw。 请使用单独的StackOverflow问题单独提出问题,并在询问之前检查重复的问题。
I have created a Java program, and now I want to compile it, so I can send it to others to use, etc. How do I do this in Eclipse? I've Googled it, but can't find it (O.o). Hope you can help me :/!
I created a runnable .jar, but it doesn't seem to start. I use System.out.println()
, but there is 0 output. Do I have to do something else in order to output something, or can you only output something in the console when testing in Eclipse, and not when you have compiled the program?
You probably need to create an executable Jar file - unless it is a web application. Google "eclipse create executable jar"
On Windows for System.out.println to work you might need to use java instead of javaw. Please use separate StackOverflow questions for separate questions, and check for duplicate questions before asking.
这篇关于Eclipse - 完成一个程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!