Browsing All Posts filed under »Development«

Simpler JBehave Examples Table Processing

March 13, 2012

3

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…]

Intellij & Parallels – Error Highlighting Broken

September 30, 2009

Comments Off

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…]

EXCEPTION_ACCESS_VIOLATION

September 4, 2009

Comments Off

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.

OSGi Bundles and Native Code

September 3, 2009

Comments Off

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…]

VSTO: How to Create a Menu for an Excel Add-In

June 11, 2009

Comments Off

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…]

VSTO: How to Create a Toolbar for an Excel Add-In

June 10, 2009

Comments Off

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…]

Creating a Java Windows Service

June 5, 2009

Comments Off

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…]

Dependency Walker to the Rescue

May 6, 2009

Comments Off

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…]

13 Reasons for Java Programmers to Learn Flex and BlazeDS

May 5, 2009

Comments Off

Interesting article on InfoQ: 13 Reasons for Java Programmers to Learn Flex and BlazeDS.

Java 6 Web Services

May 4, 2009

Comments Off

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…]

Follow

Get every new post delivered to your Inbox.