0

How can I use java on my Macbook air?

15th Mar 2017, 1:15 PM
Dreaming
3 Answers
+ 7
you could install Intelij Idea and the java development kit (JDK)
15th Mar 2017, 1:20 PM
Kamil
Kamil - avatar
0
How about eclispe?Should I use that?
15th Mar 2017, 1:23 PM
Dreaming
0
Macs you can compile directly from terminal, just open up text-wrangler and write a program, save it with the .java extension, save to desktop for easy first access, type "cd desktop", once you are in the desktop folder type "javac *.java" or "javac your_program.java" (the * is a wildcard that will compile all .java files in that folder location or if you don't have multiple classes then just type the name of your program with the .java extension). After you compile just type "java your_program" do not type the file extension or the terminal will not run it. Also if you type help it will give you a list of command prefixes, some you can use in debugging your program like time it takes to run for example. The output will display in the terminal so I would advise full screen for larger outputs.
15th Mar 2017, 4:23 PM
sniperisdemoman
sniperisdemoman - avatar