Skip to main content

Posts

Showing posts with the label eclipse

Eclipse Indigo without mylyn

Eclipse's new release Indigo (3.7) comes pre installed with Mylyn. And unlike previous installations Mylyn is tightly integrated with Eclipse platform package. The "installed features" does not show it as a separate feature to uninstall. It appears as if it cannot be uninstalled at all.

Maven Only: type parameters of X cannot be determined

This is a rare error that compiling with Eclipse does not catch, but maven compile goal will. In the case in question, There is a Generic return type as follows, as discussed in java forums private <A> A getValue(){ return getOtherValue(); //<-- Error occurs here } It compiles out an error: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object The intriguing question is, why does this happen only in maven? Why does it not happen in Eclipse? Few in the java forum have suggested that this is a bug in the compiler. However, an impatient programmer looking for a solution around it, Just cant get it. There is an unanswered stack overflow post here . The java forum is also confusing for a novice. The simple answer here is, the getValue() method (or the getOtherValue, or the method it calls) is, at some place, not really Strongly typed and the compiler is left to guess wildly about...

Speed up Eclipse from a slow workspace

After working on a few Java/JEE projects, your workspace really gets to become fat. I mean, it gets very very slow. This is because you opened and closed a lot of projects with a loooot of resources in it. Also because every time you press that Ctrl+Shift+R, or Ctrl+Shift+O, or Ctrl+T in java or run some free text search, You are loading up eclipse's cache of index. Also JDT slowly keeps a track of it, for Type Hierarchies, Implementations. The easiest way is to open a workspace for every unrelated project. Keep it small. But sometimes, it is not possible. Dependencies. Ease to work with one monolithic workspace (opening and closing projects - yea that's me). For these cases, You could just clean up the .metadata\.plugins\org.eclipse.jdt.core folder in your workspace. If you are feeling even lucky, go ahead, clean up .metadata\.plugins\org.eclipse.core.resources\.history ... a. a. aa. Wait, That folder, contains all that local history of files you have changed - LOCALLY ...

MANIFEST.MF in Plain Java, EJB, OSGi - catching the drift

While reading about OSGi, I realised how the importance of MANIFEST.MF has grown over time. The once only-a-jar-information file has had its ups and downs. When I was in school, *chapter jar* was an "assignment" / "reference". It wasn't worth a class' time spent on it. Today a whole new technology relies on this humble text file. Past: Long long ago, in stone age (yeah I am exaggerating), the MANIFEST.MF was auto-generated while jar-ing. More or less it was not used. Well, yeah if you are developing a java application to be distributed to end-users (the jars you used to double click, which are so replaced by jnlp a.k.a WebStart apps now). This file would give a place to specify the class path Manifest-Version: 1.0 Created-By: 1.4.2 (Sun Microsystems Inc.) Main-Class: com.big.long.package.MyAppMain Class-Path: mod1.jar mod2.jar lib/lib.jar This will be set when running java -jar myapp.jar which other wise would have to be something like java -jar myap...

Solved - Eclipse looks good in Ubuntu Now!

This is a follow up post that solved an issue I had. This post will also illustrate how to run a GTK application on a different theme Recently I posted that Eclipse on Ubuntu is the Ugly Betty. I was looking for a Theme that would make it look better(and a way to use it only for eclipse). A digg commentor suggested that I get Clearlooks Compact Theme . Another commentor (Victor Ott) suggested that I install a plugin That will save some screen real estate. I tried both. While the plugin is good, It makes eclipsel lose its easthetics. I then saw this post . So I improvised a little more.. Mixed all the ideas. First get the Libertarian fonts, as described in max's post . (They are really good indeed, I even made them my gnome defaults). Then, Download this archive and extract in the eclipse directory. And "chmod 755 ec" . Thats it! run ec instead of eclipse. What this does: The gtkrc-sar is a theme rc for GTK engine. Think of it as a CSS in HTML page, to GTK a...

Eclipse in Ubuntu Human Theme

By now, many people are done making a switch to ubuntu. Fallen in love with it and oogled on Compiz and its sooper dooper Cube (Okay, you might have even gone farther.. awn , conky..). However, You might still be dependent on Windoze for some applications. Among other things, Development is one such. I have created everything on my site and on this blog in Gimp and Eclipse. Needless to say Eclipse is my favorite IDE. So, I have had my share of issues in the past on my ubuntu. But now, I am hell bent on going full time on it. I have a lenovo Y410. It maxes out on 1280x800 resolution. I should say an experienced developer would clearly have issues with such *low* resolution. To make it worse, it appeared eclipse on linux was not built with this configuration in mind. A screenshot looks like this. . Apparently a large portion of the real estate is taken up by spacing in the toolbar icons, height of the tab, spacing in the tree etc. (my windoze eclipse is okay). The fonts, colors...

Using Java 1.4? Can't Use Webtools in Eclipse Ganymede?

At our new client, we still use Java 1.4 and I found that there is a problem installing Web tools in Eclipse 3.4 (Ganymede). The P2 Installer shows WST is installed, but I cannot see Server profiles, J2EE perspective, anything related to it. Here is what I installed, as shown in P2 But I cannot see J2EE related stuff in Perspectives, Preferences or New windows To resolve this, I installed a private 1.6 JRE. Started Eclipse with eclipse -vm c:\java\jre1.6\bin\javaw And it works!

Ganymede is here

Today marks a new episode for Eclipse. I talked about provisioning , and effective plugin mechnaism using osgi earlier. p2 and scores of features are now officially out. My intersts is much in the Eclipse Communication framework . However, this may be a quite entrance for ECF in Ganymede release as much of the default provider is not very impressive. The UI is not state of art, and LOUD cry far from multi-protol clients like pidgin (which is my favorite client). But What is worth giving a look is its Collaboration framework. New and innovative features include Collaborative code review and development . Nevertheless, Ganymede is much more impressive, maintainable and *loveable* :) Download today!

Equinox P2

Eclipse is moving more towards OSGi platform and very soon (in its next big Ganymede release), we will see how big a difference it is. Provisioning is the new Equinox platform for Eclipse installation, distribution and maintainance. Code named P2 this will replace the Update manager with more (desired) features . For starters, It will have shared plugin base, greater install and uninstall support for plugins, easier upgrade and managability. Keep it coming Eclipse.. Lots of Lov..

I dint dissappear

Another off time for me on this blog. I have some good news and bad news. The good news is I got an invite to Google App Engine. Kewl ha.. But The bad news is I am SWAMPED with work. My project is due release this month end, we are running drill migration on the 10th, So I am unable to write often. For you to research on it, Here is what I am working on now. Hibernate Optimisation and Profiling applications with TPTP (requires registration) in eclipse. I will post some of my findings soon. Try to catch up.. byee..

Amusing Licensing Agreement

Alright folks, My next programming Language venture is Python (thanks to google, this is my next resume inclusion). I am waiting for invite on Google App Engine . So meanwhile, I am setting up dev environment. While installing PyDEV for Eclipse, I got this Licensing Agreement. Ain't it refreshing than the boring 6-page agreements. I never read agreements (I dont assume anyone ever does - except Microsoft employees ;) but this one - I did read. I plan to write more about Python in coming days. Groovy was on my list, but now for GAE, Python takes precedence ;)

ReplayDirector - Something on my radar

On my Job as a J2EE consultant, I have encountered situations where I am unable to reproduce a problem QA encountered. For one, it may be a really hard-to-reproduce or not-realistically-probable situation in a normal user interaction and just that QA stumbled on it. Or it could be a piss port job by QA that they just broke it, no idea how - but the user might have higher probability of reaching that state. Either way, My job as a developer is to see that NO probabilistic known scenario should break my application. So here is one scenario I know the system is broken but I don't know how to fix it, because I just know the problem not its cause. Its a very challenging albeit annoying situation. I find myself very energetic in the beginning but as time passes without being able to find the cause, I get stressed. I guess many of you in the business, have had this situation some or the other time. Here is where recording the whole state of jvm comes into picture. ReplaySolutions has an...

Whats next for Eclipse

I have started my java career with Jet Brains' IntelliJ (more lovably called IDEa). After some time, IBM gave away one of the greatest donations to OSF The Eclipse platform . For the novice of me at that time, This was huge - How come a company that build WSAD give away the foundation technology used for the same commercial product to OSF. Well for good or bad, IBM did what it did. Ever since there is no looking back for Eclipse community - which grew leaps and bounds and now there are more than 50 core projects in eclipse itself and numerous plugins for almost any kind of development and deployment on earth. Eclipse's V3.4 has moved into the direction of OSGi (one of my recently found enthusing technologies). Recently there are preparations for e4 the next version for Eclipse. Whats next? Leave comments in Guestbook