Find the answer to your Linux question:
Results 1 to 5 of 5
Is there a java compiler that comes with linux? If not, any recommendations for one?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Location
    NYC
    Posts
    5

    java on linux


    Is there a java compiler that comes with linux? If not, any recommendations for one?

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Well, there is the free one, or else you could always install the one from Sun Microsystem (personnaly I use their JDK):

    http://java.sun.com/j2se/1.5.0/download.jsp

    ...and I choose "Download JDK 5.0 Update 6"

    I'm on Debian, so I download the .bin and transform it into a .deb with make-jpkg.

    You are on Fedora, so I guess you could directly download the .rpm.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    You have several options for running Java on Linux.

    The one I will recommend is the official, Sun-developed Java. It comes as an RPM (if you use RPMs), or as an executable file that will install Java for you. This is, in fact, Java, and works flawlessly. You can find it at the Java Sun site:

    http://java.sun.com/j2se/1.5.0/download.jsp

    Download the JDK if you wish to develop Java applications, otherwise, the JRE is fine.


    That said, the other main option is if you have a major problem with using non-free software. GNU puts out their gcj compiler, which is the GNU Java Compiler. It is NOT full Java, and many parts of Java may not work, ESPECIALLY GUIs. However, it is an option.

  4. #4
    Just Joined!
    Join Date
    Dec 2005
    Posts
    30
    You have the gcj (java compiler) for compiling java programs. But it is not the recommended way to compile java programs. gcj produces executable file directly. The correct way to execute java programs is to compile the program to produce java bytecodes and then interpret it. So jsdk from sun is the best. You can download it from java.sun.com.

  5. #5
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234

    Re: java on linux

    Quote Originally Posted by sunny22
    Is there a java compiler that comes with linux? If not, any recommendations for one?
    I'm developing Java programs in Linux Platform
    Proper Planing is a way of success

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •