Netbeans does not start on fresh Ubuntu 18.04 installation
After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with
sudo apt install netbeans
some other java programms (at least Eclipse) do not start too.
when starting netbeans from commandline the JVM prints folowing WARNINGS:
➜ ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~
java crash netbeans jvm
add a comment |
After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with
sudo apt install netbeans
some other java programms (at least Eclipse) do not start too.
when starting netbeans from commandline the JVM prints folowing WARNINGS:
➜ ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~
java crash netbeans jvm
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
1
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago
add a comment |
After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with
sudo apt install netbeans
some other java programms (at least Eclipse) do not start too.
when starting netbeans from commandline the JVM prints folowing WARNINGS:
➜ ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~
java crash netbeans jvm
After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with
sudo apt install netbeans
some other java programms (at least Eclipse) do not start too.
when starting netbeans from commandline the JVM prints folowing WARNINGS:
➜ ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~
java crash netbeans jvm
java crash netbeans jvm
asked May 4 '18 at 15:00
neoexpertneoexpert
86114
86114
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
1
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago
add a comment |
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
1
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
1
1
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago
add a comment |
7 Answers
7
active
oldest
votes
Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website
After downloading Netbeans 8.2, follow these steps:
sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
and follow on screen instructions. Import settings and launch the netbeans from app drawer.
Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using
sudo apt list --installed
and remove all packages with name as openjdk-8- by using,
sudo apt autoremove <package_name>
For Installation of Netbeans 9.0 see here.
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
add a comment |
I was able to get it working by installing and setting JDK8 as default.
I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux
specifically:
Adding the PPA repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Install Java 8, and set as default:
sudo apt install oracle-java8-set-default
I was able to install using the netbeans .sh file installed after that
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
add a comment |
Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.
To see the errors you can check the log file from the menu->view->IDELog
System Info:
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...
------------------------------------------------------------------------------
Finally what worked for me is.
Finally what worked for me is setting the java_home
path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate
command. change path for java_home inside
/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Restart the Netbeans and it will work all well.
NOTE: Changing the above in system /etc/netbeans.conf
directory will not work.
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
add a comment |
I was able to solve this by running sudo update-alternatives --config java
and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.
add a comment |
Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):
sudo apt remove netbeans
sudo apt remove openjdk-11-*
Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):
sudo apt install openjdk-8-jdk
wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
sudo sh netbeans-8.2-linux.sh
When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64
.
After installation you can access it via
/usr/local/netbeans-8.2/bin/netbeans
if you chose default location.
add a comment |
What solved the problem for me was two things:
- Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)
- Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1
add a comment |
I have the same problem ,though i resolved it!
Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
It worked for me , may work for you !
I am learner, your suggestion are always welcome!
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1032030%2fnetbeans-does-not-start-on-fresh-ubuntu-18-04-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website
After downloading Netbeans 8.2, follow these steps:
sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
and follow on screen instructions. Import settings and launch the netbeans from app drawer.
Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using
sudo apt list --installed
and remove all packages with name as openjdk-8- by using,
sudo apt autoremove <package_name>
For Installation of Netbeans 9.0 see here.
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
add a comment |
Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website
After downloading Netbeans 8.2, follow these steps:
sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
and follow on screen instructions. Import settings and launch the netbeans from app drawer.
Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using
sudo apt list --installed
and remove all packages with name as openjdk-8- by using,
sudo apt autoremove <package_name>
For Installation of Netbeans 9.0 see here.
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
add a comment |
Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website
After downloading Netbeans 8.2, follow these steps:
sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
and follow on screen instructions. Import settings and launch the netbeans from app drawer.
Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using
sudo apt list --installed
and remove all packages with name as openjdk-8- by using,
sudo apt autoremove <package_name>
For Installation of Netbeans 9.0 see here.
Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website
After downloading Netbeans 8.2, follow these steps:
sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh
and follow on screen instructions. Import settings and launch the netbeans from app drawer.
Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using
sudo apt list --installed
and remove all packages with name as openjdk-8- by using,
sudo apt autoremove <package_name>
For Installation of Netbeans 9.0 see here.
edited Oct 1 '18 at 23:17
answered May 4 '18 at 18:00
KulfyKulfy
4,33151442
4,33151442
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
add a comment |
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
1
1
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.
– neoexpert
May 4 '18 at 18:18
5
5
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.
– Captain Giraffe
May 7 '18 at 12:12
add a comment |
I was able to get it working by installing and setting JDK8 as default.
I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux
specifically:
Adding the PPA repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Install Java 8, and set as default:
sudo apt install oracle-java8-set-default
I was able to install using the netbeans .sh file installed after that
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
add a comment |
I was able to get it working by installing and setting JDK8 as default.
I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux
specifically:
Adding the PPA repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Install Java 8, and set as default:
sudo apt install oracle-java8-set-default
I was able to install using the netbeans .sh file installed after that
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
add a comment |
I was able to get it working by installing and setting JDK8 as default.
I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux
specifically:
Adding the PPA repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Install Java 8, and set as default:
sudo apt install oracle-java8-set-default
I was able to install using the netbeans .sh file installed after that
I was able to get it working by installing and setting JDK8 as default.
I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux
specifically:
Adding the PPA repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
Install Java 8, and set as default:
sudo apt install oracle-java8-set-default
I was able to install using the netbeans .sh file installed after that
edited Sep 5 '18 at 4:16
karel
58.5k13128147
58.5k13128147
answered Sep 5 '18 at 0:17
Steve WhitfordSteve Whitford
411
411
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
add a comment |
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
this worked for me, should be the accepted answer.
– Adriaan Nel
Dec 9 '18 at 20:58
add a comment |
Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.
To see the errors you can check the log file from the menu->view->IDELog
System Info:
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...
------------------------------------------------------------------------------
Finally what worked for me is.
Finally what worked for me is setting the java_home
path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate
command. change path for java_home inside
/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Restart the Netbeans and it will work all well.
NOTE: Changing the above in system /etc/netbeans.conf
directory will not work.
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
add a comment |
Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.
To see the errors you can check the log file from the menu->view->IDELog
System Info:
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...
------------------------------------------------------------------------------
Finally what worked for me is.
Finally what worked for me is setting the java_home
path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate
command. change path for java_home inside
/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Restart the Netbeans and it will work all well.
NOTE: Changing the above in system /etc/netbeans.conf
directory will not work.
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
add a comment |
Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.
To see the errors you can check the log file from the menu->view->IDELog
System Info:
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...
------------------------------------------------------------------------------
Finally what worked for me is.
Finally what worked for me is setting the java_home
path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate
command. change path for java_home inside
/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Restart the Netbeans and it will work all well.
NOTE: Changing the above in system /etc/netbeans.conf
directory will not work.
Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.
To see the errors you can check the log file from the menu->view->IDELog
System Info:
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...
------------------------------------------------------------------------------
Finally what worked for me is.
Finally what worked for me is setting the java_home
path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate
command. change path for java_home inside
/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Restart the Netbeans and it will work all well.
NOTE: Changing the above in system /etc/netbeans.conf
directory will not work.
edited Oct 13 '18 at 13:27
pomsky
29.8k1192121
29.8k1192121
answered Oct 1 '18 at 8:14
Mukesh Singh RathaurMukesh Singh Rathaur
1312
1312
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
add a comment |
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?
– Youda008
Dec 4 '18 at 20:33
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
From Netbeans website and installed with script.
– Mukesh Singh Rathaur
Dec 5 '18 at 4:17
add a comment |
I was able to solve this by running sudo update-alternatives --config java
and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.
add a comment |
I was able to solve this by running sudo update-alternatives --config java
and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.
add a comment |
I was able to solve this by running sudo update-alternatives --config java
and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.
I was able to solve this by running sudo update-alternatives --config java
and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.
answered Aug 22 '18 at 22:30
AidanAidan
211
211
add a comment |
add a comment |
Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):
sudo apt remove netbeans
sudo apt remove openjdk-11-*
Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):
sudo apt install openjdk-8-jdk
wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
sudo sh netbeans-8.2-linux.sh
When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64
.
After installation you can access it via
/usr/local/netbeans-8.2/bin/netbeans
if you chose default location.
add a comment |
Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):
sudo apt remove netbeans
sudo apt remove openjdk-11-*
Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):
sudo apt install openjdk-8-jdk
wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
sudo sh netbeans-8.2-linux.sh
When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64
.
After installation you can access it via
/usr/local/netbeans-8.2/bin/netbeans
if you chose default location.
add a comment |
Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):
sudo apt remove netbeans
sudo apt remove openjdk-11-*
Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):
sudo apt install openjdk-8-jdk
wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
sudo sh netbeans-8.2-linux.sh
When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64
.
After installation you can access it via
/usr/local/netbeans-8.2/bin/netbeans
if you chose default location.
Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):
sudo apt remove netbeans
sudo apt remove openjdk-11-*
Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):
sudo apt install openjdk-8-jdk
wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
sudo sh netbeans-8.2-linux.sh
When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64
.
After installation you can access it via
/usr/local/netbeans-8.2/bin/netbeans
if you chose default location.
answered Nov 17 '18 at 9:54
OlimjonOlimjon
2,136624
2,136624
add a comment |
add a comment |
What solved the problem for me was two things:
- Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)
- Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1
add a comment |
What solved the problem for me was two things:
- Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)
- Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1
add a comment |
What solved the problem for me was two things:
- Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)
- Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1
What solved the problem for me was two things:
- Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)
- Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1
answered Oct 13 '18 at 13:14
Muhammad A. MotaweMuhammad A. Motawe
112
112
add a comment |
add a comment |
I have the same problem ,though i resolved it!
Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
It worked for me , may work for you !
I am learner, your suggestion are always welcome!
New contributor
add a comment |
I have the same problem ,though i resolved it!
Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
It worked for me , may work for you !
I am learner, your suggestion are always welcome!
New contributor
add a comment |
I have the same problem ,though i resolved it!
Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
It worked for me , may work for you !
I am learner, your suggestion are always welcome!
New contributor
I have the same problem ,though i resolved it!
Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
It worked for me , may work for you !
I am learner, your suggestion are always welcome!
New contributor
New contributor
answered Jan 22 at 19:23
shreeshivshreeshiv
111
111
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1032030%2fnetbeans-does-not-start-on-fresh-ubuntu-18-04-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04
– JDKabangu
Oct 3 '18 at 12:46
1
I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.
– Line
2 days ago