Unable to drag and drop to Eclipse - eclipse

I have been draging and dropping from Windows Explorer to Eclipse since I've started using it, and now find myself unable to do so. When I drag a .java file over my package, the mouse cursor stays a circle with a diagonal bar through it and dropping does nothing.
I have tried to change my workspace, create a fresh new workspace, deleted eclipse and redownloaded it. It still doesn't work. Making Eclipse run as admin doesn't solve the issue either.

There are at least two workarounds:
Use the menu File -> Import -> General -> File System
or use CtrlC in Windows Explorer, CtrlV in the Package Explorer of Eclipse.

I had this issue when Eclipse was running as Administrator. Setting it back just worked.

I figured out it was due to viewing the project in Project Explorer instead of Package Explorer.
Right click on a project > Show in > Package Explorer
You'll be able to drag-drop again at this point.

I faced similar problem when trying to drag-drop image file directly from explored zip. After I extracted the zip, drag-drop worked as expected.

For me it was the missing marketplace client.
It is noticeable when help -> Eclipse Marketplace is missing.
I installed it with help -> Install new Software -> Update Site for 2018-09 -> Eclipse Marketplace

Extract all files from zip folder. It worked for me.

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!!!

Something wrong with package explorer in eclipse?

In package explorer whenever i open any class file from any project package explorer closed automatically. And to open it again i have to go
Window -> Show View -> Package Explorer
I also try
Window -> Reset Perspective
but its also not work. If it happens only once or twice i do not have any problem to reopen it. But on Opening every class its disappear and reopen it each time very hard.
Anyone know how to solve this problem?
I've just change my workspace location to other drive and its work fine now.
It might be probably because Eclipse doesnt have enought Access Privilages on that folder.. Try Changing the workspace to another location not in the C drive.
It is likely that some plugin has caused such behavior.
Install new clean Eclipse (no new to uninstall your current).
Then try to open your project in that Eclipse, it should work OK.
Then make notice what plugins are installed, and if they change the behavior.

Eclipse runs out of handles

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.

Eclipse: Cannot find project in Project Explorer

I am using Eclipse Juno SR1 Java EE, and checked out code from SVN as an Eclipse project. I am able to click on files in the project to verify everything was ok. The next time I rebooted, I can't see the project in the Project Explorer window.
A few things I checked: The menu item Project > Open Project is greyed out, indicating there are no closed projects. The project's file tree exists in my workspace. Eclipse won't let me create a new project with the same name because one already exists.
This is my first time using Juno, is there some new control that hides projects from view?
"File -> Import -> General -> Existing Projects Into Workspace"
"File -> Import -> Android -> Existing Android Code Into Workspace" doesn't do what you're trying to accomplish (been there...).
Assuming the above lines mean what they say, the first tells Eclipse to recognize what you're importing as an official Project. The 2nd tells Eclipse that you're importing only the code, not the Project itself.
Sometimes it's just because .project file is missing. If you have any other project, copy its .project file and paste inside the main folder of the project you're trying to import.
Try starting with the clean option in command line, maybe that should fix it
eclipse -clean
try
file -> switch workspace -> other
and tell eclipse where your workspace is
I was facing the same problem with RAD. What I did was:
imported only those projects which were deployed locally in my portal server.
Did a clean build.
Started the server.
It worked for me. Able to access my application. Rest of the projects which were not deployed as part of my local portal server, I will import them on need basis later.

Cannot "Install New Software" in Eclipse 3.5

I have just installed Eclipse 3.5 for Java EE developers ("Galileo").
I need to add an extra plugin, but when I select the "Install New Software ..." menu item, nothing happens. Literally nothing - no dialog opens, no error message is displayed. If I have the Debug window open, no message are displayed.
If I go to Preferences -> Install/Update -> Available Software Sites, that dialog opens OK, I can manage the list of update sites, and test the connections, and they all appear OK. But I cannot get to use them to actually install anything.
Is it just broken, or could there be something more subtle wrong?
Thanks.
Start by checking you error log under Window -> Show View -> Error Log. See if you're getting any exception while trying to install new software.
You can also install by downloading the plugin and unzipping it in the dropins folder.
I ran into the same problem. There seems to be a bug related to the finish button (I am assuming this is the same problem you are experiencing). The way I got around it is by clicking on the finish button (or next, or whichever button is not working for you) and press the 'Enter' key. It's annoying. Seems to be an issue with how Eclipse is integrating with GTK.
I had the same problem, took a look at the error log and changed the launcher from "/usr/bin/eclipse" to "sudo /usr/bin/eclipse", it was a permissions thing...
GDK_NATIVE_WINDOWS=true also solved the non-clickable button problem for me running gnome 2.28.1 with Ubuntu Karmic (9.10) x64 with kernel 2.6.31-14-generic
To resolve this problem, I did the following:
Placed my copy of Eclipse in the trash
Emptied my trash
Rebooted my computer
Downloaded the latest version of Eclipse (which was Indigo at the time of writing)
Placed the .zip file in my applications folder
Double-clicked on the compressed zip to open it (I'm using Mac OS X.6)
The problem disappeared. I am now able to do Help/Install new software....
I suggest to use Eclipse Indigo (Eclipse 3.7) which contains EGit already.
Something you can try:
Delete (rename/move) your workspace and try again. Be sure to backup all your projects and settings.
Download the plugin "manually" and use Eclipse>Window>Preferences>Install/Update>Available Software Sites to add it locally.
Download the plugin "manually" and use Eclipse>Window>Help>Software Updates>Available Software>Add site>Archive, find the directory on your HDD and add it.
I had the same problem in windows... and spent couple of hours to "somehow" install the new softwares.
Anyway I will explain you how I managed to install it after trying many options..
Start a fresh copy of eclipse
First tick two check boxes(Show only latest version & Contact all update sites). Make sure the check box of group items is untick.
Try to add software...
If not showing the list of plugins/Next buttons.
Delete the copy of eclipse.
Start a fresh copy of eclipse
Tick only the check box for Contact all update sites.
Now try to add plugins. It worked for me...
Even if it sounds crap... it worked for me..
If none of the solutions above work for you, simply change the workspace to another location. If the list of items appears properly then there's probably something screwed up in the workspace and not Eclipse. Hope this helps.
I actually just had a similar problem and wanted to offer the solution that worked for me. This was not a permissions thing. To solve that I always install eclipse as my user in my local directory (e.g. /home/[user]/local/eclipse-3.7.2) and then you never have permission issues.
Setup: Go to Help -> Install New software -> Available Software Sites (to add new site)
Symptom: Try to add a new site. After hitting enter or clicking finish the site shows up in the list of available sites. Click Okay to go back to the install new software and the site is not available in the drop down. Go back to Available sites and the site is gone.
Fix: After adding the site click on the reload button while the new site is highlighted (before clicking Ok to go back to the "Install new software screen"
This was occurring on Indigo SR2 (and has been happening for a while). I am running this on Linux Gtk -- but I don't see why this would be related.
Hope this helps!
Delete your ~/.eclipse folder and restart eclipse. This is the only thing that worked for me.
I had the exact the same problem. What I found out is that I installed the eclipse as root user. Therefore, I need to be a root user in order to launch "Install New Software".
just press enter after entering URL in "Install new software" window
I faced similar issue. To troubleshoot this issue follow these steps:
Go to windows -> show view -> error.
Check the error logs. In my case error was java.lang.IllegalStateException: Registry Directory not available. at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.restore
I checked my config.ini which is under eclipse -> configuration folder.
I found eclipse.p2.data.area has incorrect path set.
I set the correct path for above key and restarted eclipse. It started working.
Hope it helps
I have faced the same issue. To solve the problem, follow the following steps:
Window (Eclipse Menu) -> Show View -> Error Log
if Error Log is not there, then:
Window (Menu) -> Show View -> Other -> General -> Error Log
Once the Error log is shown, Go to Help (Eclipse Menu) -> Install New Software
Check the Error log, most probable you will see an exception there.
Check the exception, most probable it's caused by java.lang.IllegalStateException
Check the path mentioned in the exception, if you see ".Lock" in the path, close the eclipse then go to the path in windows machine and delete that folder.
now go to the eclipse "exe" file that you're using and open it as an administrator, then try, most probably this will solve the issue.
I`m wondering if this help you.
Let me know if you have any queries.