Originally posted by tony maro:
I looked at all the other posts re this topic but still don't have an answer. And this is too simple to be in anything other than beginner.
My application is not finding a class file enclosed in a jar file. Specifically, I use com.ibm.as400.access.as400.class from jt400.jar (which is in my classpath. I'm not familiar enough with this type of directory structure (com.ibm.as400.access) to solve this problem. But I think the issue is with the classpath.
The specific error looks like this:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/as400/access/as400 at .....
Your help is appreciated.
Great, to see the problem again.
There are 3 possiblities.
1) you might not have included the jar file in the classpath. first verify whether you have included the jar file in the path. then try to run it.
if still you get the problem then proceed to step 2.
2) another problem is the access rights of the jar file. please verify whether you have read and execute rights for that particular jar file. if not then modify the access permissions then try to run it.
if still you get the problem then procees to step 3.
3) check the
java policy file of that particular jar file. whether it is compitable to your java version or not.
if still you get the problem the post the java file to ranch surface.
Thank you.