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.