Sunday, May 13, 2007

Sonic Workbench 7.0.1 on Fedora Core 6

Continuing with my installation guides ...

1. Libraries
Before install make sure you have installed folowing libraries:
compat-libstdc++-33-xxxxxx
libstdc++-devel-4.xxxx
libstdc++-4.xxxxx
compat-libstdc++-296-xxxxxx


If you are missing something, yum it in.

Then do:
su -
cd /usr/lib
ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2


2. Java
Make sure you have Java 1.4.2 installed. I was not able to run Sonic Workbench under Java 1.5., due to Process Editor crash.
Currently using Java 1.4.2_14. Don't worry Eclipse has it's own compiler so can still produce 1.5 compatible classes (when needed).

3. Run it
Run $SonicInstall/Workbench7.0/startworkbench.sh.
If you got an XPCOM error, add following two lines to startworkbench.sh (or choose your own way of setting MOZILLA_FIVE_HOME variable).
# to make SWT browser support work
export MOZILLA_FIVE_HOME=/usr/lib/mozilla



This was done on my home FC6 (Linux frodo 2.6.20-1.2948.fc6 #1 SMP Fri Apr 27 19:48:40 EDT 2007 i686 i686 i386 GNU/Linux).
It also worked on my laptop with Fedora 8 (Linux javadev-nb 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 2007 i686 athlon i386 GNU/Linux).

Friday, May 11, 2007

Lotus Notes V7 on Fedora Core 6

Well, after all the setup, my new FC6 deserves Lotus Notes client (I don't want to go back to FC3 anymore).
So, here are the steps to install IBM Lotus Notes For Linux on Fedora Core 6:
1. Unzip C93D1NA.zip to ~/notes_install
2. Unzip personality.zip to plugin directory
3. chmod +x ~/notes_install/plugin/setup_wct_platform.bin
4. chmod +x ~/notes_install/setuplinux.bin
5. cp ~/notes_install/setuplinux.bin ~/notes_install/plugin/updateSite/features/
com.ibm.workplace.notesinstall.linux.feature_7.0.1.0000-0900/bin/linux/
6. Run ~/notes_install/plugin/setup_wct_platform.bin -console
7. Sometimes notes plugin is not installed (don't ask me why), so run the installation manually by:
cd to that long directory
./setuplinux.bin -console
You can recognize that notes plugin is not installed when there is no ~/notes directory.
8. Go to ~/notes (cd ~/notes).
9. ln -s /usr/lib/libXmu.so.6 libXm.so.3
10. Run notesstart and finish the setup (old lotus notes way).

Here is the content of my notesstart located in ~/bin:
#!/bin/sh

NOTESBIN=/home/$USER/notes
NOTESDATA=/home/$USER/notes/data
NOTESDIR=/home/$USER/notes/data
LD_LIBRARY_PATH=$NOTESBIN:$NOTESBIN/jvm/bin/classic:$NOTESBIN/jvm/bin
:$LD_LIBRARY_PATH
PATH=$NOTESBIN/jvm/bin:$NOTESBIN:$PATH
CLASSPATH=./:$NOTESBIN/:$CLASSPATH
export NOTESBIN NOTESDATA NOTESDIR LD_LIBRARY_PATH PATH CLASSPATH

/opt/IBM/Workplace\ Managed\ Client/rcp/richclient -personality com.ibm.workplace.noteswc.standalone.linux.personality


To have the information complete, I was using Lotus Notes on FC3 for a long time and installation went without any problems as described by IBM.

Enjoy,
P.

P.S. Many thanks to guys discussing in this thread, where I figured out what how to fix my Notes.

Friday, March 30, 2007

Cheap Code Signing with Your Thawte Freemail Certificate

As I am always loosing this, I better write it down.

There is nice way how to sign your jars using Thawte Freemail Certificate. I think it is fine for code given out for free.


<signjar keystore="your_keystore.p12"
storetype="pkcs12"
alias="your_alias"
storepass="secret">
<fileset dir="${client.deploy.dir}/lib">
<include name="**/*" />
</fileset>
</signjar>


Step by step guide:
  1. Ask Thawte for your certificate.
  2. Download it to your Firefox.
  3. Choose Edit/Preferences/Encryption/View Certificates/<select>/Backup (use PKCS12)
  4. If you don't know your alias use this to list it:
    keytool -list -storetype pkcs12 -keystore your_keystore.p12
Enjoy!

P.

Thursday, March 22, 2007

Bug Fixing what a "fun".

My the worst nightmare struck again. I have been asked for taking care of important piece of code and as soon as I said yes it happened.
Nice bug popped out of it.
As one can imagine the bug was of coarse a showstopper.
Reading, debugging, putting messages everywhere (it is a multi threaded and communicating with technology devices on very low level).

So, after all, I got it fixed.

Point? Always implement basic structures carefully with long term vision and focus on readability of your code.

(Implementing stack as Object[] stack = new Object(10); is a very bad idea ... indeed.)

P.

Tuesday, January 23, 2007

SOA, is anybody out there?

Well, I spent half a day searching for some sort of catalog/marketplace/exchange (whatever) for ready to use SOA components.
Best would be Java ESB ready ones, but no luck at all.

I have found only IBM SOA Catalog, so far.

I am a bit disappointed, I thought I would be much better.

P.

Wednesday, January 17, 2007

Well, finally ....

Hello Blog World,

finally I got myself to create a blog. I hope I can post something useful for people to read mainly from Java and Linux and connection of both.
I know there is plethora of blogs at the same or similar topics, so I am not expecting a lot of readers.
At least I can have some notes.

P.