zouzg / mybatis-generator-gui

mybatis-generator界面工具,让你生成代码更简单更快捷
6.68k stars 2.53k forks source link

Cannot resolve classpath entry #104

Closed zhangleijie closed 7 years ago

zhangleijie commented 7 years ago

[INFO] [10:28:30.334] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.:32 --> load driver class: com.mysql.jdbc.Driver@7ecea84c [INFO] [10:28:30.342] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.:32 --> load driver class: oracle.jdbc.driver.OracleDriver@6befa8a7 [INFO] [10:28:30.350] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.:32 --> load driver class: org.postgresql.Driver@3e1079f1 [INFO] [10:28:30.412] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.:32 --> load driver class: SQLServerDriver:2 [INFO] [10:28:30.412] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.getConnectionUrlWithSchema:106 --> getConnectionUrlWithSchema, connection url: jdbc:mysql://127.0.0.1:3306/dev_flow_db?useUnicode=true&useSSL=false&characterEncoding=utf8 [INFO] [10:28:30.413] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.getTableNames:55 --> getTableNames, connection url: jdbc:mysql://127.0.0.1:3306/dev_flow_db?useUnicode=true&useSSL=false&characterEncoding=utf8 [INFO] [10:28:30.414] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.getConnectionUrlWithSchema:106 --> getConnectionUrlWithSchema, connection url: jdbc:mysql://127.0.0.1:3306/dev_flow_db?useUnicode=true&useSSL=false&characterEncoding=utf8 [INFO] [10:28:30.621] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.getConnection:49 --> getConnection, connection url: com.mysql.jdbc.JDBC4Connection@1d9e7628 [INFO] [10:28:37.289] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.ConfigHelper.findConnectorLibPath:213 --> jar resource: file:/F:/%e5%92%aa%e5%92%95%e9%a1%b9%e7%9b%ae%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83/mybatis-generator-gui/target/classes/logback.xml [INFO] [10:28:37.290] [JavaFX Application Thread] [] com.zzg.mybatis.generator.bridge.MybatisGeneratorBridge.generate:60 --> connectorLibPath: F:\%e5%92%aa%e5%92%95%e9%a1%b9%e7%9b%ae%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83\mybatis-generator-gui\target\classes\lib\mysql-connector-java-5.1.38.jar [INFO] [10:28:37.293] [JavaFX Application Thread] [] com.zzg.mybatis.generator.util.DbUtil.getConnectionUrlWithSchema:106 --> getConnectionUrlWithSchema, connection url: jdbc:mysql://127.0.0.1:3306/dev_flow_db?useUnicode=true&useSSL=false&characterEncoding=utf8 java.lang.RuntimeException: Cannot resolve classpath entry: F:\%e5%92%aa%e5%92%95%e9%a1%b9%e7%9b%ae%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83\mybatis-generator-gui\target\classes\lib\mysql-connector-java-5.1.38.jar at org.mybatis.generator.internal.util.ClassloaderUtility.getCustomClassloader(ClassloaderUtility.java:49) at org.mybatis.generator.api.MyBatisGenerator.generate(MyBatisGenerator.java:245) at org.mybatis.generator.api.MyBatisGenerator.generate(MyBatisGenerator.java:189) at com.zzg.mybatis.generator.bridge.MybatisGeneratorBridge.generate(MybatisGeneratorBridge.java:164) at com.zzg.mybatis.generator.controller.MainUIController.generateCode(MainUIController.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1771) at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Node.fireEvent(Node.java:8411) at javafx.scene.control.Button.fire(Button.java:185) at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene$MouseHandler.process(Scene.java:3757) at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:380) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:294) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:416) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:415) at com.sun.glass.ui.View.handleMouseEvent(View.java:555) at com.sun.glass.ui.View.notifyMouse(View.java:937) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) at java.lang.Thread.run(Thread.java:745)

zhangleijie commented 7 years ago

这个问题解决了,是因为我把mybatis-generator-gui放到了含有中文的目录导致的。

zouzg commented 7 years ago

OK