CrazyEngineers
  • JAVA-IN-LINUX

    Updated: Oct 25, 2024
    Views: 1.3K
    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😀
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Abhishek Rawal

    MemberApr 21, 2013

    NITISH CSE JHS
    i want to know where to write a java program in linux
    You can use editors like : emacs,gedit,GVim,etc.
    (I prefer emacs)

    NITISH CSE JHS
    i want to know how to run a java program in linux,thanks😀
    -Press ctrl+alt+T : Opens the Terminal
    -cd to directory where program is saved.(I assume you know this)
    - Type in terminal
    javac 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.
    Are you sure? This action cannot be undone.
    Cancel
  • NITISH CSE JHS

    MemberApr 21, 2013

    Abhishek Rawal
    You 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 terminal
    javac 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.
    thanks a lot sir
    Are you sure? This action cannot be undone.
    Cancel
  • Anand Tamariya

    MemberApr 22, 2013

    For 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.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register