So I went to the official Java site and downloaded a JDK 8 with NetBeans with .sh extension and it opens with a text editor and I have no idea what to do with it. I've opened it with gedit and at the top of screen is says it is loading that pack but its going really, really, REALLY slow. I just don't know if that is supposed to go that slow or am I doing something wrong. I apologize in advance for my stupidity, be patient with me, I love you!
2 Answers
Open terminal (Ctrl + Alt + T)
Change the current directory path where you have downloaded the
.sh
file in terminal using following commandcd path/to/downloaded-file
Take Read/Write/Execute permission by typing following command in terminal for the downloaded
.sh
filesudo chmod 777 downloaded-file.sh
Run the file by
./downloaded-file.sh
Done!
The above method described by Shivam Satija is correct but if you come across the module error while building up your java application then follow the below mentioned steps:
- Open
netbeans.conf
file undernetbeans/etc/
folder - Change the
"netbeans_jdkhome"
path
usually it isnetbeans_jdkhome="/usr"
you have to change it tonetbeans_jdkhome="/usr/lib/jvm/java-8-openjdk-amd64"
voila
Note: I have java-8-openjdk-amd64 installed but you may have some other So point to that folder