Ted Wise header image 4

Entries Tagged as 'Java'

Creating a circular gradient in iReport

February 7th, 2010 · View Comments · Java

JasperReports is an extremely flexible tool for creating reports in Java.  Reports are defined as JRXML templates, compiled to JASPER binaries and run through the JasperReports run-time.  iReport is the GUI report writing tool that creates the JRXML templates.
A JRXML template is an XML file with a jrxml extension.  Here’s an example of a very [...]

[Read more →]

Tags:····

Don’t misunderstand Oracle’s purchase of Sun

January 31st, 2010 · View Comments · Computing

I was reading a blog post about what will happen now that Oracle has purchased Sun.  The poster repeated a number of fallacies that I’ve seen around the web.
1. MySQL is dead now.
MySQL is dead? No its not. Oracle has owned InnoDB and never once used it against MySQL users. They own [...]

[Read more →]

Tags:···········

Maven Micro-Tip: Get sources and Javadocs

January 27th, 2010 · View Comments · Java

When you’re using Maven in an IDE you often find the need for your IDE to resolve source code and Javadocs for your library dependencies.  There’s an easy way to accomplish that goal.
# mvn dependency:sources
# mvn dependency:resolve -Dclassifier=javadoc
The first command will attempt to download source code for each of the dependencies in your pom file.
The [...]

[Read more →]

Tags:····

Simple guide to Maven

November 9th, 2009 · View Comments · Java

I resisted Maven for a very long time. It seemed to be extremely complex for no great benefit. I thoroughly understood Ant and had built extensive and complex scripts that worked quite well.
But, eventually, I saw the light. I saw how trivial it made the majority of builds. I saw how [...]

[Read more →]

Tags:·····

Using Java 1.5 and Java 1.4 on Snow Leopard

September 25th, 2009 · View Comments · Java, Mac

Since Apple removed Java 1.5 and Java 1.4 from Snow Leopard, it’s not possible to run software that requires older Java versions, or to develop against older Java versions.
In order to restore Java 1.4 and 1.5 to your Snow Leopard install, you’ll need to download the old Leopard versions and put them back where they [...]

[Read more →]

Tags:····

Easy Guide to 64-bit Eclipse on the Mac

September 22nd, 2009 · View Comments · Java, Mac

After upgrading to Snow Leopard I went looking for a 64-bit version of Eclipse.  One of the main reasons to switch to 64-bit is so that all of your Java apps are sharing the same loaded JVM.
But when I went looking for 64-bit Eclipse I quickly ran into a brick wall.  You can find 64-bit [...]

[Read more →]

Tags:····

Java 1.5 Reaching End of Life

September 11th, 2009 · View Comments · Java

Time really flies – Java 1.5 reaches End of Life in October
This is especially appalling given that its easy to find Java 1.4 code still in use throughout the Fortune 500 (and elsewhere).
What does this mean?
- Critical fixes won’t be made after October
- Security fixes won’t be made after October
Sun recommends two options:
- Move to [...]

[Read more →]

Tags:

Super Simple SoapUI Tests

August 4th, 2009 · View Comments · Java, Web

SoapUI 3.0 comes with support for creating web service tests. This is quite easy to do once you understand the concepts.
The first step is to start with an existing SoapUI project. Define the web service calls you’ll be making. The easiest path is simply to import some existing WSDL.
Once you have the web services defined, [...]

[Read more →]

Tags:·····

Generous on input, strict on output

May 27th, 2009 · View Comments · Consulting

I develop by some general principles. One of the strongest is “generous on input, strict on output”. This means that the code should be tolerant of variations in it’s input but should be strictly correct when outputting data. This ranges from the small to the large.
As an example, when you accept a boolean as a [...]

[Read more →]

Tags:··

What does an Oracle acquisition of Sun mean?

April 21st, 2009 · View Comments · Java

I’ve been asked by multiple people what I think of the acquisition of Sun by Oracle. I’ve assembled my thoughts on the matter. I don’t have any particular insight, just a general experience with Oracle. And all of this is subject to the deal being completed sometime in the summer.
Oracle is now a hardware company. [...]

[Read more →]

Tags:·············