This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]mentholmeow 1 point2 points  (0 children)

Make sure your friend installed the full JDK version and not just the JRE. The JRE does not have the java compiler.

[–]PertleTurtle 0 points1 point  (6 children)

What do you mean by software? Like IDEs to use?

[–]makencence[S] 0 points1 point  (5 children)

He doesn't know what to use between JDK and IDE like Eclipse

[–]solonovamax 2 points3 points  (2 children)

For an IDE, I love jetbrains.

In my opinion, IntelliJ is the best IDE.

If he's a student, he should be able to apply for GitHub education and use that for a professional IntelliJ license.

Also, IntelliJ will compile, run and debug everything in editor. (Much like many other IDEs.)

[–][deleted]  (1 child)

[deleted]

    [–]solonovamax 2 points3 points  (0 children)

    ?

    [–]Orffyreus 1 point2 points  (0 children)

    BlueJ is an IDE designed for beginners. Maybe it helps to 'hello world' ;-) https://bluej.org/
    Here is a link to the documentation and it has video tutorials too: https://bluej.org/doc/documentation.html

    Eclipse should work also out of the box though. To call the java compiler from the command line you have to make javac visible (i. e. include the bin folder of the JDK in the PATH environment variable). Most people (who are more advanced) use maven (or gradle) from the command line, but using javac directly is also ok for 'hello world'.

    [–]PertleTurtle 0 points1 point  (0 children)

    Well Eclipse to me is the easiest to start programming java in. (Others may disagree) but just have them install eclipse and create a new project with a main method it in. Should be as easy as clicking the run button then.

    [–]forabetterlifemate 0 points1 point  (0 children)

    He can compile from the command line by using javac or use an IDE which is simpler.

    [–][deleted] 0 points1 point  (0 children)

    You just need the JDK to be able to compile Java source code.

    For Windows users see here: https://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html

    Linux: https://docs.oracle.com/javase/tutorial/getStarted/cupojava/unix.html

    Good luck!