Thursday, November 24, 2011

How to fix GWT 2.3.0's No source code is available for type ; did you forget to inherit a required module?

To fix the following error (or similar errors) when doing a mvn clean compile on a GWT 2.3.0 app:

[ERROR] Errors in 'jar:file:/C:/Documents%20and%20Settings/myfolder/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] Line 97: No source code is available for type javax.validation.ConstraintViolation; did you forget to inherit a required module?


Ensure that you have the following validation-api jar and validation-api-sources jar in your pom.xml file (OUTSIDE of the gwt-maven-plugin dependencies in your pom.xml):


< dependency >
< groupId >javax.validation< /groupId >
< artifactId >validation-api< /artifactId >
< version >1.0.0.GA< /version >
< scope >provided< /scope >
< /dependency >
< dependency >
< groupId >javax.validation< /groupId >
< artifactId >validation-api< /artifactId >
< version >1.0.0.GA< /version >
< classifier >sources< /classifier >
< scope >provided< /scope >
< /dependency >

Tuesday, September 13, 2011

Adding 'cmd.exe' onto the Windows context menu

Manually add the context menu

In explorer, open Tools, Folder Options.
Select the File Types tab.
For Windows XP: Go to NONE / Folder.
For Windows 2000: Press n to scroll to the N/A section.
For Windows NT/98/95: Press f to scroll to the Folders section.
Select the entry labeled Folder
For Windows 2000/XP: Press Advanced button.
For Windows NT/98/95: Press Edit button.
Select New
In the action block type "Command Prompt" without the quotes.
In the app block type "cmd.exe" without the quotes.
Save and exit Folder Options.
Now right click on Start, you should have a new drop down option. Open explorer and right click on a folder, select Command Prompt and a command window opens in that folder.