Upgraded to Pydev 3 not working with eclipse 4.3 Kepler on Mac 64 bit cocoa - eclipse

I have tried using a clean workspace and a fresh installation of eclipse with nothing but pydev. In all cases, I don't get the pydev configuration options or preferences or views. The plugin install goes through without a hitch and I can see pydev in the installed software also. Anybody else face the same?

PyDev 3 requires Java 7 to function. Unfortunately, the version of Java that is installed on Mac OS X is not a compatible or recent version.
You can check the current version of java on your system by typing java -version in the terminal. In order to run PyDev 3 you should have version 1.7.xxx.
To update Java you will need to install a Java Development Kit (JDK), since just installing the Java Runtime Environment (JRE) will not update the symlink at /usr/bin/java on OS X. If you think that you have installed Java 7, but java -version still gives you a version of 1.6.xxx then you probably installed the JRE instead of the JDK.

I agree with pseudocubic, In my case I just downloaded JDK8 : which by the way includes the JRE8 so pydev worked without trouble in my mac . I had to do this after installing JRE7 but when checking in console java -version it was returning 1.6 version (despite the fact that checking at java icon in system preferences says 1.7 was installed)
Install JDK8 and it's done

Related

NetBeans 8.2 does not open on Mac OS

I am trying to start NetBeans 8.2 on a Macbook Pro and it's not working.
It shows the splash screen, then after a while it shuts down without starting anything.
Running from the command-line I can see this error:
Oct 02, 2017 7:40:28 PM org.netbeans.ProxyURLStreamHandlerFactory register
SEVERE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module #7823a2f9
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:175)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:169)
at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:82)
at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:141)
at org.netbeans.MainImpl.execute(MainImpl.java:178)
at org.netbeans.MainImpl.main(MainImpl.java:85)
at org.netbeans.Main.main(Main.java:83)
Looks like Java 9 got bundled with it and it's causing an error. The documentation implies that NetBeans 8.2 uses JDK 8!?
How to use my own java to run NetBeans, or how to get NetBeans to start without this error?
Yes, NetBeans 8.2 does use JDK 1.8, and specifically does not support JDK 1.9.
It's unclear from the OP which version of Java is desired to run with NetBeans, but the version of NetBeans to use is governed by the version of Java to be used:
[1] For Java 8, use Netbeans 8.2. Note that Java 9 is not supported. You can download NetBeans 8.2 bundled with JDK 8u141 for Mac OS here:
http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html
Once it has been installed it no specific configuration for Java should be necessary.
[2] For Java 9 you must use a Development Build of NetBeans. That can be downloaded from http://bits.netbeans.org/download/trunk/nightly/latest/ but be sure that Mac OS X is selected from the Platform drop list before clicking Download.
For any version of NetBeans you can specify your own version of Java as follows:
Start NetBeans and select Java Platforms from the Tools menu.
Click the Add Platform... button.
Complete the wizard to locate the version of Java you want to use.
One final point: there is no problem having multiple versions of NetBeans installed and running concurrently using different JDKs, typically NetBeans 8.2 with JDK 1.8 and NetBeans Dev Build with JDK 1.9.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update:
If NetBeans closes itself down on startup it may have an invalid JDK path. To change the JDK that NetBeans uses:
Locate the file netbeans.conf. It should be in the etc directory under the NetBeans installation directory.
Edit that file in a text editor. Locate the line containing the property netbeans_jdkhome. On my Windows 10 installation it looks like this:
netbeans_jdkhome="C:\Java\jdk1.8.0_121"
Change the value for that property to specify the path to the desired JDK, save the file and restart NetBeans.
As pointed in the comments:
I had tried to set netbeans_jdkhome in /Applications/NetBeans/NetBeans\ 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf to point to JDK 10, but still it did not work.
I had to install JDK 8, and set netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home"
Uninstalling JDK 10 and using JDK 8 worked for me and setting netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home" worked quite well.
macOS 10.13.5
JavaJDK 10 installed as "System" JVM
I was able to install NetBeans, but unable to get it to function. Window would open, clicking on "New Project" or "New File" did absolutely nothing.
Was able to get it working (all modules and servers) by going into the configuration file at
/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
and editing the commented out path to JDK at the bottom of the file!
Cheers!
Check Java JDK is installed on Mac, NetBeans 8.2 does use JDK 1.8(Java SE 8)
/usr/libexec/java_home -V
Matching Java Virtual Machines (2):
12.0.1, x86_64: "Java SE 12.0.1" /Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
1.8.0_211, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
if not , just install (no need remove exist JDK)
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
modify /Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home"
For NetBeans 8.2 JDK 1.8 should be used. If you installed JDK 1.9 or JDK 10.0 to your MacBook, you must uninstall that from your computer.
I had the same issue. I'm using Apache Netbeans 12.0 so I had to change my OpenJDK version from 19.0 to 14.0 and update the path in order to finally work.
No need to uninstall the 19.0, just install the version that works with the Apache that you have and update the path:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk14.0.jdk/Contents/Home"

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

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

Haskell Plugin on Eclipse is not visible

I'm learning Haskell and I need to install Haskell plugin on Eclipse.
I have first installed Eclipse Kepler and then installed the Haskell plugin from http://eclipsefp.sf.net/updates. The plugin installation went ok but the Haskell perspective is not visible at Window > Open Perspective > Other. It's visible at Help > Installation Details, though.
I've come across similar problem at this post:
Plugins installed on Eclipse not visible
I've applied all suggestions: I've started Eclipse as root, I've changed the installation path from /Applications to ~/, I've given write access to plugins folder, no luck.
I've erased Eclipse Kepler and installed Luna, still no luck.
I've updated the JRE to Java SE 7 [1.7.0_71] and edited the Java JRE section at Eclipse preferences, still no luck.
Any help is appreciated, thanks.
My OS X Lion 10.7.4 64bit
I've solved it. The problem seems to stem from multiple java versions installed on Lion.
I've come across this post salesforce Eclipse plugin and there I noticed that multiple Java versions on one system might cause trouble on plugins and in case of saleforce, that was causing trouble on Eclipse plugin or perspective.
Then I've taken a second look at Haskell's Eclipse plugin page Haskell Eclipse plugin and there I saw the java version 7 was emphasized.
So I reckoned that some java version mismatch might be causing Eclipse not to display the Haskell plugin. Btw, my installing the latest (1.7.0_72) version of java didn't change any possibel version mismatch on my Mac OS X, because though I successfully installed 1.7.0_72 version (using the file jdk-7u72-macosx-x64.dmg which I downloaded from oracle.com), the $ javac -version still returned 1.6.0_29.
Then I've found this post multiple java installations on mac os x and added the following line to eclipse.ini
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home/bin/java
before -vmargs, and that finally solved the problem. Now the Haskell plugin and perspective comes up. That's fine.

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.