Could not load file or assembly ‘SAP.Connector, Version=

I was doing fine in Visual Studio (VS 2013) with a piece of SAP integrated code. Somehow, when I deployed the web application to IIS 6. I got the following error.

“Could not load file or assembly ‘SAP.Connector, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23′ or one of its dependencies. The system cannot find the file specified.”

What you need to do is download the SAP.Connect.dll and put into bin folder of your web application. You can download the dll from SAP site.

I actually found the dll here

Posted in .Net | Tagged , , , | Leave a comment

Refection using Java

This short article show how Reflection works using Java.

I am extract the source from

First you need to import the following namespace.

import java.lang.reflect.*;

You have a class with a method in RentCar

public class RentCar {

private int rate;


public void computeRentalCost(int numDays) {

            price = numDays * rate;


                        .println(“The cost of your rental car is “ + price + ” euros”);



To do Reflection (code fragment below).

Class rental = RentCar.class;

// get method with specific name and parameters

Method oneMethod = rental.getMethod(“computeRentalCost”,

    new Class[] { Integer.TYPE });

System.out.println(“Method is: “ + oneMethod);


// call computeRentalCost method with parameter int

oneMethod.invoke(rent, 4);


// get all the parameters of computeRentalCost

Class[] parameterTypes = oneMethod.getParameterTypes();

System.out.println(“Parameter types of computeRentalCost() are: “

                              + Arrays.toString(parameterTypes));

The re-upload the project to The sample file name is My MSN ID is

Posted in Java, Oracle | Tagged , | Leave a comment

java was started by returned exit code=13 when starting eclipse

I believe some of you have hit the below error.

“java was started by returned exit code=13”


This could due to your eclipse version and java version. Especial when your eclipse is 32 bit and your jdk is 64 bit.

For me my eclipse and java both 64 bit but I still get the error. I uninstall jdk 1.7 update 11 and installed jdk 1.7 update 75 then the problem solved.

Posted in Java, Oracle | Tagged , , | 1 Comment

Convert PDF to Microsoft Word

Microsoft Word is able to convert the pdf file and open for reading. I am using Word 2013 so not sure whether the version earlier than 2013 can do that.

In Microsoft Word choose File – Open then select the pdf. You will get the screen below.


Posted in Community, Microsoft Office | Tagged , , | Leave a comment

Microsoft OneNote is free

I have seen quite a number of people like to use OneNote. Microsoft OneNote comes with Office anyway. Probably Mac users can use it without getting Microsoft Office, have a try.

Follow this link to download OneNote:

Posted in Community, Microsoft Office | Tagged , | Leave a comment

Java EE 6 running sample Pet Catalog

Last Friday I bought The Java EE 6 Tutorial: Basic Concepts (4th Edition) (Java Series) ( for revision.

The bad thing are

1. The source code of the book cannot be downloaded.

2. The book is asking you to use NetBean and not Eclipse.

I ended installing NetBean and got the Pet Catalog example to try. You can do that by choosing File -> New Project… -> Samples.


The sample will automatically downloaded into your local drive. Something tricky in the setup instruction.

You cannot setup the JDBC resources in NetBean.


You need go to GlassFish Admin Console if order to add the JDBC Connection Pools and JDBC Resources.



My personal opinion. NetBean IDE is friendlier than Eclipse. At least there are many samples you can download from the NetBean IDE itself.


Posted in Java | Tagged , , , , | Leave a comment

Façade Design Pattern

This article shows how to create a code using Façade Design Pattern in C#.

As discussed in Façade is a single class that represents an entire subsystem.     

The article that is easier to understand is My source code is based on this article.

Logical diagram of Façade Design Pattern.


First, create all the subsystem. In this example, we have 4 subsystems.

class SubSystemOne


  public void MethodOne()


    Console.WriteLine(” SubSystemOne Method”);




class SubSystemTwo


  public void MethodTwo()


    Console.WriteLine(” SubSystemTwo Method”);




class SubSystemThree


  public void MethodThree()


    Console.WriteLine(” SubSystemThree Method”);





  public void MethodFour()


    Console.WriteLine(” SubSystemFour Method”);



 Then, create a Façade class.

class Facade


  private SubSystemOne _one;

  private SubSystemTwo _two;

  private SubSystemThree _three;

  private SubSystemFour _four;


  public Facade()


    _one = new SubSystemOne();

    _two = new SubSystemTwo();

    _three = new SubSystemThree();

    _four = new SubSystemFour();



  public void MethodA()


    Console.WriteLine(“\nMethodA() —- “);






  public void MethodB()


    Console.WriteLine(“\nMethodB() —- “);






Finally, below is how the main method will look.

public static void Main()


  Facade facade = new Facade();





  // Wait for user



You can also download a single solution from The sample file name is My MSN ID is

Posted in .Net | Tagged , , | Leave a comment