Coming Up for Air

2016

November

  • NetBeans 9 Nightlies

    Perhaps I’m a bit of a glutton for punishment, but I have an odd addiction to nightly builds. In working on this book, I need to use NetBeans 9, which, of course, is not out yet. They are, however, publishing nightly builds. Being a command line guy at heart, I’d prefer not to have to go to the download page every time, so I did what any good geek would do: I wrote a script. It’s not pretty, and it’s not very fault tolerant, but it seems to work well enough. If you’re a fellow addict, here you go:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    
    #!/bin/bash
    
    VERS=`curl -s http://bits.netbeans.org/netbeans/trunk/nightly/latest/js/build_info.js | grep BOUNCER_PRODUCT_PREFIX | cut -f 2 -d \"`
    FILE=$VERS-javase.zip
    
    cd ~/Downloads
    if [ ! -e $FILE ] ; then
        wget http://bits.netbeans.org/netbeans/trunk/nightly/latest/zip/$FILE
        if [ -e $FILE ] ; then
            rm -rf netbeans
            unzip $FILE
        fi
    fi
    

September

  • mv /dev/oracle/NetBeans /dev/apache/

    Yesterday, the NetBeans team announced plans to move NetBeans from Oracle to Apache. This move was met by a mix of skepticism and optimism. I’ve ranged between the two myself, to be honest, but I’ve landed on optimsim.

2014

May

  • 14 NetBeans Web Development Tips in 7 Minutes

    Recently, Geertjan Wielenga, Principal Product Manager in the Oracle Developer Tools group, posted a video on his blog showing "14 NetBeans Web Development Tips in 7 Minutes", which showed off several nice tips for the IDE (#1 and #5 are my favorites). If you’re like me, sometimes you don’t have (or don’t want to make) time to watch a video, so I thought I’d make a table of contents for the video, with links to relevant portion of it for those that would like to read the list and watch only the parts that interest them.

2013

September

  • Awestruct NetBeans Plugin

    Several weeks ago, I posted blurb about a JavaFX project I had cobbled together, DoctorFX. It is an effort to build a semi-graphical editor for Asciidoc, but it is, currently, very basic. I had some spare time last week, so I decided to add some features to it. As I thought about what needed to be added and what that would require, I thought that, perhaps, an architectural change was warranted. With some time and an itch, I pulled out the sledge hammer and out came a NetBeans plugin. This plugin though, does more than Asciidoc: it offers full(-ish) support for the Awestruct framework.

    There are a lot of features I’d like to add still, but, currently it supports only basic project loading and editing. It technically has code to preview Asciidoc files, though I’m having issues getting the rendered page from displaying. (In case you want to take a crack at it, that code is here.) I’d also like to add preview support for Slim and Haml, but that may have to wait a bit.

    If you’d like to lend a hand to the effort, you can find the current source on Bitbucket.

    This is, of course, a bit heavier than DoctorFX, but most of my work with Asciidoc is, currently, in the context of Awestruct, so this fits my needs better, and it was fun dipping my toes into the NetBeans Platform API. :)

2012

April

  • Java 7, NetBeans, Mac OS X, and a Little Bit of JavaFX 2

    In a recent post showing how to use JavaFX 2 and NetBeans on the Mac, I noted that I have been unable to run NetBeans using Java 7 on my Mac for reasons I had not been able to figure out. Now, thanks to a pointer from Scott Kovatch, the technical lead at Oracle for the Mac OS X port of Java, I think I can show you how to do that.

  • Getting Started with JavaFX on the Mac

    image::/images/2012/04/javafx_logo_color_1-300x150.jpg

    As you may have guessed from my recent book review, I’ve been tinkering with JavaFX some, as time as permitted. I’ve been following the technology fairly closely since Sun announced the project way back in 2008. When it was announced that JavaFX 2.0 was finally available, albeit in preview form, for the Mac, I was ecstatic. I ran into issues, though, trying to get it to run in my IDE, though. After some guess work and googling, I finally figured it out. In retrospect, it may be obvious, but if you’re like me and are missing the obvious, I’m going to detail the steps I took to get it running on my Mac. Perhaps it can help someone out.more

    The first step, of course, is to download the binaries. You can do that here, sort of. Since this is still a preview release at the time of this writing, you have click the teeny tiny link under the header. Once you’ve downloaded the distribution, you need to extract it somewhere:

    1
    
    $ unzip javafx_sdk-2_1_0-beta-b19-macosx-universal-27_mar_2012.zip -d $HOME/local/
    

    You can, of course, put it anywhere you want, but you’ll need to adjust the following instructions. The next step is set up NetBeans. NetBeans has JavaFX support out of the box, assuming your JDK has JavaFX support. Since the Mac JDK does not yet, we need fix that. Otherwise, you’ll see this error:

    newprojectbad 300x224

    To fix this, we need to create a Java Platform with JavaFX support (I don’t know why we can’t modify the default platform, but we can’t, so we get to create a new one, which we can set to be the default if we want). To do that, go to Tools > Java Platforms, where you should see something like this:

    javaplatforms

    To create a new Java Platform, click the (wait for it…​!) "Add Platform…​" button in the lower left corner. OS X likes to put things in decidedly (to me) un-Unixy locations, and the JDK is no different. You can find the current JDK under /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents:

    selectjdk 300x185

    We now need to give it a name, so we’ll call this "JDK 1.6 with JavaFX" and click OK. But wait, there’s no JavaFX support! To enable JavaFX support, we have to…​um..enable it. Doing so looks like this:

    addjavafxsupport 300x185

    We can now create a new JavaFX project:

    newprojectgood

    Your new project is ready to run.

    The even more adventurous may be wondering how one would do this with Java 7, to which I say, "Good question!" : ) I have mixed luck getting NetBeans and Java 7 to play nice on my Mac. It’s almost certainly pilot error, as I’ve done it before, as has Adam Bien, but I haven’t had a chance to debug things (e.g., the navigation tree under projects has all the tree icons, but no text. IIRC, the context menus are also text-less. Strange).

    At any rate, as I noted earlier, in retrospect, this seems pretty easy (if a bit unintuitive) and might be documented somewhere, but I couldn’t find it. Either way, it’s certainly documented now. I hope it helps. : )

2009

December

  • NetBeans 6.8 Is Now Available

    While we’re making product announcements, I might as well mention that NetBeans 6.8 is available today as well. I really think NetBeans is the best Free <del>Java</del> multi-language IDE on the market. It’s by no means perfect, but I like it a lot.1 Quoting from the release:

February

  • Another NetBeans Update

    Since the announcement in the recent layoffs at Sun on how the NetBeans team was affected, there’s been much concern over the health of the project. I’m not on the NetBeans team (I’m just a big Finkel fan! ;) so I can’t say for certain what’s going on, but it seems to me that Sun is still committed to the platform. Evidence of that comes in the form of an email I got today about the upcoming 6.7 release. Here is the email:

  • NetBeans Program Update - Feb 2009

    Are you a NetBeans user? Are you wondering what’s going to happen to your IDE of choice given the recent Sun restructuring? The NetBeans Dream Team Call with Matt Thompson the new Sun NetBeans Director, which starts at 10:00am CST today (I just learned about it too) should answer some of your questions. Here are the details:

    NetBeans Program Update - Feb 2009

    with Matt Thompson (the new NetBeans Director + Developer Cloud Tools Engineering) SLIDES ARE HERE WED Feb 11th at 0800am Pacific; 11am US East Coast; 5 pm Europe US Toll Free Dial-in Number: 866-803-2141 CALL ID: 5121251 Participant Code: GO Here: http://nbdt-feb09.eventbrite.com/ We will be recording this call for later playback on this event page. Tentative AGENDA: * Intros and NetBeans team changes + Sun’s Cloud Initiative – Matt Thompson (15 minutes) * Discuss future topics about upcoming NetBeans Technical Calls — What does the dreamteam want to talk about first…​open mic vote if necessary w/Matt…​ (15min) * Open Communication Q & A What is on your Mind?? – All (30 minutes)

2008

November

  • NetBeans 6.5, Python Support, and Mac OS X

    The NetBeans team recently released version 6.5 of the NetBeans IDE, which I really, really like. They also released an Early Access peek at the Python support coming for NetBeans. Unfortunately, it’s not straightforward to get Python and Java EE support in the same installation. The Python EA release is a complete NetBeans installation, i.e., you can’t just add the modules to an existing NetBeans installation.

    Fortunately, there is a pretty easy solution to this: if you already have an existing 6.5 installation, you can simply run the Python EA installer, which will detect the existing 6.5 install and update it to add Python support. Unfortunately, the installer has a bug on OS X, which breaks this functionality. The end result is that your existing installation is replaced, which is likely not what you want. The good news is that there is a workaround, albeit ugly and manual, to get us Mac users running while they fix the installer issue. Here are the steps I followed to add Python support to NetBeans 6.5 on the Mac (big thanks to the NetBeans Users list for the tips that led to this solution):

    • Make sure NetBeans is not running

    • Download python cluster separately from http://download.netbeans.org/netbeans/6.5/python/ea/zip.html (search for netbeans-6.5-200811131701-python.zip — or whatever the latest is — in the second list "Module Clusters")

    • Put contents of the python1 directory in the zip in $HOME/.netbeans/6.5

    • Delete directory $HOME/.netbeans/6.5/var/cache

    • Add "python1" to /Applications/NetBeans/NetBeans 6.5.app/Contents/Resources/NetBeans/etc/netbeans.clusters

    • Start NetBeans

    • Profit? :)

    You should now be able to create a new Python project. The installer bug should be fixed in the next release (my guess is that it’s already fixed in the NB hg repo), but these "easy" steps should get you going in the interim.

About

My name is Jason Lee. I am a software developer living in the middle of Oklahoma. I’ve been a professional developer since 1997, using a variety of languages, including Java, Javascript, PHP, Python, Delphi, and even a bit of C#. I currently work for Red Hat on the WildFly/EAP team, where, among other things, I maintain integrations for some MicroProfile specs, OpenTelemetry, Micrometer, Jakarta Faces, and Bean Validation. (Full resume here. LinkedIn profile)

I am the president of the Oklahoma City JUG, and an occasional speaker at the JUG and a variety of technical conferences.

On the personal side, I’m active in my church, and enjoy bass guitar, running, fishing, and a variety of martial arts. I’m also married to a beautiful woman, and have two boys, who, thankfully, look like their mother.

My Links

Quotes

Sample quote

Quote source

Publications