Ramblings of a Deranged Mind
Running Netbeans on OS X
Just got my new MacBook Pro running 10.5.4 Leopard and installed Netbeans 6.1. First thing I tried was to change was to get Netbeans to use JDK1.6 64-bit version. The way to do this is to edit this file:-
/Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/etc/netbeans.conf
and change the following line.
netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/
This is the About dialog before the change:-
Product Version: NetBeans IDE 6.1 (Build 200804211638) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb) Userdir: /Users/samktan/.netbeans/6.1
and this is the About dialog after the change:-
Product Version: NetBeans IDE 6.1 (Build 200804211638) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb) Userdir: /Users/samktan/.netbeans/6.1
Posted at 12:50PM Jul 09, 2008 by samktan in Java | Comments[1]
Java DB (a.k.a. Derby)
I've written a few Java programs in my IT life, most recently I wrote a series of AJAX/JSP/servlet that connects to a backend MySQL DB for financial reporting, basically business health analysis. I am currently in the process of porting the data to JavaDB, Sun's implementation of Apache Derby.JavaDB can run as an embedded database or as a standalone database connected over a network, much like MySQL. The advantage of running JavaDB as an embedded database is the ability to run both the web, app and db as a single service, doing away with the issues of network connectivity and separate installations.
My plan is to use JavaDB both as a primary store since my data is less than 4 GB in total, and also as a caching store for temporary results. Having the DB embedded in the same JVM means that there are no network bandwidth issues to deal with, and the app has direct control over starting and stopping the DB as necessary. All good things.
Posted at 02:36PM Apr 10, 2007 by samktan in Java | Comments[0]
Wednesday Jul 09, 2008