Can't add Java Applications in Eclipse Run Configurations after upgrading to 4.7 - eclipse

My application isn't running correctly with Java 9. In order to debug it, I upgraded to Eclipse 4.7 (oxygen) since Neon doesn't have Java 9 support, and applied the Java 9 support patch.
After doing so, eclipse was failing to load any of my pre-existing Java Applications. Thinking it might be a version difference thing, I deleted them, to try re-adding. But when I click the "New" button to add a configuration, nothing happens.
If I double-click "Java Application," I get the following error:
An error has occurred. See error log for more details.
tried to access method org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.getTabViewer()Lorg/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer; from class org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup
I am able to add configurations for other types of applications (Java Applet, Eclipse Application) so it seems only to be an issue with Java Applications.
I also tried a fresh workspace, but that has the same issue. How can I fix this?

This is kind of a duplicate but since I experienced the issue and have seen a few others post about it, I'll post my answer of how I fixed it here.
If you go here: https://marketplace.eclipse.org/content/java-9-support-beta-oxygen/
You need to follow the step about updating Eclipse 4.7 from the link that ends in 4.7-U-builds. When you go to Install New Software and select Eclipse SDK, click Next until you get to the Install Remediation Page, and make sure that you are selecting the second option that says something like "update my installation to be compatible with the items being installed" instead of the option that says "keep my installation the same and modify the items being installed to be compatible."
The first time I installed Java 9 updates, I did it the latter way and ran into this problem. Now that I've gone back and chosen the former, I am able to add Java Application Run Configurations again.
Hope this helps.

Eclipse Oxygen.1a (4.7.1a) Release
Update as of 11 October,2017 - You shall upgrade to the latest eclipse package Eclipse Oxygen.1a (4.7.1a) which is marked as released and supports Java 9.

Related

Groovy compiler on Eclipse doesn't include version 2.4 anymore

I need to set up my Eclipse IDE again and unlike when I first set it up I have issues with the Groovy software. I would need the Groovy compiler version 2.4, but can only select between 2.5, 3.0 or 4.0.
I used the same location as last time: https://dist.springsource.org/release/GRECLIPSE/e4.16
Also I tried other location which unfortunately don't work properly. I have the Eclipse version 2020-06.
Can anyone tell me what I do wrong this time or which configuration to adapt?
Thank you.
Download "Eclipse IDE for Java Developers" (2020-09 a.k.a 4.17) from https://www.eclipse.org/downloads/packages/release/2020-09/r
Note: The first link on the page gets you the Oomph installer which WILL NOT WORK. Use one of the links below. If there is "inst" anywhere in the name of the file you downloaded, try again.
The reason why Oomph breaks GRECLIPSE is that it will add an update site which will try to install the latest 4.x GRECLIPSE -> fail.
Unpack the archive somewhere.
Go to Help -> Install New Software.
Add this update site: https://dist.springsource.org/release/GRECLIPSE/3.9.0/e4.17
(Using the marketplace will leave you with GRECLIPSE 4.x)
Always select the main package and Maven support if you need it.
Click Next.
Make sure that it tries to install 3.9.0 and nothing else.
Click Next & Finish until it installs.
--- old instructions for reference ---
You will need to download Eclipse Photon from here
https://www.eclipse.org/downloads/packages/release/photon/r
and then Groovy Feature 3.5.0.v201909291357-e48-RELEASE add this update site:
https://dist.springsource.org/release/GRECLIPSE/e4.8
All the versions of Eclipse after this one don't support Groovy 2.4 anymore.
I've tried to do this with Oomph but that way, I always ended up with Groovy Feature 4.1.
My solution then was to create another workspace for all my Groovy 2.4 projects (Jenkins Pipelines, mostly).

Netbeans 8.2 not responding

I am brand new to computer programming for CIS 210 and it's off to terrible start. Downloaded JDK 9 and Netbeans 8.2. Netbeans won't let me open a new project or file. No error message or anything, almost as if I'm not clicking it. Screen remains blank as seen in the link below. It's driving me insane.
Blank Screen when I click on new project:
If you had Netbeans installation over Java 9 then Please note Netbeans does not work with Java 9. Proof: [https://forums.netbeans.org/topic68000.html][1]
The solution is for Windows, but the same logic applied in Linux too.
Solution1:
You have to edit netbeans.conf find to your java installation path. You can find netbeans.conf inside etc folder of Netbeans installation folder.
Make your netbeans.conf like below.
Eg, netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0_144"
NetBeans 8.2 does not support Java 9. It just won't work.
The solution is to download the latest nightly build of NetBeans, which does support Java 9:
Normally you would go to the NetBeans download page and click the Development link in the top right corner of the screen.
However, I just tried that and it looks like their web page for downloading nightly builds is not working properly at the moment due to "...violates the following Content Security Policy directive..." errors. I've never seen that before.
A temporary workaround for that problem is to go directly to Index of /download/trunk/nightly/latest/bundles/ and select the download that is appropriate for your environment. You should be able to parse the file names to work out which one you want, depending on whether you need 32-bit or 64-bit, whether you are running on Mac OS or Linux or Windows, etc. (To be clear, ignore this bullet point if the Development link in the first bullet point above is working properly.)
Also note that you can safely install and run multiple versions of NetBeans concurrently: use version 8.2 for Java 8 development, and use the Development Version of NetBeans for Java 9 development.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update:
The page for downloading Development Builds of NetBeans is working again, so go there, select your Platform from the droplist, and then click the appropriate Download button.
NetBeans with Java 9 is working fine for me using that approach.
NetBeans 9 would be supported version for Java 9, which was supposed to be released by Aug 2017
NetBeans 9 will be released from Apache Software Foundation as new
Apache project. NetBeans is being donated to ASG by Oracle. NetBeans
9 main theme will be to support this upcoming Java SE 9 release.
Of course, you can use NetBeans daily build, but there won't be guarantee of it's stability.

GWT plugin update problem - How to delete Eclipse Helios 3.6 - help

I tried to delete the Eclipse Helios 3.6 with GWT plugins manually as I usually did with other eclipse IDEs but now I faced a strange problem.
A warning window opens which says...
"Cannot delete resources file. Access denied"
So it makes unable to proceed the deleting pressing OK :(
So how to delete Eclipse Helios 3.6?
Any useful comments are appreciated
Unlocker can help see what program has a particular file locked, like joeslice's link, and it can also force that program to relinquish the file handle (which of course could cause bad things to happen in said program so make sure you know what you're doing).
try to start your computer in safe mode:
when you turn on your computer, push F8(5 times to be sure that it'll work) and after choose safe mode.
You'll be able to delete your files
Process Explorer can help see what's got a particular file locked.
I want to share my problem and my final solution...
The problem was because the Eclipse Helios 3.6 internal GWT plugin update error (so the UI Designer doesn't work).
I was trying to update gwt plugins and that made gwt never compile...
So I had to delete it and reinstall.
The reinstallation was OK but since then I tried to download gwt plugin for many times and had the same UI editor error... I think there is a bug in included gwt plugin GWT UI core and window builder.
If someone faces the same problem please read next...
To install GWT for Eclipse Helios 3.6 you should
A) Install GWT UI Designer first from http://dl.google.com/eclipse/inst/d2gwt/latest/3.6
B) Only then Install GWT SDK and gwt plugin (to skip the bugged plugin part to be installed)
otherwise if you start from this link http://dl.google.com/eclipse/plugin/3.6, it will install a bugged GWT window builder and core (the newest one) and won't allow you to install the correct one because "the newest is already installed" so you'll have to delete and reinstall etc... That's a real headache %) So to avoid that follow point A then B.
I hope that will save ones day :)
Good luck

Eclipse randomly exits after installation of Blackberry plugin/SDK

Since adding the Blackberry Java classes from their website into eclipse, I've had it where eclipse will randomly close, with no discernible pattern, rhyme, error or reason. Here is the environment/software packages that I am using:
Windows XP SP2
Eclipse v3.5.1
Blackberry Java Plugin v1.1.1.200911111641-15
Blackberry Java SDK 4.5.0.21
I've tried the usual steps of complete uninstall and reinstallation of Eclipse and the accompanying plugins on multiple systems with the same configuration, including one that had a fresh install of Windows XP SP2. Upgrading to Eclipse 3.6 didn't work (the plugin wont' install as it's the wrong version), nor the downgrade to 3.4 for the same reason. I also increased the heap size to 512 (system has two gigs of memory) as some research into Eclipse doing this type of thing with Groovy was resolved that way, but again, no dice. Eclipse works great when the blackberry plugins are not installed, and no entries of errors or issues in the event log are helping to show what the issue with these plug-ins might be.
So if anyone has ran into this issue, and even better, has a solution, I'd love to hear about it. Thanks in advance.
EDIT: An additional to my issue, autoComplete with the Blackberry SDK seems to make this extremely unstable, like almost a guaranteed crash. Is this fixable at all?
For anyone that loads this question up trying to find a solution, I've never found a fix. It seems to be a bug with this version of the IDE. If there is a fix, please post.
Did you try to downgrade Eclipse to 3.4 (Ganymede)? I experienced similar issues when I tried upgrading Eclipse to something greater than 3.4.2.
I think the problem is with the plugin, not the IDE. Eclipse has always been stable for me until I installed the BB plugin. Since then it crashes all the time. Since I've installed the release (non-beta) version of the plugin that was recently released I can't even get my project to build.
This could be a manifestation of this bug in Eclipse. Check your C:\eclipse directory for files like hs_err_pidxxxx.log. The file goes on to explain this error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x753ba053, pid=3144, tid=5820
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [USP10.dll+0x1a053]
I've been experiencing this as well. It's completely debilitating. It causes Eclipse to just up and crash out of nowhere (and programming in a language as verbose as Java without Content-Assist is insane).
The bug has been fixed in Eclipse 3.6M7, but unfortunately I can't get the JDE Plug-in to install in the latest release candidate.
This is a known issue with Eclipse 3.5.X and has been fixed for 3.6.0
Bug Ticket link on Eclipse Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=283503
Looks like we are stuck with this until the next update to the BB Eclipse plugin.

How to update Eclipse from 3.4 (Ganymede) to 3.5 (Galileo)?

I've got my Eclipse 3.4 envirnoment set up nice and cozy the way I like it. Took me some time too, to find all the plugins (Mylin, PDT, Subclipse), set all the settings, etc. Now I see that some of the plugins (like PDT) only support 3.5 in their latest versions.
Is it possible to update from 3.4 to 3.5? I'd hate to do it all again.
I read in some mailing list where they noted that it's possible, but the conversation trailed off in another direction. Google wasn't much help, and Eclipse's documentation either.
All of your settings are actually stored as part of your workspace. So you could do a fresh install of the latest version of Eclipse, add the extra plugins that you want (many of which will have newer versions for Eclipse 3.5) and when you launch, just make sure you point to your old workspace.
Help -> Software Updates... -> Available Software tab -> Add Site...
Enter the update site for the Galileo (3.5) release train: http://download.eclipse.org/releases/galileo
Now go back to the Installed Software tab and click the Update... button.
After some computation you should be presented with a list of available updates (or some cryptic errors about how your current environment cannot be updated due to compatibility issues).
This is what I did.
1.- My workspace was in c:\Users\me\workspace.
I copied this folder to c:\users\me\eclipse\workspace-3.4 and to c:\users\me\eclipse\workspace-3.5
So now I have twice the same, just with different names.
2.- Extracted eclipse-SDK-3.5-win32.zip to C:\program files\eclipse-SDK-3.5-win32
3.- Run Eclipse 3.4 and changed the workspace from c:\Users\me\workspace to c:\users\me\eclipse\workspace-3.4. Then I closed Eclipse.
4.- Run Eclipse 3.5 and selected c:\users\me\eclipse\workspace-3.5 as the workspace location (you can also use the -data argument I think).
5.- Downloaded and installed the PDT plugin (I develop in PHP).
And "Voila", now I'm able to run Eclipse 3.4 and 3.5.
BTW, even if I had to install the PDT plug in, I didn't had to touch the configuration. It took the former one from the workspace folder.
There is some information at help.eclipse.org/galileo/index.jsp, look in Workbench User Guide\Tasks\Upgrading Eclipse.