Update Android Studio 2.0 JDK? - android-studio

I just installed Android Studio 2.0 on OSX 10.11.4. I get this error:
Running on a JDK8 version affected by drag and drop issues (1.8.0_60
through 1.8.0_76). See IDEA-146691 for details, and consider using a
JDK outside the problematic range.
IDEA-146691 did not help me.
Isn't the JDK bundled with Jetbrains IDEs? How am I supposed to change it?
My OSX Java is 8 Version 77.
Solution:
My fault: Java version in the OSX Settings is NOT the JDK version.
Just download the new JDK as Alessio answered below.

I got the same error. Simply download the last release (1.8.0_77) from Java Official and the error will disappear. Probably you don't have the last version if the error still shows up, check the version via terminal javac -version

See IDEA-146691 Drag and Drop (to move file) Dialog frozen - escape exits for details, and consider using a JDK outside the problematic range.
See Issue 201716: Buttons in move dialog not working

Related

Getting "Gradle sync failed: Please use JDK 8 or newer" under version 3.3

I checked every thread related to that error. But I couldn't find the appropriate answer. I have additional error too. Check out the screenshots.
Posts I came across recommending fixing JDK pathing issues through "Switch IDE book JDK..." or "Project Structure".
For me, in Android Studio 3.0, "Project Structure" would no longer open, so I upgraded to 3.1. Afterwards, it still had the JDK version error, but now it let me open "Project Structure" from the "File" menu, where I was able to correct the JDK, SDK, and NDK locations and versions.
There were still several build errors after that, but clicking the recommended fix in the build output window eventually installed everything I needed. Once it managed to synchronize correctly, it also upgraded Gradle to version 4.4. That then required new build tools and so forth.
Though instructions directly, may not help everyone, but it points to configuration corruption. So, if you cannot just upgrade to get around it, I recommend making backup copies of your Android Studio settings (generally in your user's home directory like ~/.AndroidStudioX.Y), as well as your project .idea (generally in the root of your project), then deleting the originals. If that is still not enough, purge the configurations again and reinstall Android Studio.
Note: I was going back into an old project so several warnings about deprecated features being removed in 2018 had to be dealt with.
error window
Here's what worked for me!
1. First verify that your JDK is indeed higher than JDK8
jdk version
2. Press "Ctrl+Alt+Shift+S" to open project structure
enter image description here
3. Then I selected "Use the embedded JDK"
4. Click OK and retry it.
That should solve it.
I was facing same problem, getting these two kinda errors:
SDK path should not contain white space.
Gradle sync failed. Please use JDK 8 or newer.
Solution for me was to set proper SDK path with no white space in path first and than choose JDK path. After setting path I've synced the project and tada it worked...
Thanks.

Pydev plugin with eclipse IDE

I've installed Pydev plugin with eclipse c/c++ and it worked will but after two days something wrong happened and it shows this message
(No editor descriptor for id org.python.pydev.editor.PythonEditor)
I tried to install it once again but still the same problem
That message means that PyDev isn't really properly installed or its requisites are not properly matched.
The possible reasons are that you're using a different java vm from the one you had (PyDev requires java 8 onwards), it became corrupted (i.e.: could happen if you had some issue in your hard drive, but that's very rare compared with not running Eclipse using java 8) or you're using an older version of Eclipse with a newer version of PyDev (see the "Need to use older Eclipse/Java" section on http://www.pydev.org/download.html).

Eclipse Luna Not Working (Kali Linux)

Every time go to run the Linux Version of Eclipse Luna SR2, it just stops at the little Splash Screen (The window that comes up before you select your work space) and it just stays like that for about 30 seconds, and then closes. Any help please?
It generates this error log which is found Here
New Answer: This is a known bug and a workaround that has fixed the issue in at least one case is to run
export SWT_GTK3=0
before starting Eclipse. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=430736 for more information. If this workaround does not fix your issue make sure GTK3 is installed and upgrade glibc to at least version 2.14 to ensure Eclipse uses it. Apparently when Eclipse detects an older glibc it tries to use GTK2. If none of these suggestions fix your issue you should submit a bug report at http://bugreport.java.com/bugreport/crash.jsp to work it out with the Eclipse development team and also to help inform other people about it.
#ElectroMan - This got too long for a comment. Yes, the error log says the same thing. That means you are running Java 6, "JRE version: 6.0_34-b34" according to the log. I suggest you try running Java 8 or at least Java 7. Java SE 8u40 is the current release from Oracle and it can be downloaded for 64 bit Linux from a link on http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. It is best to use the latest Oracle release and get away from the OpenJDK version, especially one that is two major releases outdated. However, if you opt for Java 7 its final release is available at http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. You should be able to install either in a non-default location and keep OpenJDK 1.6.0_34 as your main version of Java on your platform. Eclipse can be configured to use Java 8 or 7 after it is installed by project or as its default for all new projects, but the main thing is to tell it to use Java 8 or 7 when it runs, since it is a Java application. Some instructions for this are at http://www.cs.umd.edu/eclipse/install_java8_luna.html. One of the main reasons for upgrading from Eclipse Kepler to Luna is to get built-in Java 8 support. Another option is to follow the instructions in the error log and file a bug report at http://www.cs.umd.edu/eclipse/install_java8_luna.html and wait for a reply. Or maybe there is already a new Luna update and you could try it.

REDHAWK IDE sandbox not appearing in SCA Explorer

I am using version 1.9.0 of the REDHAWK IDE on CentOS 6.5 and ran software updates today, made up of OpenJDK updates.
Before the updates, I was able to see the sandbox and chalkboard in the IDE. When I opened the IDE a little while after the updates, the sandbox was gone.
I tried installing Java SE JRE version 1.8.0_05 and restarting REDHAWK IDE without success.
I then tried a fresh IDE installation, which successfully showed the sandbox for two different times starting the IDE. Although, after being closed for an hour or so, the sandbox went missing again.
Does this sound like a java issue? If not, is the IDE breaking itself in some way?
Note that during the time of REDHAWK inactivity I was only using a word processor and a web browser.
Edit: Prior to the updates I had installed the newest GNU HAWK components and was able to load various GNU HAWK components onto the chalkboard with the sandbox still showing up.
I had the same issue, and ended up fixing it by commenting out the following line in the eclipse.ini file:
#-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
For other people looking at this, I went through the basic example in the Getting Started and the plot window would flash and go away. It is related to that line in the accepted answer.

Selected location does not represent a valid JavaFX Scene Builder installation

I have Netbeans 7.3 Beta 2 with latest Java 7 JDK on 32 bits, on Windows 8 Pro.
Problem: I removed Scene Builder 1.1 b07 and Installed the latest one b12, but now I can't set "Scene Builder Home" in Netbeans.
I get the following error:
"Selected location does not represent a valid JavaFX Scene Builder installation"
I tried pointing to all possible folders (Scene B. Folder, child folders, Oracle folder etc) (I know that it shouldn't be necessary).
The version before was OK and Netbeans detected it automatically.
I had Scene Builder 1.1 b07 before.
Now it doesn't want to be added into "Scene Builder Home" from Netbeans Options->Java->JavaFX.
That's quite annoying, because now I have to manually open each FXML from the source folder. Annoying.
I searched NetBeans bugs, but I didn't find anything. I wanted to add a new one, but I couldn't. Maybe because I already have 2 reported bugs.
Any suggestions?
I didn't remove and install NetBeans again, because I don't want to reimport the projects and configure it again just for this.
Edit:
I managed to report the bug. I had to delete the cookies from netbeans.org and log in again in order to be able to use the "report a bug" page. Let's hope for a quick fix. http://netbeans.org/bugzilla/show_bug.cgi?id=223994
It works flawlessly with the latest NetBeans 7.4, Java 7 JDK and SceneBuilder.
I assume it was a bug that was fixed. SceneBuilder 1.1 is a stable release now, which wasn't at that time, so this could be the explanation.
You Can use it outside of netbeans, I faced the same Error in Ubuntu linux. according to this bug you have to wait antil they fix it.
right now just use it outside of netbeans

Resources