When you use Java to do a project, you often have a problem with Class, which is the ClassPath setting problem, first you can use the set command to see the current state.
Then write a BAT file and add the classpath into it. As shown in AA.BAT file: Rem This is a file used to add ClassPath. Set hibernate = m: /Hibernate-3.0set ClassPath =% classpath%;% hibernate% / lib / msbase.jarset classpath =% classpath%;% hibernate% / lib / mssqlser.jarset classpath =% classpath%;% hibernate% / LIB / MSUTIL.jar