Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, Debian 5.0 I need to install Java compiler to start my learning on Java. On; Virtual Package: java-compiler Debian -- Details of package java-compiler in sid I found; ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    About Java compiler

    Hi folks,

    Debian 5.0

    I need to install Java compiler to start my learning on Java.

    On;
    Virtual Package: java-compiler
    Debian -- Details of package java-compiler in sid

    I found;
    gcj-4.3

    The GNU compiler for Java(TM)

    $ apt-cache policy gcj
    Code:
    gcj:
      Installed: (none)
      Candidate: 4:4.3.2-2
      Version table:
         4:4.3.2-2 0
            500 http://ftp.hk.debian.org lenny/main Packages
    gcj is on Debian repo


    However on the tutorial;
    "Hello World!" for Solaris OS and Linux (The Java™ Tutorials > Getting Started > The "Hello World!" Application)

    it uses "javac"

    I can't find it on repo. Whether it is Sun's package. I need to download on Sun
    website? TIA

    I found;
    javacc - A parser generator for use with Java

    on repo.


    B.R.
    satimis

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    Notes in my diary:
    Code:
    Installed sun-java6-jdk to try to get a standard Java system plus
    plugins for Iceweasel.
    
    This installed:
    java-common odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc
    
    Removed gcj components.
    
    Also installed sun-java-plugin for iceweasel (Firefox).
    
    All installs were from lenny repository:
    
    sun-java6-jdk:
      Installed: 6-12-1
      Candidate: 6-12-1
      Version table:
     *** 6-12-1 0
            500 http://ftp.us.debian.org lenny/non-free Packages
            100 /var/lib/dpkg/status
    So you'll need to enable the non-free section in /etc/apt/sources.list. Here are the lines I have in mine:
    Code:
    deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
    
    deb http://security.debian.org/ lenny/updates main contrib non-free
    deb-src http://security.debian.org/ lenny/updates main contrib non-free
    
    deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
    deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by drl View Post
    Hi.

    Notes in my diary:
    [CODE]Installed sun-java6-jdk to try to get a standard Java system plus
    plugins for Iceweasel.

    - snip -
    Hi drl,

    Thanks for your advice.

    That is java plugins NOT java compiler.

    I got it now after installing "openjdk-6-jdk"

    $ which javac
    Code:
    /usr/bin/javac

    B.R.
    satimis

Posting Permissions

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