Eclipse - 完成一个程序 [英] Eclipse - Finishing a program

查看:90
本文介绍了Eclipse - 完成一个程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Java程序,现在我想编译它,所以我可以把它发送给别人使用,等等。我如何在Eclipse中这样做?我已经谷歌了,但找不到它(O.o)。希望你可以帮助我:/!



我创建了一个可运行的.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆