Skip to Content
author's profile photo
Former Member

Getting error while executing my first JCo program

Hello,

I have just installed the Java connector in my PC and I am pertty new to Java programming. While compiling it first gave some errors. Which I solved by adding the "-classpath" switch while compiling. However, while executing the .class file, I am getting an error as below:

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$MetaData

Exception in thread "main"

I tried to force the "-classpath" while executing the same - no luck.

Any help is highly appreciated.

Thank you,

Kunal

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Apr 23, 2004 at 08:53 AM

    Hey,

    Your java filename must be the same as the class it contains. Also, is your main method defined as public static void main(){}.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Apr 24, 2004 at 11:20 AM

    Have you copied 'librfc32.dll' file that comes with the JCO installation to windows system directory?

    Give full trace of error...

    Add comment
    10|10000 characters needed characters exceeded