Fahad
Fahad

Reputation: 403

mybatis configuration file error

I get the following error when running the configuration xml file from command line as stated on mybatis site. I run “java –jar mybatis-generator-core-1.3.2.jar –configfile mbg.xml –overwrite –verbose”

error:

enter image description here

Any help would be appreciated.

Upvotes: 0

Views: 280

Answers (1)

Andrei Stefan
Andrei Stefan

Reputation: 52368

Most likely you have copy-pasted the command from their website. The problem is they used a strange character for "-".

As a proof, go to this website and insert the "-" (dash) character from their website command and click on "Show ASCII Key Code". It will show an window where the decimal key for that character is 8211. If you insert from your keyboard the "-" character, the decimal key displayed is 45, which is the correct character.

So, you need to type the command by hand or you can copy-paste the command below:

java -jar mybatis-generator-core-1.3.2.jar -configfile mbg.xml -overwrite -verbose

Upvotes: 2

Related Questions