Category Archives: Java

Programming in Java

Where’s my JDK?

Caught in the Java depreciation battle under OS 10.6 and can’t find where the Java Development Kit (JDK) now resides? Here’s a command that will tell you, allowing you to still use InteliJ and other IDEs on OS X. Continue reading

Posted in Apple, Hack, How To, IntelliJ, Java, OS X, Software, Trick, Walt's Desktop, Workaround | Tagged , , , , , , , , , , , , , , , | Leave a comment

Reasonable Trial Durations: 30/30/30

I’ve come up with a way for trial software to be fair and recover lost sales opportunities. The secret: 30/30/30. Continue reading

Posted in How To, Java, Programming, Software | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Hibernate: Duplicate Mapping and Imports

<GEEK BLOG ENTRY> I ran into a very frustrating problem this evening, causing me to stay much later than I had intended, and to miss out on some fun socializing event that I was looking forward to. Unfortunately, there was … Continue reading

Posted in Hibernate, How To, Java, Programming, Software | 2 Comments

Hibernate: No Persistance Provider

While working through a code sample in Java Persistence with Hibernate, I ran into a problem where Hibernate was reporting No Persistence Provider. Solved the problem, and it wasn’t moving the persistence.xml file as you’d normally find on the web as the solution. Continue reading

Posted in Java, Programming | 5 Comments

Unused local variables, a gotcha that’ll getcha

Removing unused local variables from your programs is actually quite safe, makes your code more readable, and helps get faster compiler times, and can even help produce a tighter, faster, more optimized executable. However, there’s one thing you really need to watch out for… Continue reading

Posted in How To, Java, Programming, Software, Workaround | 3 Comments

Programming Library Conventions

Java: Readers and Writers work with Unicode Characters, while Input and Output work with raw bytes. Continue reading

Posted in Java, Programming | Leave a comment

Java EE in a nutshell for total newbies

Someone just jumping into Java may look at the SDK and the EE and wonder why they aren’t included together or why one version seems always behind the times. This article explains to the Java newbie what J2EE (or now Java EE 5) really is in terms a procedural programmer might understand. Continue reading

Posted in Java, Programming, Software | Leave a comment

Subversion: Obstruction and NetBeans

Using NetBeans, I ran into a problem with subversion, getting a mysterious obstruction error message. Here’s what’s going on, and how to fix it. Java developers using subversion need to know about this; it’ll save you from ripping your hair out. Continue reading

Posted in How To, Java, Programming | Leave a comment

Unable to locate TOOLS.JAR

Got a message that Ant couldn’t locate tools.jar, and for a second it confused me. Turns out I had just upgraded Java and hadn’t updated the JAVA_HOME environment variable. In the process, found a nifty little guide about how to set up Ant for new users. Very well written. Continue reading

Posted in How To, Java, Programming | Leave a comment