Archive for August, 2006


Why can’t I make an existing project a Java project in Eclipse?

Thursday, August 17th, 2006

This is something that always frustrates me with Eclipse, unless you create a project as a Java project there appears to be no way to make it one through the interface. The most common case I have is I check something out of Subversion but can’t compile it because it’s just a regular project.

I should be able to go to Project Properties > Builders and add a Java builder. But it’s not possible. If I choose ‘New’ I can add an Ant Builder or a Program. If I choose ‘Import’ I have to find some configuration file. Why isn’t ‘Java’ in the new list?

The only way I’ve found is to add the following to your .project file then restart Eclipse:

<buildSpec>
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments></arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Then you can configure the project as a Java one and setup the build path, library dependencies, etc.

Does any one know of an easier way?

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Why can’t I make an existing project a Java project in Eclipse? digg.com digg it!  |  reddit reddit!

Getting Started with J2ME

Tuesday, August 1st, 2006

Can anyone recommend a SDK for J2ME on Linux? I want to try out a few things but getting started doesn’t appear to be as easy as it does with J2SE. I need the standard Java stuff as well as some sort of phone emulator.

Sun’s Toolkit needs Windows XP, as does Sony Ericsson’s. I’ve tried IBM’s WebSphere Everyplace Micro Environment, but when I start the emulator it keeps complaining about font paths. Even when I do fix the font paths it just displays the error message in a different font!

Is there a simple SDK out there?

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Getting Started with J2ME digg.com digg it!  |  reddit reddit!