Maven might not be everyone's favorite tool but if you work with Java it is very possible you will have to work with it sooner or later. One problem it has is that it is not terribly quick. While trying to save some time while doing builds, I learned a couple of tips that you… Continue reading A couple of tips to speed up your Maven builds
Tag: java
Powermockito behaving differently on debug
Another issue that took me a long time to figure out. I had a failing test, so I started to investigate the issue with the debugger. I was getting close to the point where it failed and then I set up a new breakpoint and rerun the test and... it passed! I made completely sure that it… Continue reading Powermockito behaving differently on debug
Tips for writing graphical user interfaces (GUI) with Java Swing (or any other GUI toolkit)
In my last post I talked a bit about writing GUI using Java Swing. As I said, this can be harder than it looks, and having a good set of best practices will really help you produce quality work consistently.So, here are my personal tips for that: Pencil and paper are your friends. Making even… Continue reading Tips for writing graphical user interfaces (GUI) with Java Swing (or any other GUI toolkit)
RocketEditor: New Java Swing sample app
Today I present a new small sample application. I did it to quickly create and edit some simple XML files that hold information about a rocket and its different stages. Again, writing a small app like this helped me realize some things about software development. The thing most shocking for me has been how much… Continue reading RocketEditor: New Java Swing sample app
How to access a JAR from Jython
When you want to access Java code from Jython, the interpreter must be able to find it in some way or another. You have several options: you can have the classes in the classpath, you can modify the classpath to include the directory where your classes are stored... In my last Jython sample app, I… Continue reading How to access a JAR from Jython
The Tsiolkovsky Plotter: Using Jython and Java to create graphic plots
Python is a great language. It's fun and quite easy to learn, but when you start digging into it you realize how much potential it has. There are lots of great Python libraries and the language is a good tool for lots of different tasks. Jython is just Python implemented in Java. That may not… Continue reading The Tsiolkovsky Plotter: Using Jython and Java to create graphic plots
Tsiolkovsky Rocket Equation Java sample app
In a previous post I talked about the Tsiolkovsky rocket equation. Today, I'd like to show you a little app I made. This little app serves two purposes. First, even though it's just a sample app, it can be used to play a bit with the rocket equation. If you do a little research, you can… Continue reading Tsiolkovsky Rocket Equation Java sample app
A nice thing about Java
I can't say Java is my favorite language to work with. As any other language, it has good things and not so good things. But there is something really nice that may not be always that obvious: Java is open source. If you wonder how something works, you can not only read the documentation, you… Continue reading A nice thing about Java
Building a 64 bits Java SWT application in a 32 bits system.
Today I have been trying to test a Java SWT application I was building in a 32 bits Ubuntu machine. Java is supposed to provide "Compile once, run anywhere" capabilities and this is usually true. But it comes out that SWT uses JNI, which by its very nature is machine dependant, so when I tried to… Continue reading Building a 64 bits Java SWT application in a 32 bits system.
