Ultimate Sidebar

How to Write Java Applications on Linux

104 29

    Emacs

    • 1). Download and install emacs software if it is not already installed on your machine (see Resources section.) This can often be achieved by searching for "emacs" in your particular distribution's package manager.

    • 2). Open a new emacs file once it has been installed on your computer by typing Ctrl > X and Ctrl > F, followed by your new file name.

    • 3). Begin writing your Java program. Emacs will recognize the programming language as you type it and will use syntax-coloring to assist you in your programming. For instance, emacs will turn the preprocessor directive "include" one color, while turning "if" and "void" and other function-specific terms other colors.

    • 4). To save your Java program, type Ctrl > X and Ctrl > S. The file will save so you can return to it later.

    Eclipse

    • 1). Download and install the free Eclipse software package onto your machine (see Resources section.) Eclipse is an open-source IDE (integrated development environment) designed to make it easier to program in Java, Javascript and other mobile platforms.

    • 2). Open a new file once Eclipse is installed on your machine.

    • 3). Begin typing your Java program. Like emacs, Eclipse will recognize programming language-specific words and will color code them for you, making running and debugging easier. Eclipse also gives easy access to Java packages and directories, making Java programming easier.

    • 4). When your program is complete, save your file so you can return to it later.

Source: ...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.