Practicing programming, I see program execution in Eclipse, on what and how else can you test Java programs and applications? To clarify, when creating an application on Android, we can run it on a virtual device or on your phone, even if it is empty, without a user interface. But we will see the application icon, we can launch it. And how can you "see" Java? Is it just Eclipse? Or other options are possible such as: desktop, pop-up window, etc. In other words, what you need to "nakodit" in order to visualize the code. What functions and commands create an interface for communicating (or creating feedback) with the user?

  • one
    Do you want to run a java program on android? Do you need a shortcut to run a java program on the desktop? The question is not very clear, try to formulate it so that your problem can be understood even by people who have no idea about it. - pavlofff

1 answer 1

You are asking "how to use Java without Eclipse"? If yes, then it is not difficult:

  1. Create a text file with the .java , for example HelloWorld.java and write the HelloWorld class in it containing the public static void main(String[] args) method.
  2. At the command prompt, move to the folder with the HelloWorld.java file and execute the javac HelloWorld.java command.
  3. And then execute the java -classpath . HelloWorld java -classpath . HelloWorld . The HelloWorld file will appear - your compiled program that you can run.

Details can be found in this article , for example.