Category Archives: Java

Access restriction: The constructor NotSupposedToUseThisClass() is not accessible due to restriction on required library

So following from my previous post about compiling Java 5 with a Java 6 compiler and the real reason that I am posting today, was to talk about a curly error message I got in Eclipse today. I had the same … Continue reading

Posted in Java | Leave a comment

Like rt.jar for like javac

Today I switched an Eclipse project using JDK 6 on OS X to JDK 5. Even though there are command line tags in javac to produce 1.5 compatible source, the need to use JDK 5 comes into being when implementing … Continue reading

Posted in Java | Leave a comment

Building Jetty-Ant for Jetty 7

Jetty-ant for Jetty 7 is a hard find. The documentation is all wrong, but that if you look at the Jetty Developer page they do concede that. The split between eclipse and codehaus doesnt help either. There are a lot of … Continue reading

Posted in Java, Web Applications | Tagged | Leave a comment

Rick Wagner’s Blog: How to find which .jar a class is in (easily)

Holy heck, I needed this earlier today Rick Wagner’s Blog: How to find which .jar a class is in (easily). Makes mention of JBoss’ tattletale utility. The comments also mention the Java Class Finder plugin for Eclipse (I used the … Continue reading

Posted in Java, Outrospective.org | Leave a comment

Serialization under the magnifying glass

The Java serialization algorithm revealed | JavaWorld’s Daily Brew. A good post about what happens when Java takes your class and serializes it, including its fields, parents and collaborators and the class definitions of the object and the parents and collaborators involved.

Posted in Java, Outrospective.org | Leave a comment

Google’s guava java: the easy parts

More Guava goodness dzone.com – Google’s guava java: the easy parts.

Posted in Java | Leave a comment

Junit Kungfu

A great presentation with audio that talks about Junit 4, test naming and other things.  I liked this presentation because it starts expression Behaviour Driven Development concepts without actually using a Behaviour Driven Development Framework.  Additionally its one of the … Continue reading

Posted in Groovy, Java, Testing | Tagged , , , , | Leave a comment

Testing Presentations

Their has been a presentation I watched last year that absolutely changed my opinion on how I tested and how I designed.  It was one of those presentations that just made sense and I cant believe I haven’t blogged about … Continue reading

Posted in Java, Testing | Tagged , , , , | Leave a comment

Tempus library for programmatic thread dumps

Turns out doing a CTRL+Break (or equivalent kill <signal> <pid> on *nix) programmatically is a bit harder than I thought.  This thread talks about ways to do it, but the easiest was to use the Tempus library which has a … Continue reading

Posted in Java | Tagged , | Leave a comment

Embedding Tomcat 7 in your App

So what if you ship with a plain old Apache server just to run some aging PHP.  If you have an server app running all the time, according to this post, it looks like you can embed Tomcat, just like … Continue reading

Posted in Hosting, Java, Java EE | Tagged , | Leave a comment