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

Friday, November 28, 2008

A tale of three IDEs

I think I should tell a little bit about the environment I am in. I am sure all Windows users can safely ignore everything below.
  • OS X 10.5.5
  • Default Java - java version "1.5.0_16"
  • Also have the latest (and buggy) apple Java 1.6.0_17
IDEVersionProblemFix
Netbeans6.5As soon as I launch, the netbeans icon jumps on the dock and then crashes. No error message on screen.This is due to some but in Apple's Java and updates. To address, you will have to edit file :
Applications/NetBeans/NetBeans 6.5.app/Contents/Resources/NetBeans/
platform9/lib/nbexec
and change
eval ${_NB_PROFILE_CMD} "\"${jdkhome}/bin/java\""
-Djdk.home="\"${jdkhome}\"" -classpath "\"$cp\"" \

$jargs org.netbeans.Main "$args" '&'
change it to:
ARCH_CMD="/usr/bin/arch -i386";
eval ${ARCH_CMD} ${_NB_PROFILE_CMD} "\"${jdkhome}/bin/java\""
-Djdk.home="\"${jdkhome}\"" -classpath "\"$cp\"" \
$jargs org.netbeans.Main "$a
rgs" '&'
Intellij IDEA8,7.xCompiler internal error. Process terminated with exit code 139 - This occurs whenever you try to build your projectNot sure how this gets fixed by my work-around, but all you have to do is : launch compiler properties- Intellij IDEA->Preferences..->Compiler->Java Compiler and put a valid option in "Additional command line parameters - for ex: -verbose
EclipseGanymedeNone so far

The fix for Netbeans issue is specified in netbeans issues
However, I had to figure out fix for issue with IDEA through trial and error(accidentally)
Screenshots for fixes mentioned above.
Netbeans :


IDEA


Monday, September 8, 2008

State of clientProperty in OS X Java 1.6

Started looking at my pet Java Swing application - jSpent. This time the attempt was to create a leopard-like unified toolbar. I was so excited to see that there is a clientProperty "apple.awt.brushMetalLook" - By setting this as : 
myFrame.getRootPane().putClientProperty("apple.awt.brushMetalLook", Boolean.TRUE);
This will cause OS X to render the title bar in the unified style. But unfortunately, there is no good clientProperty setting for the toolbar itself. So we end up with a light gray window title bar. The toolbar appears like a gray box, painted in different color. Not sure if this is a bug in Apples Java. However, I had to again resort to pick and choose and paint my own gradient just below the window title bar to make it look "Unified". So, here is the output. 


But oh well, I need to repaint the toolbar in ligher gradient when the window goes out of focus.. hm.. that's too much to do!

Thursday, November 8, 2007

Work in progress - my very rich swing application - part 5

Yet another close look:


Features added :
  • Rendering proper table header icon/color while sorting
  • Initial stages of OFX import
  • iTunes look
I am also working in building "leopard" like toolbar buttons. Once that is added, the application will be OS X 10.5 ready. But not sure when Apple is planning to give out Java 6 for OS X 10.5. I happen to be one of the lucky guys with Java 6 developer preview.

Friday, October 26, 2007

Leopard - No Java 6

So, I went, stood in line, got T-Shirt and checked out the latest and greatest OS X - Leopard at the Providence Apple store.
Ran a terminal and typed java -version.
Sad, but true, it returned version 1.5.
The java in OS X is officially still at 5, and no idea when apple will release Java 6. Btw, leopard looks way cool and pretty fast just like Tiger.

Saturday, October 13, 2007

Where is leopard?

Where is Apple's new version of OS X? Its been a while since I heard anything about it and I eagerly check my regular Mac web resources for any updates. Looks like Apple is getting it ready - as per the last announcement, its release has to happen somewhere this month. 
No signs, whatever!
Anyway, I am not going to install Leopard unless it is absolutely necessary for latest Java 6. OS X tiger is the ultimate operating system on Desktop that one can imagine.