Eclipse runs out of handles - eclipse

I am working using Eclipse Juno Version: 4.2.2 , but frequently I am facing a problem
Problem 1.
And After clicking ok or cross button another screen is appearing.
Problem 2.
If I click no button then the dialog is disappearing and if I choose Yes then the Eclipse is closing.

This is probably a bug in one of the Eclipse plugins that you use. They don't properly clean up resources (colors, fonts) so Eclipse eventually runs out of handles (= the OS won't give Eclipse any more resources).
The short term solution is to restart Eclipse.
If you want to file a bug report, install the Sleak tool and follow the instructions.

For one try,
Please follow the following steps, First close your eclipse.
Go to your Eclipse Folder
you will find "Features" & "Plugins" folder in it.
Open "Features" folder and search for "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
Open "Plugins" Folder and search for "org.eclipse.ui" folder or .jar file. If found then cut it & paste on desktop.
Now start your eclipse & try to compile.
It may be possible that while updation it has downloaded improper updation.

Related

Eclipse Photon - Eclipse Marketplace not launching

I just installed Eclipse Photon. I migraded one project from Oxygen to it - everything is working fine.
The problem I noticed is that I cannot open the Eclipse Marketplace. Whenever I click on it, I get the loading circle for 1-2 seconds then nothing happens.
I also tried this on a completely new empty workspace (so no old .metadata) - same behavior.
I also restarted PC - didn't help.
Any ideas? Is it me only that has this problem or is it a bug due to the new version?
Thanks.
I managed to find the problem and fix it. I went to:
Help -> About Eclipse IDE -> clicked on "Installation Details" -> tab "Configuration" -> Clicked on "View Error Log"
The default browser opened and there I noticed the following stack trace:
!ENTRY org.eclipse.ui 4 0 2018-06-28 10:38:21.036
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: Illegal character in path at index 16: file:/C:/Eclipse Photon/eclipse/configuration/
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
It was the space character in the folder named by me: "Eclipse Photon". I renamed it to "EclipsePhoton" and the marketplace opened successfully.
Short answer: Make sure you do not have any spaces in the Eclipse installation file path.
I fixed the issue with the solution from this link: https://www.chrisguindon.com/post/marketplace-client-not-opening-in-photon/
Steps:
Go to Help > Install New Software
Paste the Marketplace Client update site url into the “Work with”
field: http://download.eclipse.org/mpc/photon
Select the “EPP Marketplace Client” checkbox
Follow the wizard and restart your Eclipse to finish the
installation.
Addition to actunderdc answer:
He is right. There is a bug if there is a space in the installation path. If you want to install in the Program Files folder, you can use the windows shortnames.
Find the shortname of the folder in cmd by using dir /X. For C:\Program Files it is something like PROGRAM~1.
When you got the shortname, you can add the folowing at the top of your eclipse.ini File in the same directory of the eclipse.exe
-launcher
C:\PROGRAM~1\eclipse\jee\photon
Make sure to adjust it to your installation path. After you have done this, marketplace can be opened. But when I open Help -> About -> Instalation Details -> Configuration it shows me two -launcher parameters with the long and the short name. I don't know, if it could cause sideeffects.
I opened a Bugreport at bugs.eclipse.org.
Had similar problem, this is what I did:
NOTE: If you have any other firewall software then make sure to allow eclipse though it & also check if your computer's time is proper(else leave this).
Open Eclipse >
Help >
Install New Software.. >
Enter link in work with " http://download.eclipse.org/mpc/photon/ " >
(after lodaing) select the EPP Marketplace Client and install it
I had error while installing it, I just allowed eclipse through firewall then marketplace client updated smoothly. Then I restarted eclipse and marketplace opened.
Hope this helps.
I had this problem on my Ubuntu 18.04 machine, none of the above helped.
After hours of searching, I found a working solution: enable theming under Window - Preferences - General - Appearance
I had this disabled, so Eclipse uses my GTK Theme (Arc dark) and looks better.
But enabling it makes Marketplace start again.
The stacktrace in the Eclipse error log (Window - Show View - Error Log) contained a hint that lead me to the theming option.
First when trying to use WindowBuilder (SWT) in Eclipse JEE 4.8 you must remove all spaces from your Eclipse folder name that contains all its files. This first step was discovered via link:
Eclipse Photon - Eclipse Marketplace not launching
Secondly, is this link tells the second half of the mystery. If you go to:
http://download.eclipse.org/windowbuilder/WB/integration/4.8/
you will see on the left hand side "show directory contents" which will have "repository.zip" file as last file of this expanded list. Download this (~39Mb). Note path to this file, then in eclipse click on "help" (last menu item), then click on "Install New Software...", then click "add", then click "archive" and go to path of saved "repository.zip" and select it. You will see square check box now indicates file to install.
I believe one must then click "continue" (check box already checked for WindowBuilder install item), then confirm when all files to be installed show are shown on screen, then finally click "finish". After the file is loaded in archive step I am not sure of the exact verbiage used for remaining steps but I believe what I have said is mostly accurate and after adding archive it will be self evident (piece of cake) what steps to follow. Finally to check if Window builder is installed go to (in top menu items) "file" then "new" then "other" and then finally scroll down list and WindowBuilder should be in this list, otherwise you landed a goose egg and something went wrong.
Change your folder name eclipse photon to eclipsephoton if any space in your folder name its not open Eclipse Marketplace
I had the same problem. I solved it by changing the name of the folder where eclipse was installed, the name i had used for the folder had a space and that was precisely preventing the use of the market place in eclipse, i removed the space and it worked normally.
For Ubuntu 20.04,
Just remove the spaces in your folder name of the eclipse folder and try closing and reopening the eclipse.It will works!!!

How to recover a .java class in an Eclipse project?

I opened the Eclipse as usual from an installer (I downloaded the complete jBPM engine and Eclipse is included with it). I open it from a command prompt. When I opened the Eclipse I found it is empty as it is installed recently. no projects or tabs or anything.
I reopened the project I am working on and found that the main file that containing the code is empty (it is one line with hidden words). I opened the project from its location on the hard disk and I found the file is also empty but I can see that there is something on it.
I tried to open the project on Netbeans but the problem is still exist. I tried to open the file from the local history but I found nothing in the history. Unfortunately I didn't take a backup from my last work. I don't know what to do right now, if you can help it will be appreciated. I attached here a picture for the eclipse with the empty file:
If the project is already deployed in some server then you can decompile them from deployed folder(i.e : webapps folder of Tomcat)

Netbeans Missing source tab

I have loaded up netbeans, and all it is showing me is the history tab when i go to edit my code for my projects. I went on to view >> editors, but the only editor that was there was the History. How do i get the Source tab back?!
For me, similar issue, after fresh installation, was resolved by closing the running Netbeans IDE instance, then renaming the existing Netbeans folder found inside the C:\Users\\AppData\Roaming\ on Windows 7.
Might be helpful, refer the following links -
here & FaqWhatIsUserdir

Completely lost with Blackberry JDE for Eclipse

I'm serious. I installed the Blackberry web developer thing for eclipse (being stupid, and not seeing the 'web' part). Then, when I realized my mistake, I went and got the JDE for Eclipse. I went through the install process....open up Eclipse...and I'm lost. I don't know how to run code...or the simulator, or anything.
All the tutorials I'm finding are referencing an older "beta" version of the Eclipse plugin, which apparently had a "Blackberry" menu option. I'm not seeing that.
I found some sample code, which gives the helpful instructions:
"1. Extract HelloWorld_incomplete.zip
2. In the IDE, open the helloworld.jdw workspace
3. Open the helloworld.java source file.
"
...I've never seen a .jdw file before. If I try opening it in Eclipse, I get a not-very-useful text file. Since they say it's a workspace, I try the "Switch Workspace" option in Eclipse, which lets me pick a folder, rather than a file.
I'm pretty sure "Import Project" isn't right, either.
So, I figure I'll deal with that later, so I open up the source code (a standard .java file, with a main, etc). I try running it, but it asks for an Ant build file.
I can run standard Java files just fine (that is, I know Java is in my path).
I don't know if maybe I don't have the Blackberry part right...or if it's on the eclipse side where I'm failing.
Does anyone have any ideas?
-Jenny
Edit: Just to be sure, I tried downloading the plugin through eclipse with their provided link (http://www.blackberry.com/go/eclipseUpdate), but eclipse says that it got a .jar file when it was expecting a .zip file, and so it errored. Can you even unzip a jar file (like Eclipse is trying to do?)
It sounds like you have the wrong package.
I installed it yesterday from the "Download Now" button at http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp
and it had both the menu option and the Blackberry project type.
It should have an installer if you get the correct one. I would post a direct link, but RIM likes to ask for your info before allowing the download.
Try installing it to a different directory and using a new workspace. It could be that the old install is interfering somehow.
-Hope that helps
if you want to know step by step to install the jde plugin in eclipse you can visit http://learn.virtue-software.com/2011/05/quick-start-creating-blackberry-application-with-eclipse/

Netbeans Javadoc not found even when library has it defined

I have a problem with Netbeans simply not recognizing Javadocs in external libraries. I've gone into the library path and specified a valid javadoc path (Netbeans accepts the path without error). But even after re-building/opening closing Netbeans, I still get the "Javadoc not found" error for all items in the library.
I'm stuck on where to go since there is no error message, and I can browse the docs using a web-browser. Any ideas?
The version of NEtbeans is 6.5.1
The files are uncompressed in a directory that has been added to the the Javadoc tab of the properties for the library. The library works as expected.
I've tried clearing the Netbeans cache to no effect.
I got it working. I deleted the library, the re-created it added the Javadocs. Now it works perfectly.
Could you please be more specific: What is your version of NetBeans? Where are those javadocs located? Are they unpacked in a separate folder, in a zip file, in jar file?
Here is a working solution for NetBeans 6.5 for an example:
Go to Project Properties > Libraries dialog
On "Compile" tab press the "Add JAR/Folder" button and locate your library
On "Compile" tab press the "Edit" button with your library selected
Add path to either: a) docs folder of that library, containing index.html and the rest of the files; b) zip file, containing that libraries docs folder;
It should work without re-building your project or restarting NetBeans.
If you have created a custom library, it can be edited in a very similar fashion through "Tools > Libraries"
Sounds similar to a problem i had recently, turned out all i had to do was delete the cache to force NetBeans to rebuild.
If #slink84's suggestion fails to help, you might try #dr Hanibbal Lecter's method from my question on stackoverflow