Hello all,
Obviously I haven’t posted anything in a while now. The reason for this is, I have accepted a new job and now working in Switzerland (More info on this later).. Since I have relocated and didn’t have a project for the past 3 months, I didn’t have anything to post. I have recently started my new assignment which is a very cool one so expect to hear a lot more from me in the coming days. So here is a small tip on changing the langauge settings..
In my case, I have a computer with Windows XP which has German language as it’s primary language. When I installed MQ Explorer it picked up German as it’s main language which is a showstopper for me. Fortunately it is very easy to change it back into English:
- Open <InstallDir>/Eclipse SDK30/eclipse/configuration/config.ini
- Add these two lines before eof
org.osgi.framework.language=en
osgi.nl=en_US
Reboot and there it is
Filed under: Programming, java | 2 Comments
Tags: Websphere MQ
There is going to be a 4 day course on Domain Driven Design by the guy who literally wrote the book on it
Here are the details: http://www.domainlanguage.com/services/training/index.html
Filed under: Programming | Leave a Comment
Tags: book, event, Software design, training
Deploying Hibernate Apps on OC4J
I’ve spent a good deal of time today trying to deploy an application I’ve recently completed on Oracle IAS 10g. I still haven’t decided if I like the beast or not. I already knew about the bug regarding the antlr.jar, but in the past I dealt with it by renaming the antlr.jar in the toplink directory under JDeveloper. Since I had to deploy on a server that already hosts a dozen of other applications developed by other people, this was not an option.
Luckily, it wasn’t very hard to figure out my way. After tweaking the deployment options for a while, I noticed on the third step of the deployment wizard, there was an option to modify classloading. I turned of loading of the toplink library for my app, and voila. It started working like a charm.
A quick note for the people who has no idea about this issue: The antlr.jar version required by the hibernate causes problems since a different version of antlr is included with the toplink library.
My Setup: Oracle IAS 10.1.3.3 on Linux
Filed under: java | Leave a Comment
Tags: hibernate, oc4j, oracle
Yesterday I spent a good part of my day trying to use the JNI bridge. I was trying to build a very simple spike (basically a HelloWorld example) and call that code from Java. After the usual process of generating headers and including it in C++ code, I run my java code just to get the following exception;
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidemojava.Main.nativePrint()V
at jnidemojava.Main.nativePrint(Native Method)
at jnidemojava.Main.main(Main.java:27)
After searching for long hours, inspecting the compiled DLL using Anywhere PE Viewer, etc. I found out that that GCC compiler exports function names in shared libraries with a suffix indicating the number of bytes required to hold the arguments passed to the function which is known as name mangling. Therefore, the JNI bridge cannot locate the necessary method! In order to fix this,
-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
should be added to compiler options during compilation of the DLL. This is explained on the MinGW frequently asked questions.
Thanks to the folks on the Java forums. Here is the link I found out about this information. There are other posible reasons causing you trouble so I’m including the link here which discusses other possible solutions.
BTW, my setup is:
Win XP + MinGW 5.1.4 + MSYS 1.0 + Netbeans 6.1 + Sun JDK 6
Filed under: C++ | 2 Comments
Tags: C++, Java, MinGW


