LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2010, 02:47 PM   #1
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Rep: Reputation: 15
Installing Netbeans 6.8 on Ubuntu 9.10


Hi!

I have looked at similar threads, but I still have a gap in my understanding.

I have netbeans-6.8-ml-linux.sh file and a jdk-6u18-linux-i586.bin file.

In a similar thread I found:
Quote:
chmod +x <installer_file> <- make it executable
./<installer_file> <- this should start the installer
Which file is my installer file? The .sh or the .bin ?

There are other troubles as well, but for now, that's all.

;-)
 
Old 03-08-2010, 02:48 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
It's the .sh file. You'll need to make it executable first: chmod +x file.sh, then you simply run ./file.sh.

If you don't want to install to your home directory (I never do, I prefer /opt), you'll need to use sudo or create a netbeans directory and chown it.

Last edited by jay73; 03-08-2010 at 02:50 PM.
 
Old 03-09-2010, 02:15 PM   #3
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
Hi!

Okay, thanks for the advice about the .sh file.

I get this:

Code:
sooty@sooty-desktop:~/soft/linux$ ./netbeans-6.8-ml-linux.sh 
Configuring the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer
JDK 6 or JDK 5 is required for installing the NetBeans IDE. Make sure that the JDK is properly installed and run installer again.
You can specify valid JDK location using --javahome installer argument.

To download the JDK, visit http://java.sun.com/javase/downloads
So, I have the jdk-6u18-linux-i586.bin file and a jdk-6u18-linux-i586-rpm.bin file.

Thus I should install one of them I guess. I did the following and got:

Code:
sooty@sooty-desktop:~/soft/linux$ ./jdk-6u18-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6
and the rest of the license agreement. I agreed to the license agreement, but then got this:

Code:
Please enter "yes" or "no".
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
./jdk-6u18-linux-i586.bin: 447: cannot create install.sfx.9605: Permission denied
Checksumming...
/usr/bin/sum: install.sfx.9605: No such file or directory
[: 474: -ne: unexpected operator
[: 474: -ne: unexpected operator
chmod: cannot access `install.sfx.9605': No such file or directory
Extracting...
./jdk-6u18-linux-i586.bin: 477: ./install.sfx.9605: not found
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.
I came across the Java 6 SDK Installation Notes, but it didn't seem to have a troubleshooting heading.

A friend downloaded the files for me. Could it be incorrectly downloaded? Or do I need root permission?

So what would you advise me to do?

Thanks for your help!
 
Old 03-09-2010, 03:11 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well as it suggests, the installer doesn't have permission to create a file. What directory are you doing this in?
 
Old 03-09-2010, 07:29 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
If you are installing on Fedora, I recommend the rpm.bin; if ubuntu, then it is more convenient to install from the repositories. In either case, you will need to work as root (or use sudo).
 
Old 03-10-2010, 04:36 AM   #6
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
Hi!

jamescondron: I'm doing it in my home directory. I know this is not preferable. However, I installed Ubuntu 9.10 a few days ago, and I don't quite get how I'm supposed to change to root. Since I installed it, I thought that I was root, but it seems there is something different on Ubuntu than on Fedora.

So perhaps, my problem will be solved if I could be enlightened on how to become root, 'cause then I would have the permission and be able to install it in a different directory.

Thanks!
 
Old 03-10-2010, 04:46 AM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Welcome to a command that will suddenly make everything simpler; 'sudo'.

There are many options to sudo, the man page is a good place to start, but basically running
Code:
sudo command
will run 'command' as if root had done so.

That being said, you should have ownership on your home directory- put it this way, theres very little chance of accidentally messing that up Are you using the instructions at https://help.ubuntu.com/community/Netbeans? And are you absolutely you need the bleeding edge NetBeans? The NetBeans in the repository may not be the bang up to date one, which is because Ubuntu, by virtue of being Debian based, requires a helluva lot of testing before a package can be put in one of their repositories.

The beauty, though, of this is that you allow the system to pull in the dependencies and so on.
 
Old 03-10-2010, 07:39 AM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Quote:
but it seems there is something different on Ubuntu than on Fedora.
True. Ubuntu does not create a root account; as explained above, you simply preface system commands with "sudo" instead.

I recommend installing from the repositories: sudo aptitude install sun-java6-jdk

Last edited by jay73; 03-10-2010 at 07:41 AM.
 
Old 03-10-2010, 01:55 PM   #9
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
Hi!

I want to thank both of you very heartily for your help, and um... patience!

Yes, sudo does make life simpler, though I guess not necessarily easier or safer...

jamescondron: I have looked at the ubuntu-netbeans link and it will help me a lot. I probably don't need the bleeding edge version, but that's what is installed on the campus computers and what my friend had downloaded for me.

I agree that it would be better to install the version from the repository, but I have limited Internet credits. Um, do you perhaps know how big the netbeans package is?

I would like to try to get it installed from the files that I got from my friend's CD, before I download it from the repository.

Okay, so I sudo-ed the jdk install, and I got a

Code:
Java(TM) SE Development Kit 6 successfully installed.
and

Code:
sooty@sooty-desktop:~/soft/linux/jdk1.6.0_18$ ls
bin        jre          README_ja.html       sample
COPYRIGHT  lib          README_zh_CN.html    src.zip
db         LICENSE      register.html        THIRDPARTYLICENSEREADME.txt
demo       man          register_ja.html
include    README.html  register_zh_CN.html
However, when I try to install netbeans, it still doesn't find the JDK, and "which java" and "which javac" returns nothing, and I tried to compile a little java program, and (not surprisingly) it gives me this:

Code:
sooty@sooty-desktop:~/Programs$ javac HelloTester.java
The program 'javac' can be found in the following packages:
 * openjdk-6-jdk
 * ecj
 * gcj-4.4-jdk
 * gcj-4.3
 * jikes-classpath
 * jikes-kaffe
 * kaffe
 * sun-java6-jdk
Try: sudo apt-get install <selected package>
javac: command not found
Could someone just please relieve me from my ignorance? I thought that I had installed the JDK, or what? Probably I should set the PATH variable for the JDK or something? I just don't know exactly to what it should be set.

Your advice would be greatly appreciated...

;-)
 
Old 03-10-2010, 02:02 PM   #10
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
I'm about to show you something which, in the case of internet credits, may make things a lot easier. See, the .deb for all ubuntu packages can be found on the ubuntu packages website and it has a size indicator, check out http://packages.ubuntu.com/hardy/netbeans

http://ubuntuforums.org/showthread.php?t=150354 might help, too. (Though I would have hoped that it'd do that for you).

You can quickly verify that it is installed, and get the dir, with the locate command
Code:
locate javac
You'll probably get a few results, hopefully the one you want should be obvious enough, but if it isn't just post the output for us


EDIT:
I just installed the openjdk package, although on a debian box, and it put everything where it ought to be, which is odd. How did you install it? Did you use apt-get?

Last edited by jamescondron; 03-10-2010 at 02:09 PM. Reason: as above
 
Old 03-10-2010, 02:11 PM   #11
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Have you tried seeing if NetBeans and it's associated dependencies like the JVM are already available from Ubuntu?

sudo apt-get install netbeans


Only install things manually under popular Linux distros when you have no other option

Last edited by arashi256; 03-10-2010 at 02:12 PM.
 
Old 03-10-2010, 06:07 PM   #12
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, netbeans can be installed from the repositories. Still, I prefer the "original" because a) it offers more options and b) getting tomcat, mysql and some other softwares to work nicely with the netbeans package in the repositories can be quite a chore.


@azawa
You must unwittingly have installed a different java version before you installed sun java. The solution in this case is to install galternatives (which will appear under Applications > System Tools) and switch from whichever java is currently your default to sun java. Alternatively, you can work from the command line to achieve the same result (see the update-alternatives man page for details)

Last edited by jay73; 03-10-2010 at 06:09 PM.
 
Old 06-22-2010, 02:57 PM   #13
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks I managed to get it working. ;-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in installing netbeans 6.1 xixux Linux - Software 1 06-30-2008 10:38 AM
LXer: Sun injects NetBeans into Ubuntu LXer Syndicated Linux News 0 04-20-2007 01:01 PM
installing Netbeans bundle mcanallyd Linux - Newbie 2 03-27-2006 01:20 PM
Installing Java and Netbeans Bundle oookiezooo Linux - Newbie 4 01-25-2006 06:21 PM
Installing netbeans IDE linuxmandrake Debian 3 11-02-2005 08:25 AM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration