w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I run a single Java file having main() in Eclipse, without creating an entire Java project?

You can run the java file in the cmd command window.

make sure you have install the java environment.

java -version

output: java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

cd javafilepath

java yourjavafilename.java




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.