Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.