<---- template headericclude ----->
installing netbeans using a file with .sh extension
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2012
    Location
    india
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    installing netbeans using a file with .sh extension

    Hi buddies !

    I need to install netbeans using a file with .sh extension.

    can you please guide me install it on fedora 16 ?.

  2. #2
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    11,362
    Mentioned
    87 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    If you're doing a single user install of netbeans (that is, you're going to put the netbeans code in a directory area you own, for example /home/coolarif/local ), then it's really simple:

    chmod +x netbeans-7.1.2-ml-linux.sh
    ./netbeans-7.1.2-ml-linux.sh
    or even simpler, you can skip the change mode step if you run the script via the shell:
    sh ./netbeans-7.1.2-ml-linux.sh
    (follow the instructions shown in the installer window that shows, when done there should be
    a netbeans icon in your "development" folder)

    I usually put the netbeans and glassfish directories under ~/local in my home directory and give it permission to install junit

    All this assumes you have a Java JDK installed, see
    http://www.oracle.com/technetwork/ja...ads/index.html

    It's important to have your JDK's registered in your Fedora system via the alternatives tool
    (see http://www.mjmwired.net/resources/mj...-f16.html#java Note that page guides you as if you're putting in a JRE,
    you want the JDK, otherwise it's okay)


    I use both 1.6.0_32 and 1.7.0_04

    (1.7.0_04 usually and 1.6.0_32 as a backup )
    Last edited by marko; 20th May 2012 at 10:58 PM.

  3. #3
    Join Date
    May 2012
    Location
    india
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    Firstly i would like to thank you Marko .

    ya i installed jdk . Your assumption is ok.

    I chose second option from your list. I got following response from the terminal :

    # sh ./netbeans-7.1.2-ml-linux.sh
    Configuring the installer...
    Searching for JVM on the system...
    Extracting installation data...
    Running the installer wizard...
    Can`t initialize UI
    Running in headless mode
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main"


    Really it caused headache to me . I just tried without "./" . The response was same.

    ---------- Post added at 08:05 PM ---------- Previous post was at 07:59 PM ----------

    I use both 1.6.0_32 and 1.7.0_04

    (1.7.0_04 usually and 1.6.0_32 as a backup )
    Can we use more versions ? Will it not conflict ?
    Last edited by coolarif; 21st May 2012 at 03:31 PM.

  4. #4
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    11,362
    Mentioned
    87 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    Don't do the install as root, I was suggesting a single user installation. In that case you'd run the script as your normal user.


    If you have to do a system wide installation, then 'su' to root with the environment (dash after su) option:

    su -
    <root password>
    sh ./netbeans-7.1.2-ml-linux.sh
    Your initial attempt failed because without the "-" flag, the root environment didn't have the proper X11 settings


    You can have any number of JDKs installed, but it's a good idea to use the alternatives tool to configure the default one. Also when netbeans is up, you set the JDK it uses in "Tools -> Java Platforms" from the main menu bar but the list can have more than one JDK
    Last edited by marko; 21st May 2012 at 04:39 PM.

  5. #5
    Join Date
    May 2012
    Location
    india
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    Quote Originally Posted by marko
    You can have any number of JDKs installed, but it's a good idea to use the alternatives tool to configure the default one. Also when netbeans is up, you set the JDK it uses in "Tools -> Java Platforms" from the main menu bar but the list can have more than one JDK
    O Really its nice tips . I noted down . Thanks marko

    ---------- Post added at 12:55 AM ---------- Previous post was at 12:45 AM ----------

    I tried it more times . It did not work . I just closed the terminal and reopened it (i know it wont do magic) . This attempt worked fine .
    Hurray.............................. I (we) installed netbeans on fedora 16.................. Thanks marko ....

    i did a mistake , i ran the command as root user...

    This is final result from the terminal :

    [arif@MyLapZ560 ~]$ sh ./netbeans-7.1.2-ml-linux.sh
    Configuring the installer...
    Searching for JVM on the system...
    Extracting installation data...
    Running the installer wizard...
    [arif@MyLapZ560 ~]$

    [SOLVED]

  6. #6
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    11,362
    Mentioned
    87 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    When you have it running and a project loaded, you can pick the jdk the project will use by going in:

    Run->Set Project Configuration -> Customize -> Libraries

    you might also need to set the "Source/Binary Format" menu in
    Run->Set Project Configuration -> Customize -> Sources
    (that second one only is necessary if you change from a higher jdk version to a lower and the Format
    version was too high and the source has code the older jdk can't handle)

  7. #7
    Join Date
    May 2012
    Location
    india
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: installing netbeans using a file with .sh extension

    okay thanks a lot ... Now i'm looking for the installation guide on LAMP .... googl(e)ing about it. Thanks marko .

Similar Threads

  1. I got this problem in running c++ file in netbeans
    By fedora lover in forum Programming & Packaging
    Replies: 4
    Last Post: 25th November 2009, 03:40 PM
  2. Installing netbeans 4.1
    By Pete051 in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 20th November 2009, 08:34 PM
  3. Need help installing NetBeans 6.7
    By nobleman_james in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 7th October 2009, 05:00 AM
  4. installing netbeans
    By jon80 in forum Using Fedora
    Replies: 5
    Last Post: 11th August 2008, 09:01 PM
  5. Installing NetBeans On F8
    By clifweb in forum Using Fedora
    Replies: 1
    Last Post: 7th December 2007, 01:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]