Fedora Linux Support Community & Resources Center
  #1  
Old 20th May 2012, 10:12 PM
coolarif Offline
Registered User
 
Join Date: May 2012
Location: india
Posts: 36
linuxfirefox
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 ?.
Reply With Quote
  #2  
Old 20th May 2012, 11:52 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,097
linuxfirefox
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:

Quote:
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:
Quote:
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 11:58 PM.
Reply With Quote
  #3  
Old 21st May 2012, 04:35 PM
coolarif Offline
Registered User
 
Join Date: May 2012
Location: india
Posts: 36
linuxfirefox
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 ----------

Quote:
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 04:31 PM.
Reply With Quote
  #4  
Old 21st May 2012, 05:32 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,097
linuxfirefox
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:

Quote:
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 05:39 PM.
Reply With Quote
  #5  
Old 21st May 2012, 09:25 PM
coolarif Offline
Registered User
 
Join Date: May 2012
Location: india
Posts: 36
linuxfirefox
Re: installing netbeans using a file with .sh extension

Quote:
Originally Posted by marko View Post
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]
Reply With Quote
  #6  
Old 21st May 2012, 10:44 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,097
linuxfirefox
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)
Reply With Quote
  #7  
Old 23rd May 2012, 04:06 AM
coolarif Offline
Registered User
 
Join Date: May 2012
Location: india
Posts: 36
linuxfirefox
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 .
Reply With Quote
Reply

Tags
extension, file, installing, netbeans

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 20:09 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Ben Tre Photos - Premia de Mar Instagram Photos - Tolu Travel Photos on Instagram