Eclipse Import Problem

//Lesson learned today..
Apparently it is a known problem that Eclipse messed up with import @_@ So bad that other developer choose to switch IDE (not gonna happen to me). The worst thing is that it can’t recognize class from the same package *insert words to express frustration here*

This happened to me when I am using Eclipse Europa (Eclipse 3.3). I thought they should have fixed this problem by now!!

Quick hack to fix this: http://www.brunningonline.net/simon/blog/archives/001748.html

Eclipse regularly seems to forget that imports exist. I find this happens a lot when I edit and then save a file in my project.
My work-around: remove and then add the JRE library

1. right-click on your project folder
2. click properties
3. click on the Libraries tab
4. click on the JRE
5. click remove
6. click OK
7. repeat 1-3
8. click Add library
9. click JRE ssystem library
10. click finish
11. click OK

This seems to refresh the build path and sort out the problem temporarily. You can be sure though that it will not go away for good. :(

Installing GlassFish Plugin in Eclipse Europa

This ought to be straight forward but since nobody knows the proxy connection in the office and we are always connected directly to the internet (well, I had tried to download and run proxy reader tool, but it detect that I’m not using any proxy), I can’t use “Download Additional Server Adapter” link to get the latest GlassFish plugin from “New Server” dialog)

After about 3 days trying every possible links to find out where the **** they store the JAR file for GlassFish plugin, I finally found it!!!!!!!!! And I finally managed to install it manually!!!!!!

First download this plugin:
https://ajax.dev.java.net….sunappsrv_1.0.2.jar

And this feature:
https://ajax.dev.java.net….sunappsrv.feature_1.0.2.jar

Copy the plugin to your Eclipse Europa plugin directory and unzip it (folder name should be the same as the JAR file name – the easiest way is if you use WINRAR just right click and select “Extract to [folder name]”). Do the same with the feature JAR (copy to feature folder and unzip it). Restart your Eclipse Europa and voila!!!!

FYI, you would need Eclipse Europa (that is Eclipse 3.3) with WTP 2.0 RC3 at least for this plugin to work. And of course you would need to have GlassFish installed as well.