+ 1

How do you run a java code?

Hello! I use Sublime Text as a code editor and I was trying to code with java, but I came across a problem: how do you run a program that, for example, opens a window?

1st Sep 2019, 8:49 PM
Sebastián Garavano Kleiner
Sebastián Garavano Kleiner - avatar
8 Respuestas
+ 4
JDK and command line or ide
1st Sep 2019, 9:54 PM
Marina Vasilyova
Marina Vasilyova - avatar
+ 3
use eclipse 😆
1st Sep 2019, 9:15 PM
Anton Böhler
Anton Böhler - avatar
+ 3
After you have the JDK installed, on the command line, write java followed by the filename without the .class extension resulting from the compilation.
1st Sep 2019, 10:36 PM
Sonic
Sonic - avatar
+ 2
I'll definitely try it, but just for curiosity, isn't there another way?
1st Sep 2019, 9:27 PM
Sebastián Garavano Kleiner
Sebastián Garavano Kleiner - avatar
+ 2
Thanks!!
1st Sep 2019, 9:59 PM
Sebastián Garavano Kleiner
Sebastián Garavano Kleiner - avatar
+ 2
That is after I download JDK right?
1st Sep 2019, 10:37 PM
Sebastián Garavano Kleiner
Sebastián Garavano Kleiner - avatar
+ 2
Here's a step by step guide on how to install JDK, IDE, run the code and other stuff (just scroll down) : https://www.programiz.com/java-programming
1st Sep 2019, 10:47 PM
voja
voja - avatar
0
Thanks to all of you!!
1st Sep 2019, 10:40 PM
Sebastián Garavano Kleiner
Sebastián Garavano Kleiner - avatar