Practical
Embedded Java

Eclipse Tips


A practical engineering approach to using embedded Java in real-world applications.


...



 


Upgrading your Eclipse to 3.3 "Europa" (2007 Oct 10)
Recently we needed to upgrade several Eclipse versions from 3.2.X to 3.3, and this is not possible from within Eclipse. The Eclipse website has this help about upgrading. Here's what we did:
  1. Zip up the current configuration, which by default is in C:\Documents and Settings\{username}\workspace. This is a precaution in case you need to go back to the currently installed version of Eclipse. Note that this default workspace is where your Eclipse configurations are stored (unless you use the -data parameter to tell Eclipse where else to store the workspace data) regardless of where you actually store your Eclipse projects (in our case, in a vitrual P drive).
  2. Rename the current Eclipse folder from "eclipse" to something specific such as "eclipse_3.2.1"
  3. Get the Eclipse SDK if you want the source and other options (150 MB) or just the JDT download (80 MB) for Java development
  4. Unzip the new Eclipse install into the default c:\eclipse folder
  5. Start the new Eclipse, direct it to the old/current workspace. I've started using the -data parameter in the startup shortcut.
  6. Subversion isn't found... and it can't create my saved "Bruce Java" perspective. I could re-install Subversion but I decided to be lazy and copy over the org.tigris.* folder and all jars for Subversion 1.2.4. Restarted and now it works.
  7. Eclipse since 3.0 stores the workspace and configuration definitions outside of the IDE files themselves. It would be nice if it did the same with your list of plugins...
  8. But now I am still missing the C/C++ tools.
  9. OK, use Update Manager to look for new features in the Europa Discovery Site. There are a ton, including C/C++ tools. So install those. Restart Eclipse.
  10. Hmm, Subversion respository browsing doesn't work. My brute force copying must have missed something... so go ahead and install Subclipse from the Update Manager, with Eclipse update site URL: http://subclipse.tigris.org/update_1.2.x
  11. OK, now Subversion repository exploring works, although I had to recreate a SVN Repository View.
  12. Re-change the Window->Preferences->Ant Runtime Ant Home button to point to my "real" Ant installation under C:\JavaSoft\apache-ant-1.6.5 instead of the one installed with Eclipse. This preserves all my custom plugins too. One more good reason to do Ant this way - Eclipse upgrades don't break Ant or any of it's additions.
  13. I lost my AVR plugins in the upgrade but I never did get them to work properly anyway so no great loss there. They don't appear at Eclipse Plugin Central either. Also the C "managed make" project type isn't understood either, but this is no great loss since I do all my C makes for the AVR using the GNU/Atmel WinAVR tools anyway. It would be nice to have them all integrated with Eclipse but I've not put the time into ironing out the kinks. So I just use Eclipse as the editor and CVS/SVN front end, and then do all the Making and downloading within WinAVR.

 
Systronix® 939 Edison St, Salt Lake City, Utah, USA 84111
Tel +1-801-534-1017, Fax +1-801-534-1019
contact us     Time Zone: MDT (UTC-6)
 

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Systronix is independent of Sun Microsystems, Inc.
TStik, JStik, JCX, JStamp, JSimm, JDroid, and JRealTime are trademarks of Systronix, Inc.
1-Wire, iButton and TINI are trademarks of Dallas Semiconductor
Simmstick is a trademark of Dontronics
LEGO® is a trademark of Lego A/S, Denmark