netbeans doesn't start after installing jdk 8 - netbeans

I just uninstalled jdk7 update25 and installed jdk8 instead. I've modified the following line netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0" in etc/netbeans.conf but Netbeans still doesn't start. I even rebooted my computer but I've always the same problem.
My version of netbeans is 7.2.1.
Solved
Solution is to install JDK_7_025 back and to set JDK8 in the project only.

Related

Eclipse error 'UseStringDeduplication'

I installed a fresh Ubuntu 16.04 VM, Oracle JDK 7, and downloaded the latest Eclipse. But I am getting this error when I try to start Eclipse:
Unrecognized VM option 'UseStringDeduplication'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Why am I getting this error on a fresh install? And is it a bad idea to remove that VM option?
Latest version of Eclipse (Neon) requires Java 8 runtime, and the Eclipse website obnoxiously neglects to mention it anywhere from the homepage to the download link for Eclipse, not even a version warning at runtime for Eclipse.
Same error for me in Kubuntu 14.04, eclipse Neon,
I Removed -XX:+UseStringDeduplication from .ini file, it works for me
I know, i'm little to late to the party. I got this issue lately on my Mac. I updated my eclipse (from Mars to Oxygen) all of the sudden i couldn't start my old project. First i thought, this must have something to do with the new eclipse, which wasn't all wrong. Because eclipse.ini file of Oxygen expected java-1.8.
I updated my java to latest (jdk1.8.0_152.jdk), but the problem remained, than i removed these parameters from the eclipse.ini, still was the same, i checked the "Run Configurations" and basically removed the same parameters from the arguments list. Now my projects seem to work just fine. I also needed to restore the platform, since Oxygen use e.4-platform.
Remove these parameters from eclipse.ini file
Select the project and go to "Run As"->"Run Configurations..."-> "Arguments" check the old configurations under "VM arguments" (it can be a product in case of an RCP-project)
removed the VM-option(s)(actually, they can be more) not recognized and "Apply"-> "Run".
I got the same error when I have installed Java 8 and Java 9 in my Ubuntu 16.04. My eclipse version was Neon. As https://wiki.eclipse.org/Eclipse/Installation#Eclipse_4.6_.28Neon.29 describes to start specific eclipse ide you need relevant JDK. For neon, it was Java 8. Since I installed Java 9 using apt-get it was the default JDK. so I have to change the default JDK to Java 8.
You can check which java version used in system-wide with
java -version
`If you want to see which are the versions of JDK installed in Ubuntu then run below command in shell.
sudo update-java-alternatives --list
Then choose which version you want to set. After that run below command.
sudo update-java-alternatives --set [JDK/JRE name e.g. java-8-oracle]
Now run again Eclipse. if the version was the reason to conflict, it will run now. Referred by http://menukanows.com/how-to-set-a-default-jdk-version-in-ubuntu/
String Deduplication – A new feature in Java 8 Update 20
It means you should nt java 1.8 updated later or equal 20.
I faced the same issue on Eclipse Oxygen in Ubuntu.
Tried:
Checking java version (It was already at 1.8.0 so according to the accepted answer, it should work.)
Removing -XX:+UseStringDeduplication from .ini file
Still didn't solve the problem. Then I saw #simgineer's comment:
In my case this was for eclipse oxygen. I had an older version of java
8 installed (jdk1.8.0_05) when I upgraded to the latest (jdk1.8.0_151)
and updated my eclipse.ini to point to the latest as well (since it is
recorded in there during installation) eclipse oxygen started working.
Solution:
Updated JDK from 1.8.0 to jdk1.8.0_231 and it got resolved.
Voila! I didn't have to update anything in my eclipse.ini .

what is the eclipse compatible version for openjdk1.7 in windows 7 64 bit OS

I have windows 7 64 bit OS in which I used to work with eclipse Juno Service Release2 version and Oracle JDK 1.7. Now as per my new project requirements I had to change my JDK from Oracle JDK to OpenJDK 1.7. I have un-installed all the other jdk's from my machine and installed OpenJDK1.7(64 bit version). Now I am facing issues with eclipse, I am able to open eclipse IDE but if I perform any operations like opening an existing project or trying to run any programs/project it is getting crashed or getting hanged. I have to end the process from the taskbar and try again and again. Below is the popup screen that I am getting after eclipse crashes.
Can some one tell me how to resolve this issue? I have seen some blogs saying there is a bug with eclise and OpenJDK with Ubuntu and mac OS but no issues reported for windows. So if there is way to fix this issue please let me know (or) please suggest any eclipse version the is compatible with OpenJDK1.7 and windows7.
Here is my version of solution to my issue which was mentioned above.
Installed Oracle JDK1.7 on my system and did not set the path for this. I have updated the eclipse.ini file with (found in eclipse root directory)
-vm
C:/Program Files/Java/jdk1.7.0_79/bin/javaw.exe parameter. so that Eclipse starts with Oracle jdk
and in
Eclipse->Windows->Preferences window
under Java->Installed JREs->Add(under Installed JREs)
added a new entry to point out the OpenJDK1.7 version so that my project uses OpenJDK version. This solved unusual crashing of Eclipse

PyDev installation problems with Kepler and Mac OS

I have Eclipse (Kepler) installed on OS X and updated recently to Maverick. Since then I didn't start Eclipse. Yesterday I did and it told me that there are update available. I installed them, with the result that Eclipse didn't remember to have a perspective for PyDev.
I uninstalled PyDev, reinstalled it and since then it doesn't even appear in the preferences. I can uninstall it again, meaning Eclipse knows it is there, but there is simply no way to configure it.
Today I trashed the whole Eclipse, downloaded a fresh one and installed PyDev via the update site... Same story!
Has anybody the same problem on OS X?
Cheers, Tom
I've seen this on Windows 7, after a recent update to Eclipse Kepler and PyDev 3.0.x. The PyDev site states that the latest PyDev requires Java 7. If you don't have Java 7, use PyDev 2. (http://pydev.org/, under the "Release 3.0" title"). I'm using Java 6 to launch Eclipse.
I would check the versions of Java and PyDev you're running.
Not enough rep to comment on Gerry Kuhn's answer so I'll make a new one.
You can install java7 but retain your current version and not affect your current set up by specifying which JVM Eclipse should use using the command line -vm option.
All is explained here
Same problem on my Mac here with
Eclipse Version: Kepler Service Release 1
PyDev 3.0.0.201311051910 org.python.pydev.feature.feature.group
solved by using 2.x version
just download zip here and extracted folder in the dropin directory and restart is ok now
Thanks
I solved this problem by changing the eclipse.ini file.
I changed from this value
-vmargs
-Dosgi.requiredJavaVersion=1.6
to this value.
-vmargs
-Dosgi.requiredJavaVersion=1.7
But of course you must have jdk 7 installed previously.

Netbeans 7.2 not starting

I recently installed Netbeans 7.2 beta and it worked fine. Then I installed Netbeans 7.2 final release on top of beta and during the installation, Netbeans 7.1 and Netbeans 7.12 were there. Now when I launch Netbeans, it does not go beyond "loading modules" stage. Simply the Netbeans screen disappear few seconds after the launch. Then I did the following.
Uninstalled all the Netbeans versions and re-installed Netbeans 7.2
Deleted AppData/Netbeans folder
Deleted User/.nbi folder
Searched the registry and deleted Netbeans related entries. (But only one entry was found)
Deleted Netbeans Folder in Program Files folder.
Uninstalled and Re-installed in a separate drive.
Uninstalled and Re-installed under another user account.
None of the above worked, the only thing I did not try was to re-install the Windows XP operating system.
It there any option to try before re-installing the operating system?
I was having the same problem .... with netbeans 7.2 ,go to user/appdata/roaming/7.2/modules/ and delete all the jar files except docs,ext,locale folders ... and start the ide again... basically the problem betides when u update the ide after update when u start the ide it stuck to the loading module phase.
First of all, you need to check proper version of JDK is installed.
Netbeans 7.2 requires JDK 1.7, not 1.8.
You can check {Netbeans Install Path}/etc/netbeans.conf. There find netbeans_jdkhome and its value. Make sure you install JDK1.7 and this line netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_25" for example.
If not, change the value to proper installation path.
That's some stability issue with NetBeans 7.2
Just Kill and Restart the IDE and it should be fine.
Make sure that right JDK directory chosen in the installation wizard if you not sure you can change it from
C:\Program Files\NetBeans {netbeans version}\etc
you will see a file which is
netbeans.conf
edit it(I am using Notepad++ for that)
At the bottom of the file, you will see a line
netbeans_jdkhome="C:\Program Files\Java\{jdk directory you want}"
make sure it is valid JDK and it is JDK, not JRE
I had the same problem, make sure you have the required JDK version configured during the installation process.
First tried everything to no avail, finally I had to uninstall NetBeans 7, then install NetBeans 8, which also aligned with my JDK 8. This resolved the issue for me. Hope this helps others.
Ah, finally this worked with me on version 11.3, delete this folder, then run the program again
C:\Users\Dell\AppData\Roaming\NetBeans
here my main username is Dell, yours can be different ofcourse
I found out in my Windows installation of Apache Netbeans 12.4, the file 'tctracker.properties' in 'C:\Users\user\AppData\Roaming\NetBeans\12.4\config\Preferences\org\netbeans\core\windows' was filled with null values. I fixed the issue with letting netbeans generate a new file by moving this '12.4' directory to somewhere else on the disk, starting Netbeans, letting it generate a new 'tctracker.properties'-file, stop it, replace the corrupt file in with this newly generated file and put the '12.4' directory back in place.

Eclipse upgrade killed PyDev

I just upgraded my version of Eclipse on Ubuntu, and now whenever I open a Python file it opens in an external window, and the existing Python files I have open in Eclipse say "Could not open the editor: No editor descriptor for id org.python.pydev.editor.PythonEditor".
I tried uninstalling and reinstalling both Eclipse and the PyDev plugin, and it didn't fix the problem.
From my experience (~8 years) with eclipse don't do in place updates. Always install a fresh version with a new workspace. And re-checkout projects from SCM.
Check first whether all required plugins still work before switching to the new environment.
Make sure your Java version is correct (what your version of PyDev is expecting).
After I updated PyDev (5 min ago) I had the exact same error message displayed in the tabs where I once had python source files opened (No editor descriptor for id).
I updated my Java version from 1.7 to 1.8 with:
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Then to check your version, run:
java -version
You should see something like:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Server VM (build 25.91-b14, mixed mode)
Re-opened eclipse, and the PyDev plugin is working. Yay!
Actually, when you install Eclipse new version then new plugins are installed which lead to change in ubuntu libraries and installing again will not take effect until you install new plugin which is supported
I had same issue, when I updgradet PyDev with newest version 3.*. It needs java 1.7, but I have only java 1.6, so it does not work at all. I uninstalled it and set eclipse to old updating point, but nothing helped. Advise is to use PyDev versio 2.82. You can not find it from update repositories.
Only way is to download old version 2.8.2 from PyDev site, unzip that zip file to eclipse's drop in directory, in linux it is /usr/lib/eclipse/dropins. After unzipping you should see there features- and plugins-directories. And after some starting of eclipse, I could see PyDev again. At first restart of eclipse I could not see PyDev and tried "Check updates" and "Install new software" settind url to /usr/lib/eclipse/dropins but they did not see any software there. But trying to restart few times, old PyDevc 2.8.2 was in eclipse again. Huh.
I disabled PyDev from eclipses "check uopdates" so I don't make that error again, this machine will not get java 1.7 (Ubuntu 10.04 LTS).
I now ran into exactly the same problem when updating to PyDev 5.0 and its definitely an issue that the user is not warned that the program might break on update. However, the simplest solution is to install the new required Java and JRE version, for PyDev 5.0 that's Java 8 and OpenJDK 1.8 (on Linux), and tell Eclipse to actually use the new JRE in the eclipse.ini file, by pointing it to the right path. See https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM on how to achieve this.