Find the answer to your Linux question:
Results 1 to 3 of 3
I have installed j2sdk1.4.2_08, but javac will not compile my programs. I type Code: javac source.java but all it does is display the options for javac, no matter whether the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45

    java compiler will not compile


    I have installed j2sdk1.4.2_08, but javac will not compile my programs. I type

    Code:
    javac source.java
    but all it does is display the options for javac, no matter whether the source.java file existed or not.

    Even if I did

    Code:
    javac ./source.java
    the results were the same.

    Any ideas would be appreciated.

    Thanks,

    mr.popper[/code]

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Posts
    25
    Why you install j2sdk1.4.2_08?
    Install jdk-1_5_03-nb-4_1-linux.bin
    Make sure you have execute permissions on the file (Chmod 755)
    then just do ./jdk-1_5_03-nb-4_1-linux.bin

    Go to http://java.sun.com/j2se/1.5.0/download-netbeans.html for the file.
    It is the first one, it ok just do it even if you do not want net beans ^^
    Please just try it mr.popper because I know how you can be *wink wink*

    Tell me if this works I will try it on my own computer.

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    4
    Is javac in your path ??
    When i first put java on my computer and then tried to run limewire it wouldent work untill i set JAVA_HOME

    HOPE THIS HELPS

Posting Permissions

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