+ 1
How do I run my code on pc?
How do I go about running my code on my pc? I saved it as a .java file, and I changed to my desktop directory in my cmd. What do I do now?
14 odpowiedzi
+ 5
Check this out.
https://introcs.cs.princeton.edu/java/15inout/windows-cmd.html
+ 5
Find the class that has the main method and right click and go down to Run and then run as Java Application.
+ 4
Yes, find the class with main method in the ide you are using
+ 2
Just Google java compilation software?
+ 2
Like eclipse ide?
+ 2
Do I have to get a .class file?
+ 1
Most Easiest way is download java compilation software and run your programme on it.
+ 1
Yeah..
Like Codeblocks for c/c++
+ 1
When I try to run my program, it says, "The selection cannot be launched, and there are no recent launches". Sorry, I'm a beginner
+ 1
Depends if you are using an IDE or Text Editor (For Example: Notepad++)
+ 1
Notepad++
+ 1
I tried the ide, but it isnt working for me
+ 1
In ide?
0
if you have windows operating system though you download atom /vscode for best.
and download gcc /java package.
and press F5.
and if you have Ubuntu/Fedora
then open terminal and go in your file folder or directory.
and write commands
compilers name filename.hava
./a