• Happy Coding

Archive for the ‘Java’ Category

How to change a normal Eclipse project to a Java Eclipse project

I just had the problem that i wanted to change the project-type of an Eclipse project to ‘Java Project’ — it was a normal project before. This are the steps i executed:

  1. Close the project
  2. Go to the project directory  (e.g. using Terminal application)
  3. Open .project file
  4. Go to the XML node <natures> and insert <nature>org.eclipse.jdt.core.javanature</nature> as a child.
  5. Save the file
  6. Re-Open the project

That’s it.

Reblog this post [with Zemanta]

Apache Lucene and Ruby

Robert Dempsey has written a nice article about ‘Using Amazon S3, EC2, SQS, Lucene, and Ruby for Web Spidering‘, which is very interesting because it describes how to interact with Apache Lucene using Ruby.

Reblog this post [with Zemanta]

Red Hat Developer Studio Beta 1

Red Hat Developer Studio is a set of eclipse-based development tools that are pre-configured for JBoss Enterprise Middleware Platforms and Red Hat Enterprise Linux. Developers are not required to use Red Hat Developer Studio to develop on JBoss Enterprise Middleware and/or Red Hat Linux. But, many find these pre-configured tools offer significant time-savings and value, making them more productive and speeding time to deployment. Red Hat Developer Studio will be available as a new subscription offering soon.

See labs.jboss.com…

Note: Needs a Java version >= 1.5 to run.

JBossTools 2.0.0.beta3

Today we are officially announcing the release of JBossTools 2.0.0.beta3, the long-awaited follow up to JBossIDE 2.0.0.beta2 [...]

Download @ Sourceforge

hsqldb – 100% Java Database

HSQLDB is the leading SQL relational database engine written in Java. It has a JDBC driver and supports a rich subset of ANSI-92 SQL (BNF tree format) plus SQL 99 and 2003 enhancements. It offers a small (less than 100k in one version for applets), fast database engine which offers both in-memory and disk-based tables and supports embedded and server modes. Additionally, it includes tools such as a minimal web server, in-memory query and management tools (can be run as applets) and a number of demonstration examples.

(see hsqldb.org)

RSS/Atom Parser

This list contains some of the better parsers for RSS and Atom feeds. I’ll try to keep it up-to-date.

RSS/Atom Parser for Java:

ROME

TIPROME is an set of open source Java tools for parsing, generating and publishing RSS and Atom feeds. The core ROME library depends only on the JDOM XML parser and supports parsing, generating and converting all of the popular RSS and Atom formats including RSS 0.90, RSS 0.91 Netscape, RSS 0.91 Userland, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3, and Atom 1.0. You can parse to an RSS object model, an Atom object model or an abstract SyndFeed model that can model either family of formats.

  • Able to extend functionality through Modules (see ROME Modules)

Jakarta FeedParser

Jakarta FeedParser is a Java RSS/Atom parser designed to elegantly support all versions of RSS (0.9, 0.91, 0.92, 1.0, and 2.0), Atom 0.5 (and future versions) as well as easy ad hoc extension and RSS 1.0 modules capability.

Eddie

Eddie is a liberal RSS and Atom feed parsing library for Java. It is a SAX based parser and as a result is capable of parsing a significant number of broken feeds.

Informa

With Informa we enable you with a harmonised view on a news channel object model. Both channels and news items do have metadata assigned, it does not make any difference from which channel format they were originally retrieved (RSS 0.9x, RSS 1.0 / RDF, RSS 2.0, Atom 0.3 and Atom 1.0).

Read the rest of this entry »

NetBeans with RoR-Support

Uuh…

NetBeans.org is proud to announce the availability of NetBeans IDE 6.0 Preview (Milestone 9). Here are some of the highlights:

  • Ruby/JRuby/Ruby on Rails Support
  • A Smarter and Faster Editor
  • Improved Swing development (Swing Data Binding)
  • Integrated Profiling
  • Integrated Visual Design for Web Applications
  • New, Integrated UI for CLDC/MIDP and CDC development

View announcement

GRDDL

Worth a glance:

First JADE-Development book

Uuuuh, the first book about developing multiagentsystems using the JADE-platform is available: “Developing Multi-Agent Systems with JADE” by Fabio L. Bellifemine, Giovanni Caire and Dominic Greenwood.

Developing Multi-Agent Systems with JADE

Ok, not really cheap with approx. 80 EUR, but maybe worth the money.

You can order it for example here or here. Will be released in March, i think.

Experiences with Ruby handling Java

Ugo Cei has posted his experiences with Ruby handling Java code in 5 parts some month ago. Nice to read and very informative.

Ruby-Java Bridges

Call Java-Code from Ruby.

For example with RubyJavaBridge or YAJB.

Rome

ROME is an open source (Apache license) set of Atom/RSS Java utilities that make it easy to work in Java with most syndication formats:RSS 0.90, RSS 0.91 Netscape, RSS 0.91 Userland, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3, and Atom 1.0

ROME includes a set of parsers and generators for the various flavors of syndication feeds, as well as converters to convert from one format to another. The parsers can give you back Java objects that are either specific for the format you want to work with, or a generic normalized SyndFeed class that lets you work on with the data without bothering about the incoming or outgoing feed type.

Groovy On Rails

Man lernt nie aus. Habe heute Morgen durch den lieben Schockwellenreiter von Grails erfahren. Das ist ein auf Java basierendes Framework für Rapid Web Application Development, ähnlich dem bekannten Ruby On Rails.
Wer mehr Information sehen und mehr Wissen erlangen möchte, sollte auf den Grails-Seiten stöbern.

Posting to the Queso-Sever using Apache Abdera

Ben Szekely has posted an example for accessing his Queso-Server with Apache Abdera. The important part is

AtomClient client = new AtomClient();
Entry postedEntry = client.post("http://abdera.watson.ibm.com:8080/atom/example", entry).getRoot();

where ‘entry’ is the Atom element.

Proceedings of the 2006 Jena User Conference

Papers and slides from the 2006 Jena User Conference, which took place in Bristol (UK). Available here.

Eclipse Plugin fuer SWT GUI Design

Cloudgarden.com bietet ein schoenes Plugin fuer Eclipse an, mit dem man bequem seine GUI mit SWT Komponenten gestalten kann: Jigloo.

Ich arbeite damit unter Mac OS X und finde es sehr ansprechend:

Jigloo Screenshot