on 11-23-2005 4:46 PM
Hello!
I am new with the Java Connector, and I am sure this problem is something easy to solve; I just can not figure it out.
I am on XP Pro, and I have the files extracted to the directory C:\JCo. I have the PATH and CLASSPATH environment variables updated, but I am guessing that I might have the incorrect values there.
Here is the problem. I can compile Example1 (or any of the other examples) from the demo directory fine, but when I try to run it I get the error message "Exception in thread "main" java.lang.NoClassDefFoundError: Example1," which does not make sense since it was compiled correctly.
My guess is that the CLASSPATH (or PATH) variable is not set correctly. Can anyone send me what they have for that value, or what I should be using? I checked the Intro.html file and I think I am just not putting it in correctly or not understanding the intent.
I am always fast with returning points for helpful answers!
Thanks!
John
Hello John,
as the demos compile without any errors your classpath settings for the JCO libs should be ok. How did you try to run the examples? If you're using the commandline you have to add the parameter -cp <path_to_your_demos> or add the demopath also to your global classpath definition.
Hope this helps.
Cheers Lars
PS: Don't forget the points if my answer helped you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
John Path variable does not work ..
But you need to do it manually.
you Just need to Build the Class Path
I will tell you the steps.
In Eclipse select the <b>project</b> and go to <b>file</b> and click on <b>Properties</b> and click on <b>JAVA Buid path</b> then click on
<b>Add External Jars</b> in that you specify the file path of JCO.JAR.
this will create the class path for that Project.
Hope this will Help you
Regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.