ACS4 MigrationTool Update 4.0 to 4.1 error

Just found out the error generated below was cause by the separator character. Though the instruction showing is colon, but I actually should use semicolon on Windows.

Exception in thread "main" java.lang.NoClassDefFoundError: com/adobe/adept/migration/MigrationTool
Caused by: java.lang.ClassNotFoundException: com.adobe.adept.migration.MigrationTool
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.adobe.adept.migration.MigrationTool.  Program will exit.

instead of

java -cp log4j-1.2.16.jar:mysql-connector-java-5.1.12-bin.jar:migrationTool.jar com.adobe.adept.migration.MigrationTool -o out.txt

should be

java -cp log4j-1.2.16.jar;mysql-connector-java-5.1.12-bin.jar;migrationTool.jar com.adobe.adept.migration.MigrationTool -o out.txt

I at first have no clue is the separator issue, thought was the java issue, since I have no experience on Java development at all. Anyway, lesson learn.

Advertisements