Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_bloglinks::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/bloglinks/action.php on line 191

Strict Standards: Declaration of action_plugin_tag::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/tag/action.php on line 117

Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/importoldindex/action.php on line 57

Strict Standards: Declaration of action_plugin_discussion::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/discussion/action.php on line 1144

Strict Standards: Declaration of action_plugin_feedmod::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/feedmod/action.php on line 133

Strict Standards: Declaration of action_plugin_blockquote::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/blockquote/action.php on line 61

Strict Standards: Declaration of action_plugin_blog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/blog/action.php on line 171

Strict Standards: Declaration of action_plugin_include::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/include/action.php on line 142

Strict Standards: Declaration of action_plugin_openid::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /kunden/doogie.de/wiki/lib/plugins/openid/action.php on line 534

Warning: Cannot modify header information - headers already sent by (output started at /kunden/doogie.de/wiki/lib/plugins/importoldchangelog/action.php:8) in /kunden/doogie.de/wiki/inc/auth.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /kunden/doogie.de/wiki/lib/plugins/importoldchangelog/action.php:8) in /kunden/doogie.de/wiki/inc/actions.php on line 163
DoogiesWiki [blog:smartgwt_with_eclipse]

SmartGWT with Eclipse

This little HowTo describes how to create and configure a SmartGWT 2.2 project in the Eclipse IDE. SmartGWT extends the Google Web Toolkit Library with many nice UI Widgets. 1)

Prerequesites

Of course you need to have installed the latest JDK and Eclipse for Java Developers. The installation of the Google WebToolkit Eclipse Plugin is descirbed very nicely in their docs. Download SmartGWT an extract smartgwt.jar to your preferred library location.

Create new project in Eclipse

  • In Eclipse → File → New → Java Project
  • Enter Project Name, next
  • Later the 'Default output folder needs to be set to <project>/war/WEB-INF/classes.2)
  • Go to tab 'Libraries' → Add Library
  • Add Google Web Toolkit (and maybe Google App Engine, if you want it.)
  • Choose 'User Libray' → next
    • If you haven't setup SmartGWT as a User Libray in Eclipse already, then
    • Click 'User Libraries …' → then in Preferences click 'New …' → Enter Name 'SmartGWT 2.2'
    • Add Jars … → Browse to smartgwt.jar that you extracted in step one.
  • You now should be able to select 'SmartGWT 2.2' as a user library and add it.

Your project settings should now look like this:

Copy Sources from Showcase Examples

Copy all java source files

  • from the place where you extracted smartgwt-2.2\samples\Showcase\src
  • into the existing src/ directory of your Eclipse Project in your Eclipse Workspace



Copy the whole war/ directory

  • from the place where you extracted smartgwt-2.2\samples\Showcase\war
  • into your java project's direcotry.



(This manual copying of files might seem unusual. I know that there would be an 'Import project' feature in Eclipse. But that only works, if the project to import, already had the eclipse specific .project file and the .settings/ dir, which the current SmartGWT/sample/showcase directory has not.)

Rebuilt

Back in Eclipse, right click on the project and select 'Refresh'. If your 'Project' menu is set to 'Build automatically' then Eclipse will automatically do a complete rebuilt

Check that Project → Properties → Java Build Path → Source → Default output folder is set to SmartGWT_ShowCases/war/WEB-INF/classes

Start

1) If you got what these two sentences mean at all, then you are a geek this HowTo is right for you :-)
2) In my case the Google Web Toolkit Compiler even did that automatically for me.
 
blog/smartgwt_with_eclipse.txt · Zuletzt geändert: 15.06.2010 12:07 von doogie
Recent changes RSS feed Driven by DokuWiki