Ramblings of a Deranged Mind

pageicon Wednesday Jul 09, 2008

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
pageicon Tuesday Apr 10, 2007

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.

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 44

Gamertag

WebMap

ip-location

AdSense

Kiva Microloans