Another 3 hours for a silly configuration!

No matter how many years you spend on software development, this particular situation always seems to emerge. I have spent the last 3 hours trying to figure out why my code is not working. I am writing an Eclipse plugin (actually an Eclipse RCP application) for Bayesian inference, and I need to use a native dll that belong to the inference library I am using.

How hard can it be? Well either I am not at my brightest day today, or configuring a reference to a native dll is rediciolusly hard. There are about a zillion parameters you can set, and after working on zillion of them, what seems to be working is to follow the steps below

create a libs folder for jars in the eclipse project

copy native dll next to jar in this folder, and set native dependencies property of jar from build path

add jars to plugin class path from runtime tab in plugin.xml

Have a cup of coffee, and try to calm down.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s