Results 1 to 5 of 5

Thread: [SOLVED] java programming?

  1. #1
    Join Date
    Nov 2008
    Beans
    160
    Distro
    Ubuntu 12.04 Precise Pangolin

    [SOLVED] java programming?

    i use sudo apt-get install sun-java6-jdk netbeans
    to download netbeans and jvm and java sdk my question i just print a basic hello world in netbeans without seting any java path to sdk bin like you have to on a windows pc
    does netbeans on linux automatically detect java jdk

  2. #2

    Re: java programming?

    Netbeans looks for the jdk when it is installed (even on windows) so it keeps a path to it when for when you compile.
    Noli illegitimi carborundum

  3. #3
    Join Date
    Nov 2008
    Beans
    160
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: java programming?

    so regardless if the path is set or not it finds the jdk

    so setting the path to bin is really helpful for dos/command line program

  4. #4

    Re: java programming?

    From within NetBeans yes I believe that it does. It has been a while since I used it though.
    Noli illegitimi carborundum

  5. #5
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: java programming?

    Quote Originally Posted by aszxcv View Post
    i use sudo apt-get install sun-java6-jdk netbeans
    to download netbeans and jvm and java sdk my question i just print a basic hello world in netbeans without seting any java path to sdk bin like you have to on a windows pc
    does netbeans on linux automatically detect java jdk
    Quote Originally Posted by leg View Post
    Netbeans looks for the jdk when it is installed (even on windows) so it keeps a path to it when for when you compile.
    Netbeans is written in Java. So at least the JRE must be present in order for even netbeans to run.

    But you can go to preferences and manually set it.

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
  •