eclipse运行java程序没反应,没有eclipse运行java程序?

Hey guys, I''ve started learn java and i''m using eclipse to code my projects. When i "run" my program from eclipse there''s a console in eclipse that show me everything i''ve done. But how can i run my programs without using eclipse? Like skype for example. If other ppl shall use my program they will need eclipse etc and that won''t be good either.

Another thing. In c++ i can write code so I can write a value in the console. for example 5.

And then it can multiply 5 by 10 or something and show me the answer. Can I do this with java? How can i run minecraft as a normal program, but not my own? :S

解决方案

What have you learned before you got here? Not much.

What have Eclipse and Java to do with each other? One thing: Eclipse is one of many Java IDEs. Here is a list of the most used ones[^], but you can write java source with notepad if you don''t have anything else. The only thing you need is the environment with the compiler (JDK[^]). Once you have your source, you compile it, package it, and simply run it: http://www.cs.swarthmore.edu/~newhall/unixhelp/debuggingtips_Java.html[^].

Depending on it''s content, the application package or class can be started as console and as windowed application:

Quote:The java and javaw tools start a Java™ application by starting a Java Runtime Environment and loading a specified class.

The javaw command is identical to java, except that javaw has no associated console window. Use javaw when you do not want a command prompt window to be displayed. The javaw launcher displays a window with error information if it fails.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值