vin
vin

Reputation: 231

Could not find or load main class path and classpath are set but still error run time

I am using alchemy API for my project. I downloaded java sdk from alchemyapi and tried to run one example code.

It is compiling without any error but when i try to run it it is showing error (error msg:Could not find or load main class) I have set the CLASSPATH by including the dot(.) and the jar files which is available for these api but it is still showing error.I have tried all the option for setting the class path.

Upvotes: 2

Views: 502

Answers (1)

jiwitesh
jiwitesh

Reputation: 123

What you have to do is to remove the package name from the class.Because the package name is already there in your jar which you have imported.

Upvotes: 0

Related Questions