• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linux : Installing Netbeans for Java  RSS feed

 
Frederick Douglass
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already have Ecipse installed but it seems as I get more advanced, Netbeans has the options I will need.

And while I am used to installing stuff on Linux using line commands on Terminal ,
the catch is that even the sites that provide the downloads do NOT provide Linux installation instructions.

What I have downloaded so far :

* jre1.8.0_71
* netbeans-8.1-javase-linux.sh
* jdk-8u73-nb-8_1-linux-x64.sh

Please tell me anything I must still download ( if necessary ) and the exact Linux commands to install Netbeans from there.
Thank you very much.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use jre8u71 any more; it appears u73/74 is now available.
Are these instructions not suitable? Along with these instructions for NetBeans?
 
Liutauras Vilda
Sheriff
Posts: 4930
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frederick Douglass wrote:What I have downloaded so far :

* jre1.8.0_71
* netbeans-8.1-javase-linux.sh
* jdk-8u73-nb-8_1-linux-x64.sh

One small thing. If you're going to compile .java source files, you need jdk, which means you don't need separately install jre, because jdk includes jre.
 
Frederick Douglass
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the Oracle link ( which I was previously unaware of). But it still leaves me confused.
It says :

“The following table lists the options and instructions for downloading the JDK 8 release on a Linux platform.”


I have a 64-bit system but Debian rather RPM based and the relevant instructions
refer to “jdk-8uversion-linux-x64.tar.gz” and its unpacking.
However, as you can see from my original list of files, I do not have any tar files.
If I do have the wrong files is it worth figuring out how I managed to do that ?
 
Liutauras Vilda
Sheriff
Posts: 4930
334
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, it seems you downloaded bundled Java Development Kit along with Netbeans. In this bundle jdk comes as a shell script. In linux default used is a bash. What next you need to do in order to install Java.

1. Go to the directory where jdk file is located
2. Change permissions in order to be able to execute. chmod +x jdk-8u73-nb-8_1-linux-x64.sh
3. Execute ./jdk-8u73-nb-8_1-linux-x64.sh

After install, check if all good by using command java -version and javac -version.
 
Andrew Polansky
Ranch Hand
Posts: 310
18
Linux MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NetBeans bundles with JDK on Linux? I know there are such bundles, but I didn't know there are such for Linux.

I always install NetBeans by grabbing an installation package from https://netbeans.org/downloads/. Then I install it exactly as Liutauras said, by executing the .sh file. A graphical installer appears and entire installation happens in the GUI.

If you are using Ubuntu or any derivatives (like Mint) you can use my script to fully automatically install JDK in the system. You can find a quick tutorial how to use it on my blog.
 
Liutauras Vilda
Sheriff
Posts: 4930
334
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam Scheller wrote:NetBeans bundles with JDK on Linux? I know there are such bundles, but I didn't know there are such for Linux.

It is not easy to navigate, but there is such here.
 
Frederick Douglass
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I must admit I am confused.

The past few replies have mentioned installing Java but I already DO have it installed with Eclipse ( as originally mentioned ).

Are you saying that to install NetBeans I must first install a NEW copy of Java ?

Call me naive or whatever but I DID assume that if Java was installed on the system then whatever IDE I happened to use at any given time
would use that Java.

But do I take it now that each IDE runs its OWN version of Java ?
 
Andrew Polansky
Ranch Hand
Posts: 310
18
Linux MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have JDK already installed, then you don't need a new copy. Simply grab NetBeans that is not bundled with Java (from https://netbeans.org/downloads/) and install it following Liutauras instructions. NetBeans should automatically detect path to your JDK.
 
Frederick Douglass
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I did follow the instructions that Liutauras gave and as there were only 3 commands to execute, it was easy in the end.

I now have NetBeans up and running.,

I must admit however that I did seriously consider setting up NetBeans on my Windows 10 VM ( running with Linux Mint as host ).

I had seen somebody else simply download NetBeans onto HIS version of Windows 10 and right-click on the download.

But for me, the moral of this thread, yet again, is that Linux is preferable,PROVIDED I actually know the relevant Terminal line commands.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!