Not able to download Kotlin plugin from eclipse marketspace - eclipse

I am using Eclipse Platform Version: Photon (4.8) as my IDE.
I want to use kotlin in the same IDE, so I was trying to get it from the market space. But I am not able to download it . I tried two options.
My Network Connection Active Provider is native (window -> preferences -> Network Connections). I am able to find the Kotlin plugin but failed to download it saying that Authentication is needed.
My Network Connection Active Provider is manual(window -> preferences -> Network Connections).I have provided the authentication details for http and https. Here I am not even able to open the market space.
What is the solution for this?

Please take a look here how to do that. Go to Eclipse Marketplace, search for Kotlin.
If that doesnt work, you can still try the "Install New Software" that will do the same as explained down bellow **.
** Another option is to drag and drop (this is like a shortcut for the option above), here are the steps, just be sure you have the Eclipse Marketplace Client like the print bellow indicates.If so, you just need to drag and drop the button to your Eclipse IDE and that's it, follow the steps, next, next, next...
Continuing:
Add this line
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
to the end of your Eclipse config.ini and try again. Keep Active Provider Native. If it doesn't work, chance Active Provider to Manual and uncheck Socks, then try again.
After you copy and paste that line, please restart Eclipse (It starts with an '-' sign, just to be clear: -Dorg.eclipse...
If that doesn't work too, then the last option is to change Active Provider to Direct and try again.

Related

plug-in org.eclipse.m2e.core.ui was unable to load class

I had made an maven project and it worked fine.
Then I installed plugins
EclEmma Java Code Coverage,
PHP Development Tools (PDT),
Eclipse.orgSonarQube
Then I worked on some other project. When I again wanted to create an maven project,it threw the following error window which said
The selected wizard could not be started
reason
plug-in org.eclipse.m2e.core.ui was unable to load class
org.eclipse.m2e.core.ui.internal wizards.MavenProjectWizard
Removed SonarQube plugin .This solved the issue.
Now it works all fine.
But is there any other solution to this problem since I have to use sonar.
Click on eclipse help tab and open installation details search sonar and remove all related plugins.
That's not quite the right characterization of what it says on the page,Please check your .log file /path/workspace/.metadata/
Find the correct plugin which is causing this problem and update to compatible version of the plugin with eclipse version.
To find the hidden files in the workspace use Ctrl+H
I had the same problem, and I've tried so many solutions. But what I did to solve the problem, is that I just upgraded my Eclipse IDE (2019-06 to 2020-03) by following these steps (from https://wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse_IDE%3F) :
You first need to add the new release's repository as follows:
1-1. Window > Preferences > Install/Update > Available Software Sites
1-2. Click 'Add'
1-3. Enter the URL https://download.eclipse.org/releases/2020-03/
1-4. Click 'Ok'
Help > Check for Updates
If updates are found, proceed through the install wizard and restart the IDE when
prompted. Otherwise, read carefully the error message to find out which component
is conflicting and establish your resolution strategy.
Note that the start splash screen may be cached and will not necessarily be
updated to the latest version after the IDE is restarted. Performing a full
relaunch should display the new version number.

Eclipse gives warning on access restriction for jfxrt.jar classes

I'm using eclipse kepler with java SE 1.8 jdk system library but when I use any javafx classes or methods eclipse gives a warning like Access restriction: The type 'TableColumn<?,?>' is not API (restriction on required library 'C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar').
I have tried adding an access rule to the system library to allow access for all jars in the library using the wildcard * but the warning is still there. Am also using maven for building project.
The code works but the warning is nagging and is affecting readability as I code. Any help is appreciated.
Edit: I also tried adding #SuppressWarnings("restriction") at the beginning of my classes but this still doesn't solve the unknown cause and hides all other restriction warnings that I may need to see
I'm able to get past this by reconfiguring Java library. For example, explicitly selecting Oracle JDK does the trick.
The easy way is to install e(fx)clipse - a plugin for Eclipse to support JavaFX:
Select Help -> Install New Software
Click Add button to add the following site:
Name: efxclipse
Location: http://download.eclipse.org/efxclipse/updates-released/1.2.0/site
Click OK
In the "Work with" dropdown list, select the recently added site "efxclipse"
Check the checkbox "e(fx)clipse - install" to install all components of this selection
Move to next steps to finish the installation
Restart your Eclipse. If it still doesn't recognize JavaFX library, restart it again.
Original information can be found here: https://www.eclipse.org/efxclipse/install.html#for-the-lazy
You can choose ignore in the following settings:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings
(Project) Properties -> Java Compiler -> Errors/Warnings
Use filter to find "Forbidden reference"
Forbidden reference (access rules) : Change it to "ignore"
Add an access rule to allow access to javafx/**.
See also this answer: https://stackoverflow.com/a/32062263/1060350
For all I can tell, this is a bug in Eclipse in my opinion. I also could not find a way to configure this globally in Eclipse, but you need to redo it for every project.
Navigate to Project settings, Build path, Libraries, JRE. Click on "Access rules" which should have "No rules defined" usually. Add a new rule: "Accessible", and enter the pattern "javafx/**".
This tells the Eclipse Java compiler that javafx.* is an official API that you are allowed to use, so the warning goes away.
Clearly, allowing access to javafx only is much better than ignoring the warning.
The reason why * did not work is because you did not read the wildcard definition. In the access rules, * only matches once, you need ** to match at any depth. I.e. * will allow access to javafx.SomeClass but not not javafx.scene.SomeClass...
Add an access rule for javafx.
Right click your project > Properties > Java Build Path > Libraries tab, then:
Expand JRE System Library
select Access Rules, click Edit... button
click Add...
choose Resolution: Accessible
set Rule Pattern: javafx/**
click OK
click OK

Eclipse marketplace stuck on 'Calculating requirements and dependencies'

In eclipse when I choose: install new software... I always have to uncheck the "Contact all update sites during install to find required software" otherwise the whole thing takes forever stuck on the Calculating requirements and dependencies.
I can't find an option for that in the Marketplace which makes the whole marketplace useless, since I get stuck on the same place.
Is there an option somewhere for this, or can I solve it in another way. Or should I switch to IntelliJ IDEA...?
If you install a plugin locally from a zip or jar file, you can simply uncheck the option : 'Contact all update sites during install to find required software'
However, this will not fix the problem completely, and in the Eclipse Marketplace there is no such option to uncheck and you can be hanged at 'Calculating requirements and dependencies' forever.
The true problem are the Available Software Sites provided in Eclipse. Basically, the option above will let Eclipse connect to each of the sites that are enabled and wait till all the sites response. Therefore, even if just 1 site is problematic and not respond, Eclipse will wait forever.
You can configure this by choosing the 'Manage' button next to 'Add' in 'Install new softwares...' or in 'Windows -> Preferences -> Install/Update -> Available Software Sites'
It is as simple as testing each of the sites in the list and Disable/Remove any sites that is unable to connect, especially externals sites added by users that may contain typos.
The above solution should work in most situations, but if it doesn't, please check your connection and disable proxy, firewall or allow Eclipse to pass through them.
In Eclipse Oxygen (jun 2017) and in Available Software Sites, I've updated the location of "Eclipse Orbit Composite" to the last buid repository in http://download.eclipse.org/tools/orbit/downloads/
Example:
From: ...download.eclipse.org/tools/orbit/downloads/drops/R20150821153341/repository/
To: ...download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository
UPDATE:
Change DNS router to DNS google 8.8.8.8/8.8.4.4 works for me!
Follow these steps.
Start Eclipse, then select Help > Install New Software…. Click Add,
in the top-right corner.
In the Add Repository dialog that appears, enter “ADT Plugin” for
the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/ Click OK
Note: If you have
trouble acquiring the plugin, try using “http” in the Location URL,
instead of “https” (https is preferred for security reasons)
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next. In the next window, you’ll see a
list of the tools to be downloaded. Click Next. Read and accept the
license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can’t be established, click OK. When the installation completes, restart Eclipse.

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.

How do I add FTP support to Eclipse?

I'm using Eclipse PHP Development Tools. What would be the easiest way to access a file or maybe create a remote project trough FTP and maybe SSH and SFTP?.
Eclipse natively supports FTP and SSH. Aptana is not necessary.
Native FTP and SSH support in Eclipse is in the "Remote System Explorer End-User Runtime" Plugin.
Install it through Eclipse itself. These instructions may vary slightly with your version of Eclipse:
Go to 'Help' -> 'Install New Software' (in older Eclipses, this is called something a bit different)
In the 'Work with:' drop-down, select your version's plugin release site. Example: for Kepler, this is Kepler - http://download.eclipse.org/releases/kepler
In the filter field, type 'remote'.
Check the box next to 'Remote System Explorer End-User Runtime'
Click 'Next', and accept the terms. It should now download and install.
After install, Eclipse may want to restart.
Using it, in Eclipse:
Window -> Open Perspective -> (perhaps select 'Other') -> Remote System Explorer
File -> New -> Other -> Remote System Explorer (folder) -> Connection (or type Connection into the filter field)
Choose FTP from the 'Select Remote System Type' panel.
Fill in your FTP host info in the next panel (username and password come later).
In the Remote Systems panel, right-click the hostname and click 'connect'.
Enter username + password and you're good!
Well, not exactly 'good'. The RSE system is fairly unusual, but you're connected.
And you're one smart cookie! You'll figure out the rest.
Edit: To change the default port, follow the instructions on this page: http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse/
Install Aptana plugin to your Eclipse installation.
It has built-in FTP support, and it works excellently.
You can:
Edit files directly from the FTP server
Perform file/folder management (copy, delete, move, rename, etc.)
Upload/download files to/from FTP server
Synchronize local files with FTP server. You can make several profiles (actually projects) for this so you won't have to reinput over and over again.
As a matter of fact the FTP support is so good I'm using Aptana (or Eclipse + Aptana) now for all my FTP needs. Plus I get syntax highlighting/whatever coding support there is. Granted, Eclipse is not the speediest app to launch, but it doesn't bug me so much.
have you checked RSE (Remote System Explorer) ? I think it's pretty close to what you want to achieve.
a blog post about it, with screenshots
I'm not sure if this works for you, but when I do small solo PHP projects with Eclipse, the first thing I set up is an Ant script for deploying the project to a remote testing environment. I code away locally, and whenever I want to test it, I just hit the shortcut which updates the remote site.
Eclipse has good Ant support out of the box, and the scripts aren't hard to make.
SFTP Plug-in:
http://www.jcraft.com/eclipse-sftp/
:)
As none of the other solutions mentioned satisfied me, I wrote a script that uses WinSCP to sync local directories in a project to a FTP(S)/SFTP/SCP Server when eclipse's autobuild feature is triggered. Obviously, this is a Windows-only solution.
Maybe someone finds this useful:
http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/