Amazon Links

Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Saturday, December 15, 2007

Eclipse Bangalore Camp: Mylyn Presentation

I was presenting at the Eclipse Bangalore Camp last week. i talked about Mylyn at this presentation. i am user of mylyn for long, and totally love it.

Mylyn,an eclipse plugin is lying the foundation for the next generation IDE. i would say Task focussed IDE, is a fundamental shift in the way ppl are going to use eclipse.

I would recommended any one doing serious development in eclipse to look at mylyn. This can revolutionize the way you work !.

So friends, go and get plugged in ..

Tuesday, October 02, 2007

Ubuntu(7.04) and Eclipse.

Today, let us talk about eclipse 3.3 on Ubuntu. Being an Java Programmer, eclipse plays an important role in my life.


Installing Java

I have installed JDK 1.6 from the multiverse repository for Ubuntu 7.04 . The process involves downloading sun-java6-jdk package from the multiverse repository.


Installing eclipse

I downloaded eclipse archive from the eclipse site, unzipped it and executed the eclipse binary. It easily detected the jdk and worked great. Performance was also good.


All was not over, once i started with some serious memory hogging stuff using GMF on eclipse, the ide started to crash. This happened a number of times, i tried increasing the memory but it didn't help. Finally, after a lot of searching i found refers to issue in the jdk with reference to perm space. It seems some people have successfully resolved it my increasing perm size, but it didn't work for me.


I finally decided to install jdk 1.5, the jdk 1.5 package is sun-java5-jdk , and it ships jdk 1.5.0_11 on (Ubuntu 7.04). And switched the default java to 1.5 using update-alternatives command.The perm space issues are resolved in 1.5.0_8, so the later versions worked perfectly. Once i upgraded and started using the new jdk with eclipse i have not faced the permspace issues.


Eclipse on Ubuntu gives me good performance, specially good behaviour in compiling large projects.

Thursday, May 06, 2004

I was just getting under the eventing support in java from a developer persepective. I wanted to define my own eventing system for a asynchronous response problem.

An good Tutorial on swing eventing is Lesson: Writing Event Listeners.
The important classes in this case are :-
  • EventListener
  • EventObject
The above classes are well explained in User defined Event Listeners Article. But the story doesn't end here,
the other eventing classes that i saw are the following:-
  • javax.swing.event.EventListenerList
  • java.util.EventListenerProxy



Now the important point is that both EventListerList and EventListenerProxy can play an important role in the implementation of the java based eventing solution.

So why are they not defined in java.util.* or say java.util.events.* ?

It seems a Generic Eventing Base has never been of importance to JDK Developers. (A possible project !!).


I leave you thinking for the same.

Tuesday, March 23, 2004

My First Blog on JAXB

Well processing the uddi v2 schema with JAXB is not straightforward.
JAXB tries to map each element, complextype, simpletype into a jaxb class. And v2 xsd contains some of these elements with the same names. As a result, it leads to an overlap in names of generated classes and hence you see the Error messages.

To overcome this problem, we need to customize the JAXB using Customization of JAXB Bindings.
See the Sample Code Nsure Uddi Project at Forge . Binding for JAXB Code Generations of uddiv2.xsd



The customization above handles the issue of duplicate class names. which results in the error reported.
Note: You need to include the above customization while generating the JAXB classes.