Fri 24 Aug, 2007
As I’ve talked about before in some of my blog posts, I’ve been taking computer programming classes that use the Java language. I’m starting my third class in a few days. In our last class, we started using GUI’s (graphical user interfaces), which most modern computer programs use. However, in early programming classes, we mostly use what is called “console” programs. Basically, these programs run from the command line (DOS). And, there are a few IDE’s (integrated development environments) that will run these programs in a command line type interface. I use jGRASP mostly, but I’ve also used NetBeans. Java programs don’t work like Windows programs, unless you spend some money on some software that will make Windows executables out of Java programs. However, I’ve found a way to get these prorgrams to run using the Java Web Start application. It took some time to figure out just how to do this, but I finally did! The following is a URL to a page that contains two links:
http://www.altizer.org/jars/java.html
I should mention that this was my second GUI program. Note that you will need the Java Web Start software installed on your machine. If you have the latest Java runtime environment, this software is already present. Also, please have some patience. It’s a somewhat cumbersome process the first time the program loads on a machine. After that, it becomes much faster due to the fact that the application gets cached on the users machine. The first link on the page will run the application (Statistics Calculator). The second link will take you to Sun Microsystem’s site for the Web Start download. All the directions are there for you to download and install the software. It takes some doing to make Java Web Start applications. First I have to make a .jar file out of the .class file which Java compiles from a .java file. Then there has to be a .jnlp (java network launch protocol) file made. After that, a link to the .jnlp file from a web page will initiate the process. I’m looking forward to making more of my projects available through this technology from the people at Sun Microsystems.