When implementing BDD tests using JBehave, scenarios can often be expressed more clearly and succinctly in tabular form in a manner similar to FitNesse. This article presents solutions to simplify the implementation and improve the readability of tabular JBehave Steps. Example Scenario As an example, consider a hypothetical scenario for a personal organiser application that… [Read more…]
If you are using Intellij on a mac via Parallels and Windows, beware the evil problems caused by sharing your home directory between Parallels and Mac OS X. Sharing your home directory will break your error highlighting within Intellij. Your code will build/make so long as you have configured your JDK (JSDK) correctly, but will… [Read more…]
If you get the following when executing a Java program, kill all of your JVMs and try again. (Big red herring when you’ve just changed a load of code during development.) Thanks to http://www.java-forums.org/eclipse/312-exception_access_violation-0xc0000005.html for this.
Be warned, configuring native code within an OSGi bundle manifest isn’t obvious or intuitive. This looks like it works, but it doesn’t … and it fails silently, even though if I added some nonsense entry, it would complain. This is what it should be: That is, even though every other multi-entry/list of configurations is split… [Read more…]
Introduction This short how-to will show you how to create a menu as part of a Microsoft Visual Studio Tools for Office (VSTO) Excel 2003 Add-In. It is assumed that you have Microsoft Visual Studio and the Microsoft Visual Studio Tools for Office SDK installed. The project in this tutorial was created using Microsoft Visual… [Read more…]
Introduction This short how-to will show you how to create a toolbar as part of a Microsoft Visual Studio Tools for Office (VSTO) Excel 2003 Add-In. It is assumed that you have Microsoft Visual Studio and the Microsoft Visual Studio Tools for Office SDK installed. The project in this tutorial was created using Microsoft Visual… [Read more…]
When deploying a Java application to a Microsoft Windows system, you might also like to take advantage of the Windows Services management console to start and stop the application. Windows Services also provide a simple means of ensuring your application is restarted after a machine reboot. In addition, services can be run under a specific… [Read more…]
Today I had to upgrade some C++ DLLs used by our Java pricing service again. I say some, I mean over 30. It should have been a straight forward upgrade, but I had the pleasure of UnsatisfiedLinkErrors at runtime when I tried to load the libraries for use via Java. The ordering of dependencies between… [Read more…]
Interesting article on InfoQ: 13 Reasons for Java Programmers to Learn Flex and BlazeDS.
Overview As of version 6, Java Standard Edition (“Mustang”) now offers web service capabilities out of the box in much the same way as RMI. Mustang includes: JAX-WS 2.0 – a means of declaring a POJO to be a web service using annotations such as @WebService and @WebMethod. JSR 224 – Java API for XML-Based… [Read more…]
March 13, 2012
3