-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find or load main class org.apache.ibatis.migration.Migrator #58
Comments
I can't use "send_full_script=true" because it doesn't work. |
I am not sure if I understand your problem, but the error message implies that the mybatis-migrations.jar is not found in the classpath. Here is how to use mybatis-migrations 3.3.0-SNAPSHOT.
This should allow you to use the |
Hi @harawata, Thanks for your quick reply. Well, what I have done:
Same way works with 3.2.1. |
Have you tried the bundle.zip downloaded from the snapshot repository instead of the one that you built? I am using Mac OS X 10.12.1 / Java 1.8.0_111 |
Hi @harawata I've just done it. (Windows 7, Java 1.8.0_111, GitBash, If I use 3.2.1 archive from the website - it works) Can it be an issue in Win + 3.3.0-SNAPSHOT? I'll check on a linux VM (no doubts it is working on your machine, need to find out why 3.3.0-SNAPSHOT doesn't work on mine, while 3.2.1 does). |
|
You are using MinGW, so migrate.cmd is not related, I guess. What happens if you execute the java command directly in the $ cd /c/tmp/mybatis-mygrations-3.3.0-SNAPSHOT/lib
$ java -classpath mybatis-migrations-3.3.0-SNAPSHOT.jar:mybatis-3.4.1.jar org.apache.ibatis.migration.Migrator info |
I can remove Though, I am not sure why is it |
The endorsedDir was added to load 3rd party JSR-223 libraries. As the script (bin/migrate) is generated by appassembler-maven-plugin, if adding endorsedDir breaks the launcher script, it may be the plugin's bug. If there is an alternative way to allow users to add 3rd party JARs to the classpath, I would consider adopting it, of course. |
Hi @harawata @kazuki43zoo @hazendaz,
I am trying to use the tool (MyBatis Migrations) 3.2.1 to automate DB changes for my Oracle instance. Almost done that (99% of the DB initiation) and Friday ran into the issue that is (what I think) is described here: #46
Then I went to #46 and there it was mentioned to use
-- @DELIMITER
. It is available in 3.3.0 but I haven't found any downloadable 3.3.0-SNAPSHOT archive that I can use to proceed further.If I use something that is in master right now (builded it with maven) - I am getting the below error just trying to run
migrate info
:Can you support/check on this?
The text was updated successfully, but these errors were encountered: