Welcome

Disclaimer: I'm learning while I go, and I hope you will too! It should be pretty basic. I can't guarantee that what's presented here is the best practice.

Sunday, January 16, 2011

Tips & Tricks

It's been a long time since posting on the blog. Here's some tips and tricks from my last GWT endeavors:
  • Installing Eclipse 3.6 (downloaded from eclipse.org) for 64-bit Linux (Ubuntu) may result in an error regarding the JVM: JVM exiting with error code 13. You have to start eclipse with the -vm option pointing to your JRE/JVM folder. For instance eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin
  • When developing on your computer you probably want to do without SOP, Same origin policy, which means you can't load things from anything but the localhost. If you plan to use a PHP backend and have the server installed on localhost this isn't a problem, but if you want to load the PHP files from another server, then it is. In Firefox, go to Add-ons -> Extensions and choose Preferences for the GWT Developer Plugin and add your exceptions to the SOP.
If you can't find the plugin, just run the example GWT application in your browser and you should be directed to download it.

0 comments:

Post a Comment