jump to navigation

JavaFX compiler for Linux very soon? May 11, 2009

Posted by claudio in Uncategorized.
Tags: , , ,
1 comment so far

javafxGood news. It seems that Linux and Solaris are getting the JavaFX development kit. Finally. In the fight against Silverlight and AIR every developer counts. Still some questions remain open:

  • Will SUN open JavaFX completely now (don’t make the JDK error twice!)?
  • When will -at least- Netbeans get a JavaFX graphical editor in the same level as the Netbeans’ Matisse Swing editor?
  • And last but not least, what will Oracle do with JavaFX when it owns SUN?

Anyway, if the apparently well-informed rumour is true, it is indeed good news.

I don’t like monkeys in the house April 24, 2009

Posted by claudio in Uncategorized.
Tags: , ,
2 comments

monkeygunThere have been some controversy about the .Net clone on Gnu/Linux: Mono.

I have been running Linux before Mono appeared and I remember the discussions. To be short: most reasons to introduce .Net on Linux are clearly bogus today. If you really want to use a high-level language with a VM, well … use Java (there are java-gtk2 bindings if you prefer a more native look than swing-gtk or swt-gtk). If you want to make it perfect, spend a fraction of the time and money of copying/rewriting a full stack (including a VM) and fix what need to be fixed on Java (specially now that’s GPL2). Besides, there are pretty decent IDEs that make you productive . If Java isn’t your cup of coffee tea (It should be as C# looks pretty similar to me), there are tons of other languages with gtk-bindings (I use gtk2-perl).

Anyway, being a user of a minority OS, there was one argument that stuck then: “we will enable thousands of windows programmers to run their programs unchanged on Linux”. I remember the apocalyptic warnings of “jumping on the .Net boat or drown and disappear”. Guess what, it didn’t happen. And it won’t happen. Windows developers prefer to write for the full and up-to-date .Net stack instead of an outdated Linux-clone. Nothing earth-shocking here. As long as the complete stack is not open (libraries), you will always play -incompatible- catchup.

What did we get instead? Beside a few proprietary applications (that can be counted on one hand), we’ve got some tools and applications that mainly run on Linux. Some of them are very nice, but nothing revolutionary that can not be written in an other language.

Do we need to live in fear of Microsofts lawyers for a few applications that can be written in a risk-free language or stack (e.g. Tomboy => Gnote)? To be honest, as long as the OS and my DE (Gnome) don’t depend on Mono, I don’t really care. If Microsoft sends its lawyers, there is always “apt-get purge libmono0 mono-common”. The problem I see is that Novell is pushing really hard to make Gnome dependant on Mono.

Removing Mono in that situation will mean holding the broken pieces of the Desktop in your hands.

Still no javafx for Linux? March 3, 2009

Posted by claudio in Uncategorized.
Tags: , , ,
3 comments

javafxI use a lot of Sun software: java, mysql, virtualbox, solaris, solaris cluster, etc.

Today, while having a look at webservices as an alternative to Swing clients, I decided to have a look at Sun’s attempt at the RIA market: Java FX.

Sadly, the javafx sdk has only be released for windows and macos. I guess Sun doesn’t get it that it needs as many developers as possible as its alternative is a few years late compared to the competitors. And a lot of linux users are developers/admins…

I know they are workarounds to get the sdk running on linux, but why bother?

Java 6 update 10 on Ubuntu 8.10 && Firefox November 5, 2008

Posted by claudio in Uncategorized.
Tags: , ,
7 comments

javalogo

EDIT: Then new Ubuntu release (9.04) fixes this problem, and installing the plugin can be done by typing this in a console: sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

When I wanted to test some new features of the latest java 6 re update, I noticed that firefox wasn’t showing any applets at all. Reviving applets from the death is probably voodoo business, but anyway, there is an easy solution:

Install the sun jre (openjdk6 is installed by default):

$ sudo apt-get install sun-java6-jre sun-java6-plugin

Enable the firefox plugin:

$ sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.10/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/

That’s it.

You can test your java-firefox installation here.

Object Oriented Perl? July 12, 2008

Posted by claudio in Uncategorized.
Tags: , ,
7 comments

I love perl. Really. This is not a post inspired by “5 things I hate about Perl“, but rather a question for the wider perl community out there (hi perlshere!). How do you write your OO perl code?

I have some code out there that follows the inside-out objects methodology of Perl Best Practices. Lately I have been writing java code, and inside-out objects feel like a lot of extra – not very intuitive – work to create your classes. I have been looking at Moose, but again it looks pretty cumbersome to create classes (constructors, named parameters for methods, returns, etc.). I am just probably missing a good howto (besides the cookbooks on cpan) or even a printed book on Moose. Any tips out there to get into Moose fast or a nice complete and intuitive alternative (extra points if it’s similar to java’s OO framework)? Thanks.

EDIT (Feb. 16th 2009): it seems I have a direct line with The Perl Foundation: a grant was approved for Dave Rolsky to work on the Moose documentation. Yannick greated a nice pdf output of the manual (see this as well).

Netbeans tip & tricks: Swing dialogs with the wrong size (same as previous dialog) June 13, 2008

Posted by claudio in Uncategorized.
Tags: , ,
1 comment so far

Netbeans has a killer feature: it’s graphical Swing builder (aka Matisse). It’s fast, flexible and it works. GUI application in no time. Great.

However, when not creating the GUI by hand, it can be difficult to track some bugs. I found out that when using different JDialogs in the same application, resulting in the dialogs having the same size as the first dialog opened. Pretty annoying. This is how to solve it. (more…)

OpenJDK Swing in Gtk clothing: getting there? June 2, 2008

Posted by claudio in Uncategorized.
Tags: , , , ,
1 comment so far

Sun has a golden opportunity to make the dream of Desktop java reality. Although java is predominant for enterprise applications and on the server room, java on the Deskop – whatever Sun claims – is not a reality.

Things have changed since the days of over-hyped applets. Java SE 6 is nice and getting better and swing – and java in general – have made huge speed improvement (hotspot and co.). More important, java is now free.

(more…)

Follow

Get every new post delivered to your Inbox.

Join 127 other followers