JQuery Code Content Assistance for Eclipse WTP 10.13.08
JavaScript code content assistance built in Eclipse WTP does very good job that I found even better than the same functionality in some commercial solutions, however, JQuery’s syntax is not supported (no surprise). That’s why jQueryWTP tool comes to help adding JQuery support to Eclipse WTP (and Eclipse PDT, MyEclipse which are based on WTP too.)
This is not an Eclipse plugin instead a tool to patch the existing plugin and inject JQuery’s syntax support into it. First download the tool from SourceForce; it’s a Java executable JAR so you can double-click to it or run it from command line:
java -jar jqueryWTP0.2forJQuery1.2.6.jarNow browse to plugin file
org.eclipse.wst.javascript.ui_xxxxxxx.jar
and set output directory to generate the patch. Please backup the original file and set output directory different from source one.

Select “Generate” button to get the patched file then copy over original file. Start Eclipse and open a HTML or script file to see JQuery’s functions listed on code assistance like image below.

Find more info about JQueryWTP and donate for project here.
Tigger's Bouncy Day/wtp Rattle Tote Ii (Winnie-The-Pooh Rattle Totes)
Learning jQuery 1.3
jQuery UI 1.6: The User Interface Library for jQuery













October 15th, 2008 at 8:16 am
I got this error trying to execut the jar file.
D:\Downloads>java -jar jqueryWTP0.2forJQuery1.2.6.jar
Exception in thread “main” java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
October 15th, 2008 at 8:32 am
I’ve got no problem with Java 6
October 16th, 2008 at 3:45 am
i have follwed your steps precisely, however i still dont get JQuery support
I am using Eclipse Ganymede and Java 6 .What may be possibly be the problem??
October 29th, 2008 at 6:56 am
Same problem - Eclipse 3.4.1, newest WTP, JRE 6, backed up xx.wst.javascript.ui_xx, downloaded jQueryWTP 0.2, patched succesfully (very helpful information about different path), replaced in the eclipse plugin folder, restarted eclipse, and.. don’t work..
Clear JavaScript still works, but there is no support for jQuery..
What’s interesting, on a page where is var $j = jQuery.noConflict(), when I type $ and press Ctrl + Space, it completes with “j”. Also on that page, when pressing Ctrl + Space it shows list with “$j: Object” position. But nothing more..
November 4th, 2008 at 2:45 pm
I download the jqueryWTP but it doesnt work with eclipse 3.4.1
after successful patching of org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar the jquery autocomplete doesnt work. Something mroe I see that in a regular html file I have autocomplete of keywords like function,while etc but i dont have autocomplete on “document” element for example maybe this is the reason why jquery cant work i dont know I know that there is some changes related to JavaScript support in Eclipse 3.4 ( JSDT ) but I have no idea and i need jquery
in my eclipse/plugins dir I have
org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar
org.eclipse.wst.javascript.ui.infopop_1.0.100.v200805301545.jar
org.eclipse.wst.javascript.core_1.0.200.v200805140200.jar
I am not sure that the last one exists in eclipse 3.3 maybe I just have forgot it maybe its new i dont know but after patcihng the jar jquery dont work happens.
Please send a feadback to the author of jqueryWTP I cant find his mail.
November 22nd, 2008 at 1:31 am
it doesn’t work!!! I do it step by step follow
step1:download jqueryWTP_version.jar
step2:find you Eclipse Plugin org.eclipse.wst.javascript.ui_xxxxxxx.jar,backup the plugin.
step3:double click the jar file or run with command java -jar jqueryWTP.version.jar
step4:on the opened swing UI,choose org.eclipse.wst.javascript.ui_xxxxxxx.jar,and output dir.
step5:click generate button.
step6:replace old org.eclipse.wst.javascript.ui_xxxxxxx.jar file with the generated file.
step7:restart eclipse.
step8:open a html file,edit js content.
but it doesn’t work
November 22nd, 2008 at 2:01 pm
Have you thought of supplying this a patch for the JSDT itself to allow it to handle it natively with out having to do the patch route.
November 29th, 2008 at 5:44 pm
Could you please post information about versions of both eclipse, and WTP where it seemed to work? Do I need to manually attach jQuery to the project?
December 24th, 2008 at 2:00 pm
I’ve posted instructions on how to install the jqueryWTP patch for Eclipse on Mac OS X (http://2tbsp.com/node/107).
January 13th, 2009 at 12:27 pm
Success! I used EasyEclipse v1.22 plus Eclipse WTP to get the Eclipse Plugin org.eclipse.wst.javascript.ui_xxxxxxx.jar, then just followed the steps.
February 20th, 2009 at 9:41 pm
You have to use java 6 to run the program.
March 9th, 2009 at 8:43 pm
It seems working only with Eclipse 3.3 and Java 6.
April 24th, 2009 at 2:12 am
Can’t seem to get this working.
Using Eclipse Version: 3.3.2.
I have Java 1.5 and Java 1.6 installed, but have switched my JAVA_HOME to the 1.6.
Behaviour exhibited is as follows:
Eclipse functions normally but no JQuery support has been added.
Any ideas?