Error while installing PMD in eclipse - pmd

While installing PMD in eclipse Luna, i am getting some error like could not find jar even after jar is inside the zip file.
what i ve done is, downloaded the zip file of PMD eclipse file from
http://sourceforge.net/projects/pmd/files/latest/download?source=files
and in eclipse > Help > install new software >

To install the PMD for Eclipse plugin:
In Eclipse, click on Help -> Install New Software...
Click on Add..
Enter the following: Name: PMD for Eclipse Update Site URL: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ and click OK.
You should see PMD for Eclipse
Select the checkbox next to it and click Next >.
You'll need to accept the license and confirm you want to install a plugin that is not digitally signed. Go ahead and install it anyway.
Restart eclipse.
It will work.

Related

How to install TestNG in eclipse Kepler

I am trying to install TestNG (which I have never used before) in eclipse Kepler (4.3). I've tried to follow the directions provided on the TestNG site (http://testng.org/doc/download.html), but they do not work. The link (http://beust.com/eclipse/) just takes me to a page with a jar file. My experience is that when you use the installer within eclipse, it expects to be provided with a "p2" repository site. If I try to set up a site with the address provided, it fails.
On a related note, do I need to install TestNG as something additional (outside eclipse), or is the eclipse plug-in sufficient?
It is working fine on my machine. I just installed TestNG on my eclipse by following the steps below:
Click on Help > Install New software
Add the link http://beust.com/eclipse in Work with text box as shown below.
TestNG feature will be shown, expand the tree node then verify the version.
Tick the check box of TestNG
Click on Next button then Finish button.
I guess you enter wrong software update site. Remove the / and extra spaces around the link "http://beust.com/eclipse/" then try.
Nothing to install outside eclipse.
TestNG can also be installed in Eclipse by using "Eclipse Marketplace..." Below are the steps:
Open eclipse
Go to Help -> Eclipse Marketplace...
Do search for TestNG (Type the text TestNG in Find text box > Click Go button)
After searching: Click Install button at TestNG for Eclipse area
Follow the further instructions by eclipse
After successful installation: Go to Window -> Preferences. TestNG is enlisted at the left panel in pop-up.
Download Testng.jar and add testng jar as external-lib in eclipse. Eclipse will identify the testng.
Currently, TestNG is not available at https://beust.com/eclipse
To install TestNG in Eclipse version – 2019-03 or above, You can follow these steps:
Go to Window > Install New Software.
Enter https://testng.org/testng-eclipse-update-site/<TestNG Version> Refer to this site for TestNG Version: https://testng.org/testng-eclipse-update-site/
Select TestNG Options and Accept the agreement. Once you complete the process, TestNG will get installed.
Reference: https://testng.org/doc/download.html

Installing JSDT jQuery plugin in Eclipse Kepler 4.3

I've downloaded Eclipse Kepler 4.3 from official site in here.
And installed PDT plugin successfully (Eclipse -> Help -> Install new software).
The problem :
I need to install JSDT jQuery plugin.
I have tried :
Help -> Eclipse MarketPlace -> JSDT jQuery (Install)
But get me following error :
No repository found at
https://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite
Thanks in advance.
Method 1 :
Run Eclipse
Help -> Install New Software
Copy this link address and paste it on Work with section and hit Enter
After a few seconds JSDT jQuery checkbox will be appears.
Check JSDT jQuery and press next button and Next again..
Accept License Agreement and press Finish.
Restart Eclipse
Method 2 :
Download and install SVN client for example TortoiseSVN
Import the repository. Paste this URL https://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite in the URL of the repository field.
Then hit OK.
After that :
Run Eclipse Kepler
Help -> Install New Software -> Add -> Archive
Select ZIP file that was downloaded, and type a name.
Click OK.
Select JSDT Plugin check box and hit Next.
Accept licence and press Confirm.
Restart Eclipse
UPDATE
If you are unable to download that for any reasons(Specially for Iranian people), you can download that from below link :
http://www.mediafire.com/download/924166rcorf4bt1/JSDT_jQuery_-_20131019.zip
And then do above steps
To anyone having issues in 2016, I took the following steps:
List item
Download source code from https://code.google.com/archive/a/eclipselabs.org/p/jsdt-jquery/source/default/source or https://github.com/Nodeclipse/jsdt-jquery
Unzip and maven build the source code
In eclipse Help->Install New Software->Add...->Archive...->/location_to_source_directory/org.eclipselabs.jsdt.updatesite/target/org.eclipselabs.jsdt.updatesite-1.9.0-SNAPSHOT-site.zip
Give name -> Ok
...
Profit
To install JSDT jQuery plugin follow these steps:
Run Eclipse Kepler
From the top toolbar select Help -> Install New Software
In the box labelled Work with: copy and paste https://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite and hit enter.
Check JSDT jQuery and select the Next button
On the Install Details dialog select Next
Accept the License Agreement and select Finish
Select Yes to restart Eclipse
I prefer to use the Eclipse Marketplace, then you can also get updates for the plugin.
Run Eclipse
Help -> Eclipse Marketplace
Search for "jQuery"
Choose JSDT jQuery 1.7.0 (or newer version when it arrives)
Choose Install
Confirm selected features (check that it is selected and click Confirm)
Accept licence and press Confirm
Restart Eclipse
For install lastet version of JSDT Jquery plugin plesae enable a proxy in your pc and then open eclipse from toolbar select Help -> Install New Software and click the Add button and copy & paste this https://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite
Next click select all and click next to install it

Offine installation of PMD plugin for Eclipse IDE

I am trying to download and install PMD plugin for Eclipse offline but did not succeed in doing so.
I downloaded following 2 zips:
net.sourceforge.pmd.eclipse-3.2.6.v200903300643.zip (this version matches with the one which I installed online)
pmd-eclipse-1.8.0
Not sure which one to use and how to configure it in Eclipse.
I searched a lot but did not find proper steps for the offine installation and configuration.
In case it contains site archieve:
Goto Help->Install New Software
Click Add...
In the Add Repository Dialog click Archive and point to your zip. Rest of the installation is as you would do with an online installation.
Else:
Extract the zip
Copy all plugins to your target eclipse plugins folder
Copy all features to your target eclipse features folder
launch eclipse with -clean option
You can get the latest 4.0 version of the plugin by pointing your Eclipse installer here:
http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

Installing counterclockwise plugin manually

I have given up configuring my proxy settings in eclipse to download plugins. I want to install the counterclockwise plugins to run clojure in eclipse. I can download the jars into my C:\Program Files\EclipseIDE 3.6\dropins. Problem is when I start eclipse I dont have an option to start a new clojure project so I suppose the plugins are not being used.
The plugins I downlaoded are from http://ccw.cgrand.net/updatesite/plugins/. Note I downloaded a single version only.
You still use the Help -> Install New Software... option. Move the jars into a directory that's not part of Eclipse.
On the Install dialog, left click on the Add... button, just as if you were installing software from a web site.
On the Add Repository dialog, to the right of the Location text box, is an Archive... button. Left click that button and point to the non-Eclipse directory where your counterclockwise plug-ins are located.
Perform the rest of the install new software steps to install your jars.
You can install the software manually on eclipse, find a zip file online.
Go to Help > Install New Software > Add > Archive and locate the zip file.
IMPORTANT
Make sure to untick the box "Contact all update sites during install to find required software" because if this is ticked it will give the "HTTP Proxy Authentication Required"
Put the jars into the /eclipse/plugins directory.

Eclipse File>Import "Other" missing for Maven 2 plugin

In attempting to follow the instructions on Using Eclipse with Maven in order to use Scala and Lift:
You’ll need to download and install Eclipse for Java or Java EE.
I first installed Eclipse on lubuntu 11.10 using the Synaptic Package Mananger.
The version I am using is "Eclipse Platform Version: 3.7.0 Build id: I20110613-1736". Then the instructions say to install M2Eclipse:
Then install the M2Eclipse, Scala IDE, and M2Eclipse-Scala plugins.
So I followed the link to M2Eclipse where there is a video which says to use "File>Import" which should display a list of choices which includes "Other" in the "Import" window. These instructions are at time stamp "00:55" in the video. My "Import" window only lists "-General -CVS -Install-Pligin -Plugin-Development -Run/Debug -Team".
What am I missing?
Not all Eclipse versions have Maven2 preinstalled. You can check if it is installed in Eclipse via menu Help > About Eclipse. Check if there is an icon with the text m2, or alternatively click on "Installation details" and check the "Features" tab.
After you've installed it you will have new options in the File > Import menu.
Install M2Eclipse via menu Help > Install new software. Then click on the add button and add a site with location http://m2eclipse.sonatype.org/sites/m2e. Wait until contents are retrieved and check the items you want to install.