Click here to Skip to main content
15,665,942 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Sergey Alexandrovich Kryukov 26-May-13 17:19pm    
You need to read at list introductory information, before asking questions.

1 solution

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:[^].
Depending on it's content, the application package or class can be started as console and as windowed application:
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.

Share this answer
Sergey Alexandrovich Kryukov 26-May-13 17:18pm    
Good points, a 5.
Zoltán Zörgő 26-May-13 17:22pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900