Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: First Steps in Java

  1. #1
    Join Date
    Sep 2007
    Location
    Québec/Canada
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    First Steps in Java

    Hi everyone,

    I want to start programming in Java with Ubuntu 7.10 but i have absolutely no idea what i need to install to be up and running. I don't even know the difference between JSE and JEE...so if anyone of you can explain me what to do, i will be very happy ! Oh, i want to use the netbeans IDE from SUN.

    Thanks !

    Stochastics

  2. #2
    Join Date
    Jun 2007
    Location
    UK
    Beans
    1,386
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: First Steps in Java

    Oh, i want to use the netbeans IDE from SUN.
    Start by installing the netbeans package from the repositories (multiverse) - link.
    Code:
    sudo apt-get update
    sudo apt-get install netbeans5.5

  3. #3
    Join Date
    Apr 2007
    Beans
    14,781

    Re: First Steps in Java

    See the sticky. It has a link to getting set up with Java.

  4. #4
    Join Date
    Aug 2006
    Location
    Pittsburgh, PA
    Beans
    424
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: First Steps in Java

    Well for starters, there are three main Java APIs They are:

    Java Standard Edition(SE) - desktop applications
    Java Enterprise Edition(EE) - enterprise and web applications
    Java Micro Edition(ME) - Embedded applications, like cell phones

    You'll most likely want Java SE to build desktop applications.

    Also there are two important parts of Java, the JDK and the JRE.

    The Java Development Kit(JDK) is what developers use to build applications. It has the javac jacacompiler and other tools.

    The Java Runtime Eviroment(JRE) is what you need to run Java applications.

    You need to install teh most recent version, version 6 of each of them:
    sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-plugin
    Check the version with:
    java -version
    Mine Says:
    jon@jon-laptop-ubuntu:~$ java -version
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
    jon@jon-laptop-ubuntu:~$
    You now have all the tools.

    No go to http://www.netbeans.org and download netbeans 6, the one in the repos is 5.5.

    After that you'll need som tutorials check out:

    http://www.javaranch.com particularly the cattle drives.

    You should be good to go from there.

  5. #5
    Join Date
    Sep 2007
    Location
    Québec/Canada
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: First Steps in Java

    Thanks !

  6. #6
    Join Date
    Aug 2006
    Location
    Pittsburgh, PA
    Beans
    424
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: First Steps in Java

    I also forgot one thing.

    The Java SE API is located here, it has a list of all the libraries that make up Java SE. There are a lot of them!

    http://java.sun.com/javase/6/docs/api/

  7. #7
    Join Date
    Sep 2007
    Location
    Québec/Canada
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: First Steps in Java

    I've done the steps for the installation of Java, but, when i open the command line interface and write

    steeve@steeve-laptop:~$ java -version
    java version "1.4.2-02"
    Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
    Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)

    not the same version as you....what's going on here ?

    Stochastics

  8. #8
    Join Date
    Aug 2006
    Location
    Pittsburgh, PA
    Beans
    424
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: First Steps in Java

    Did you install the packages ending in 6?

    It appears you have JDK 1.4 installed, this is 2 versions behind the current one.

    Did you paste my command as it is shown. Also, you may need to enable the universe and multiverse sources.

  9. #9
    Join Date
    Sep 2007
    Location
    Québec/Canada
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: First Steps in Java

    Yes, I've done that, and in the synaptic manager, when i go to the installed programs, it shows sun-java6-bin, sun-java6-jdk, sun-java6-jre and sun-java6-plugin...any idea ?

  10. #10
    Join Date
    Sep 2007
    Location
    Québec/Canada
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: First Steps in Java

    Check this...

    steeve@steeve-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-plugin
    [sudo] password for steeve:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    sun-java6-bin is already the newest version.
    sun-java6-jdk is already the newest version.
    sun-java6-jre is already the newest version.
    sun-java6-jre set to manual installed.
    sun-java6-plugin is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    strange huh ?

Page 1 of 2 12 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
  •