Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

April 23, 2021

Published April 23, 2021 by

Eclipse JGit : Basic authentication using a password to Git is deprecated and will soon no longer work

 I have recently received an email from GitHub saying :

You recently used a password to access the repository at [my GitHub repo] with git using JGit/5.3.0.201903130848-r.

Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.

I got this because I allowed JGit plugin of Eclipse to access my GitHub repo using password. To resolve this I need to configure Eclipse JGit to use token instead of password.

Here how it is done.

1) Go to New personal access token (github.com) and generate a new token with required scopes.





2) In Eclipse | [Your Project] go to Repositories View




3) Go to Remotes | Origin | Right click on the URL | Change Credentials



Now set the token instead of password in the password field.

That's all.

Read More

January 06, 2021

Published January 06, 2021 by

Gradle build failed in eclipse : Could not create an instance of type eclipsePlugin

I upgraded my Eclipse IDE to version 2020-12 (4.18.0) and started to get Gradle build error after launching the IDE.

In Eclipse console it showed this error:


FAILURE: Build failed with an exception.

* What went wrong:

Could not create an instance of type eclipsePlugin_5gol6cepvkmdl1guwpr4mu03j.

> Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


In Eclipse Problems tab it showed: 

Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.2.1-bin.zip'.

Could not create an instance of type eclipsePlugin_5gol6cepvkmdl1guwpr4mu03j.

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper


Solution:

The solution of the problem is simply upgrading Gradle. Previous gradle version was 5.2.1, then I upgraded to version 6.7.1 and got it resolved.

For gradlew wrapper, file gradle-wrapper.properties needs to be modified to update distributionUrl. This file is located at Project Root | gradle | wrapper.

distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip.

After the update, gradlew clean build command will download the new gradle version and the problem will be resolved.

Read More

September 22, 2010

Published September 22, 2010 by

Creating GWT Project in Eclipse

Getting Ready:

Before following this quick tutorial ensure that you have done the followings:
1.       Install the JDK. You can download it from http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.       Install the Eclipse IDE. It can be downloaded from http://www.eclipse.org/downloads/
3.       Install the GWT SDK which is available for download at http://code.google.com/webtoolkit/download.html
4.       Install the Google Plugin for Eclipse as instructed at http://code.google.com/eclipse/docs/download.html


How to do it:

Now follow the steps below to create the GWT Project
1.       Start Eclipse IDE
2.       Go to File | New | Other…
3.       Select Web Application Project under Google


4.       Press Next
5.       Give Project Name HelloGWT; give a Package Name (in this example it is com.blogspot.gwtguide.eclipse.hello); select Use Google Web Toolkit



6.       If the GWT SDK is not configured, click on Configure SDKs… ; add the web toolkit and press OK to close the dialog


7.       Press Finish and the project is created.




Run the project and see output



Read More