JAVA-IN-LINUX
Hi,
i want to know where to write a java program in linux(i am running centos operating system),i should write in a file ,from command line or in the folders.
i want to know how to run a java program in linux,thanks😀
i want to know where to write a java program in linux(i am running centos operating system),i should write in a file ,from command line or in the folders.
i want to know how to run a java program in linux,thanks😀
Replies
-
Abhishek Rawal
You can use editors like : emacs,gedit,GVim,etc.NITISH CSE JHSi want to know where to write a java program in linux
(I prefer emacs)
-Press ctrl+alt+T : Opens the TerminalNITISH CSE JHSi want to know how to run a java program in linux,thanks😀
-cd to directory where program is saved.(I assume you know this)
- Type in terminaljavac NameOfFile.java
Note: For javac,you have to install OpenJDK-devel.
Note2: If you don't like compiling programs from terminal,you can use IDE like Eclipse. -
NITISH CSE JHS
thanks a lot sirAbhishek RawalYou can use editors like : emacs,gedit,GVim,etc.
(I prefer emacs)
-Press ctrl+alt+T : Opens the Terminal
-cd to directory where program is saved.(I assume you know this)
- Type in terminaljavac NameOfFile.java
Note: For javac,you have to install OpenJDK-devel.
Note2: If you don't like compiling programs from terminal,you can use IDE like Eclipse. -
Anand TamariyaFor any serious Java developer, knowledge of an IDE (eclipse, netbeans or RAD) is a must. These are available for Linux too. You should start from there.
You are reading an archived discussion.
Related Posts
Something *awesome* has just been launched on CE 😁 You always wanted it! You asked for it! & It's Live! But you've to find it out yourself! Hint: You don't...
About 90% give wrong answers. but hoping so CE's can give the correct answer ...👍
5-(5*6-2-4)+2=?????
I am from Kolkata.I want to crack GATE 2014.My stream is Civil Engg.
I am confused in selecting correspondence course.
Made Easy or Gateforum......Which is better for Civil?
I need...
In Greek mythology, Icarus, the son of Daedalus, was known to fly too close to the sun for his own good. Current solar technology is analogous to that myth in...
A Dutch company is looking for applicants to 'one way' trip to Mars. Yes, you read it right - it's a ONE WAY trip. Once you go, there's no return...