Using JSLint in Java/GWT


I'm currently working on a project in Java, that will allow users to type Javascript code into a GWT Widget. How would I go about importing/using JSLint to check for errors? I looked around and found LSLint4Java, but I couldn't find the way to import it into eclipse. I just need a simple JS error checker that will check a string for errors.

If anyone has any other suggestions for error checking, please share them! Thanks.


The JSlint javascript source can be found <a href="https://github.com/douglascrockford/JSLint/" rel="nofollow">here</a>. You could include the javascript in your WAR, reference it with a script link in your page(s), and make JSNI calls from/to your GWT code.

Note that JSLint has a <em>No Evil</em> clause in it's license:


// The Software shall be used for Good, not Evil.


<a href="https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI" rel="nofollow">Here's</a> a good start on JSNI.


  • Spell Checker in Nutch 1.0
  • Sonar Checkstyle import: Rule template can't be activated on a Quality profile
  • Employing NuSMV as a model checker in java
  • How to make Solr's spell checker ignore case?
  • How to import Navit into Eclipse and use it in own android project
  • ZipResourceFile cannot be resolved to a type
  • Unable to run SDL program in Eclipse but able to do so in Windows Explorer
  • How to resolve dependencies from one gradle project to another gradle project in my Eclipse workspac
  • Wrapping text in spinner android
  • Any nice way to generate a timeline view of commits from subversion?
  • Local Development, Apache vs Developer - file permissions
  • How to revert to previous XCode version?
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Recording logins for password protected directories
  • Splitting given String into two variables - php
  • req.body is undefined - nodejs
  • Check if a string to interpolate provides expected placeholders
  • Modifying destination and filename of gulp-svg-sprite
  • Where to put my custom functions in Wordpress?
  • Importing jscolor library in angular 2
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • Numpy divide by zero. Why?
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Transpose CSV data with awk (pivot transformation)
  • How to get icons for entities from eclipse?
  • Python: how to group similar lists together in a list of lists?
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Append folder name and increment by 1 using batch script
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Is there any way to bind data to data.frame by some index?
  • Busy indicator not showing up in wpf window [duplicate]
  • How can i traverse a binary tree from right to left in java?
  • Android Heatmap on canvas or ImageView
  • Conditional In-Line CSS for IE and Others?