Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Geany w/sun java

  1. #1
    Join Date
    Nov 2006
    Beans
    55

    Geany w/sun java

    I want to use Geany so I can do my schoolwork at home but I cannot get it to compile my java apps and it gives me this:

    Code:
    javac "HelloWorld.java" (in directory: /home/----------/Desktop/Documents/Java)
    /bin/sh: javac: not found
    compilation finished unsuccessful
    From what I've read around the forum I think it's similar to Eclipse in that I have to set up sun java for it but Eclipse is too much of a hassle and I just want a lightweight IDE to get my schoolwork done. Any insight on this?

  2. #2
    Join Date
    Jul 2006
    Location
    Here
    Beans
    10,468

    Re: Geany w/sun java

    Did you install java? (sudo apt-get install sun-java6-plugin)

    Also, i have a question, does your geany have a green line down it? See pic
    Edit: Never mine i see at the main site, all the screen shots have the green line.
    Last edited by kerry_s; April 12th, 2007 at 06:10 AM.

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Geany w/sun java

    Quote Originally Posted by Mochtroid-X View Post
    I want to use Geany so I can do my schoolwork at home but I cannot get it to compile my java apps and it gives me this:

    Code:
    javac "HelloWorld.java" (in directory: /home/----------/Desktop/Documents/Java)
    /bin/sh: javac: not found
    compilation finished unsuccessful
    From what I've read around the forum I think it's similar to Eclipse in that I have to set up sun java for it but Eclipse is too much of a hassle and I just want a lightweight IDE to get my schoolwork done. Any insight on this?
    What a nice simple IDE, I installed it to try to help you, but now I'm going to keep it!

    No need to set anything up, apart from installing the JDK.

    Open up the console, and type:
    sudo apt-get install sun-java5-jdk

    That's all you need. Then in Geany, open up your Java source code file, and click Compile. It should work.

  4. #4
    Join Date
    Nov 2006
    Beans
    55

    Re: Geany w/sun java

    Hmmm, seems I had the JRE installed but not the JDK, but whenever I try to install it I get this problem:

    Code:
    The following packages have unmet dependencies:
      sun-java5-jdk: Depends: sun-java5-jre (= 1.5.0-08-0ubuntu1) but 1.5.0-10-1.1 is to be installed
                     Depends: sun-java5-demo (= 1.5.0-08-0ubuntu1) but it is not going to be installed
    I cannot seem to install the JDK in any way, is there a place I can download the .deb files for it and the demo that anyone knows of?


    -edit- I installed the Blackdown Java SDK and everything works fine now, except when I run the program the window containing it instantly closes...
    Last edited by Mochtroid-X; March 25th, 2007 at 12:32 AM. Reason: Fixed problem.

  5. #5
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Geany w/sun java

    If you're doing these for a programming class, you'd want the standard Sun Java.

    Try uninstalling the JRE, and then reinstalling sun java using the JDK package as I showed in my previous post.

  6. #6
    Join Date
    Jul 2006
    Location
    Here
    Beans
    10,468

    Re: Geany w/sun java

    You need to turn all your repos, sun-java is in multiverse.

  7. #7
    Join Date
    Nov 2006
    Beans
    55

    Re: Geany w/sun java

    I tried uninstalling the JRE but the JDK still would not downoad by giving me the unmet dependencies I showed in my last post. Is Blackdown Java's development kit not as good as the standard Sun JDK??

  8. #8
    Join Date
    Jan 2006
    Location
    Leuven, Belgium
    Beans
    3,414

    Re: Geany w/sun java

    There must be something wron with your /etc/apt/sources.list file... Mine is like this:
    Code:
    # 
    # deb cdrom:[Ubuntu 6.10 _Edgy Eft_ - Release Candidate i386 (20061017.1)]/ edgy main restricted
    
    
    #deb cdrom:[Ubuntu 6.10 _Edgy Eft_ - Release Candidate i386 (20061017.1)]/ edgy main restricted
    
    ##deb http://archive.ubuntu.com/ubuntu/ feisty main restricted
    ##deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted
    
    deb http://archive.ubuntu.com/ubuntu/ edgy main restricted
    deb-src http://archive.ubuntu.com/ubuntu/ edgy main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://archive.ubuntu.com/ubuntu/ edgy universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ edgy universe multiverse
    
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
    
    
    deb http://security.ubuntu.com/ubuntu edgy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted
    deb http://security.ubuntu.com/ubuntu edgy-security universe multiverse
    deb-src http://security.ubuntu.com/ubuntu edgy-security universe multiverse
    
    ## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
    #deb http://packages.freecontrib.org/ubuntu/plf edgy-plf free non-free
    #deb-src http://packages.freecontrib.org/ubuntu/plf edgy-plf free non-free
    
    ## Medibuntu - Ubuntu 6.10 "edgy eft"
    ## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
    deb http://medibuntu.sos-sts.com/repo/ edgy free non-free
    deb-src http://medibuntu.sos-sts.com/repo/ edgy free non-free
    
    ## wine
    deb http://wine.budgetdedicated.com/apt edgy main
    deb-src http://wine.budgetdedicated.com/apt edgy main
    
    ## Canonical commercial repo
    deb http://archive.canonical.com/ubuntu edgy-commercial main
    deb http://archive.canonical.com/ubuntu dapper-commercial main
    
    ## New amarok
    deb http://www.kubuntu.org/packages/amarok-latest edgy main
    
    ## Newest binary ati and nvidia drivers (tseliot)
    #deb http://albertomilone.com/drivers/edgy/nonlegacy/32bit binary/
    
    ## Beryl repo
    #deb http://ubuntu.beryl-project.org edgy main
    And sun's jre and jdk are the standards, blackdown has somewhat strange behavior sometimes... Sun's jre is also faster than blackdown's.

  9. #9
    Join Date
    Nov 2006
    Beans
    55

    Re: Geany w/sun java

    I copied and pasted you sources.list over mine and I still cannot download the JDK. What is going on here?

  10. #10
    Join Date
    Feb 2006
    Location
    Finland
    Beans
    189
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Geany w/sun java

    Can you install sun-java5-demo separately first?

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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