Archive for the ‘Java’ Category

Is the Java Store dead ?

Friday, June 4th, 2010

I’ve been waiting since Devoxx for the Java Store to become available in Belgium.Seemingly zero changes since then :-(

Although it might not be the most original idea, it does sound like a natural fit for the java platform on the desktop.

Anyone knows if Oracle killed this off or if it died when James Gosling left Oracle ?

I for one am still rooting for this to actually happen. Yes I’m a dreamer.

Compiling Spring 3 from SVN on Linux

Wednesday, November 11th, 2009

Mostly so I don’t forget myself next time :-)

Don’t forget to checkout only the wanted HEAD revision from svn:

svn co -r HEAD https://src.springframework.org/svn/spring-framework/trunk spring-framework

If you have ant as part of your distro (as is the case in gentoo), download a binary ant distribution and run <your_new_ant_path>/bin/ant instead of the ‘default’ ant to prevent any classpath issues.

Make sure you do

export ANT_OPTS=”-XX:PermSize=128m -XX:MaxPermSize=128m”

If necessary add -Xmx512m or more too.

Enter build-spring-framework and run

<your_new_ant_path>/bin/ant

to build Spring. In order for Eclipse to be able to find all required jar’s, you’re probably best running the resolve ant target in most of the subprojects.

Open import the projects to an Eclipse workspace, set the IVY_CACHE classpath var in Eclipse prefs to spring-framework/ivy-cache

I had a few errors in tests for the oxm bundle failing, but since I don’t really need them anyways I just removed the src/test source dirs from the oxm project in Eclipse :-)

It’s 2 AM so yea, the above is probably pretty messy :)

64bit java plugin out in the wild aka Sun Java 6u12 released!

Monday, February 2nd, 2009

Get it hot! :-) As I’ll probably be waiting for this release to hit the/some Gentoo/Ubuntu repo, I have to say I’m surprised at the seemingly short interval between the last update releases. Seems 11 was only last week somehow.

As my previous Athlon64 and current Intel i7 Core are both 64bit, I do have to say I’m anxious to try the long announced java plugin for 64bit platforms. I’ve been using icedtea 6 on gentoo for a while, but as I need a Sun JVM for professional stuff I’m glad this update has finally arrived. Curious to see if it lives up to it’s expectations.

Besides all that, the included improvements seem quite numerous (take a look at the release notes)

Can’t find the Capabilities prefs pane or Classic Update?

Wednesday, December 17th, 2008

Eclipse 3.4 Ganymede introduces a new UI for software updates.

In order for the Help->Software Updates submenu to show up again:

  1. install the Eclipse SDK plugin if needed
  2. enable Classic Update in Preferences->General->Capabilities

Easy as eating … fries! :-)

64bit Flash plugin for Linux, finally!

Monday, November 17th, 2008

Pigs seem to be able to fly as Adobe today released a preview 64bit release of it’s Flash plugin!

Are the days of using nspluginwrapper finally over? I suppose we can’t expect too much of a preview but those days seem to be coming!

If now we get a fast 64bit native java runtime (with a working -client option please), I guess the productive life in the 64bit Linux world is finally no more painful than the 32bit world.

Kudos Adobe, this is a step in the right direction!

Now, please also create a Linux version equivalent (or even something better maybe) to Digital Editions and I can actually take advantage of my digital subscribtion to www.standaard.be to read the entire paper digitally.

The pain of setting the classpath through the Jar Manifest

Wednesday, October 8th, 2008

I’ll keep this short: jar manifests suck. I just found out a jar wasn’t loaded as it was supposed to because my manifest classpath entry was 70 chars long (including the first space!). All other lines were 71 chars long, except this one because the entry was finished, so I was missing one space.

Netbeans handles this nicely when I build my app consisting of a number of projects with jar dependencies. Everything ends up ready to run in the dist dir of the main project root. Neat and simple. In Eclipse I seem to overlook the ability to export a Jar with it’s dependencies’ classpath preconfigured & packaged alongside the project code. I mean, am I *supposed* to do this myself?

I guess I really need to upgrade to using ant or maven and automate these kinds of things … and I will! Euhm … soon!

Since this is a clientside project, I’ll finally make the step and get the right kind of certificate to sign my code and WebStart enable the entire thing. And unless I solve these issues, I’ll return to netbeans for that purpose, although MyEclipse finally enabled me to stick with Eclipse :(

Until I switch to something automated of course :-)

Tired now. Need sleep.

Nite nite.

PS: I was about to reread but I’m too tired, so sorry, it’s probably badly written and ill-structured (or something)

‘Fixing’ the slow JFileChooser on Windows XP

Friday, September 26th, 2008

Ever used a Java Swing app on Windows XP that seemed to freeze when you open a JFileChooser dialog? Apparently it’s caused by calls being made to Windows’ infamous integrated ‘compressed folders’ utility when files are recognized as archives.

The bad news is that every stable Sun JVM on Windows XP up to today suffers from this issue.
The good news that the issue has been f fixed in Java 1.6u10b07. Although I don’t presume to know the entire history of this bug, it seems a little sad to see this one was reported against release 1.4.2.

To fix on java versions predating 6u10b7, the only fix is effectively unregistering the zip folder dll from windows. Since I won’t quite use 6u10 until it’s GA and I’ve been a happy 7zip user on every OS I use for quite some time now I decided to go for the uninstall.

To unregister (and disable ‘Compressed Folders’):
regsvr32 /u %windir%\system32\zipfldr.dll

If you decide for some reason you can’t live without it and want to re-enable, execute again from a cmd :
regsvr32 zipfldr.dll

and you’ll be sending things to compressed folders before you know it :-)

How to restore EJB injection in MyEclipse 6+ after adding ICEFaces support

Sunday, September 21st, 2008

After some headscratching, I found out why EJB injection into my managed beans for jsf application stopped working after adding ICEFaces Support on the MyEclipse forums.

It’s actually very simple and logical: upon adding ICEFaces support to the EE Web Project, you’re asked to downgrade to a servlet 2.4 compatible web.xml, which is the cause of the trouble.

To restore the EJB injection, just copy the web-app tag from the renamed original web.xml called web.xml.org which can be found in the WEB-INF dir of the WebRoot dir. In case you deleted it:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

Also, make sure the JSF version is set to 1.2 in faces-config.xml, which was the case for me.

My actual versions: MyEclipse 6.5.1 with ICEFaces support 1.7.1 for Eclipse.

MyEclipse 6.5 & IceFaces support ?

Thursday, September 18th, 2008

Does anybody have a working ICEFaces integration in MyEclipse? The latest version of the ICEFaces plugins for MyEclipse is for version 6.0.1 which does not appear to work anymore in MyEclipse 6.5 (The properties view throws Exception ‘à volonté’ when I select an ICEFaces Datatable component for example)

I’ve acquired MyEclipse a good month ago and must say I’m pretty satisfied with my $30 (annual) investment. A lot of these plugins are available by other means, whether they be Eclipse plugins or Netbeans or … What specifically makes MyEclipse valuable for me is the fact that it’s all preconfigured for one specific Eclipse runtime, the fact that I can edit Netbeans Matisse GUI forms and hopefully the ICEFaces support :-)

I’ve lost way too much time with handling all the different Eclipse Runtime requirements for plugins over the last few years. It’s a great platform, but somehow it seems you can’t do without a number of installed Runtimes. MyEclipse brings this number down to 4: MyEclipse, Lotus Notes, RAD & Lotus Symphony

When I installed on Linux I downloaded the Pulse Platform based installer without paying too much attention. After my initial surprise & scrutiny, I was pretty impressed by it’s easy of use for managing the plugins for MyEclipse. The process to do this straight from MyEclipse is about as easy as installing an application in Ubuntu using Add/Remove Applications, where the traditional Eclipse update support compares to Synaptic although it might be a little more complex (and powerful).

WebSphere Portal 6.1 is released!

Tuesday, July 1st, 2008

Woohoow, looking very much forward to getting my hands dirty with this one :)
JSR 286, WSRP 2.0, REST services, live text, AJAX proxy, … , lots of new sweetness. Oh and did I mention the new page loading model is *fast* (no more full page reloads because of portlets!)
Check out the top 10 new features at IBM
And of course there’s the updated Portal Info Center