必须设置类路径或将其恢复为默认值 [英] Class path must be set or restored default

查看:88
本文介绍了必须设置类路径或将其恢复为默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在创建pojo时正在做一个Hibernate项目,我在执行控制台配置时遇到此错误必须设置或恢复默认的类路径",我有所有正在与其他项目一起工作的jars,请帮我

I was doing a Hibernate project while creating pojo I am getting this error "Class path must be set or restored default" while doing console configuration I have all the jars which are working with other projects please help me with this

推荐答案

主要是在缺少某些jar或sql驱动程序时出现此错误.您说您已经添加了所有的罐子,但是请尝试再次仔细检查.如果您的jars不在您的项目中,那么您需要检查它们是否仍存在于指定路径中.建议先将它们复制到项目文件夹,然后通过添加jar"将其添加(如果使用eclipse).

This error mainly appears when some jars or sql drivers is missing. You said that you have added all the jars, but try to check it again carefully. If your jars is placed not in your project so you need to check if they still exist in specified path. It's recommended to copy them to the project folder first and then add them by 'add jar' (if you using eclipse).

我希望它会有所帮助.但是您可以提供更多详细信息,以了解真正的问题是什么.

I hope it helps. But you can give more details to understand what real problem is.

这篇关于必须设置类路径或将其恢复为默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆