yichao firstname, zeaster nickname, zhang lastname

blogsync FAQ

 



blogsync FAQ


from http://code.google.com/p/blogsync-java/wiki/BlogsyncFAQ

what is blogsync?


it is used to import wordpress posts into blogger.

how to use it?



  • set jdk bin path in run.bat/run.sh

  • execute run.bat/run.sh


what is new in blogsync 0.3?


The comments can be imported from wordpress rss xml file to blogger site now. However it can not preserve the published time of the wordpress comments. so the published time of your imported comments is just the time when you import.

what is new in blogsync 0.2?


add feature to import posts from exported wordpress rss xml file to blogger site.

which jdk version do I need to run blogsync?


You should use jdk1.5 or later.

how to add jdk bin path in path environment?



  • windows

    1. says your java.exe is in directory c:\jdk1.5.0\bin

    2. set the following line in run.bat

    3.     set path=c:jdk1.5.0bin;%path%



  • Mac or unix

    1. says your java is in directory /path/to/your/java

    2. set the following line in run.sh

    3.     export PATH=/path/to/your/java:$PATH




how do I know which version of jdk I am using?


open a terminal, type "java -version". you should get something like this:
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode)

how to run run.bat/run.sh in command line?



  • windows

  • open a command window, type:
        cd e:pathtoyourrun.bat
    run
    .bat


  • Mac or unix

  • open a terminal, type:
        cd /path/to/your/run.sh
    sh run
    .sh



when run run.sh, it is opened by my editor, what should I do?


please run run.sh in command line.

after clicking on run.bat/run.sh, there was nothing happend, what should I do?


run run.bat/run.sh in command line so that find what's going wrong in the terminal?

It prompts "java: command not found", what's going wrong?


java is not in your path, please add jdk bin path in your path environment.

why do I get Exception in thread "main" java.lang.NoClassDefFoundError: org/easter/blogsync/BlogSync?


if you are on Mac or unix, please make sure you have read permission on blogsync/build/blogsync.jar file if not, open a terminal and type:
chmod 744 /path/to/your/blogsync/build/blogsync.jar

why do I get Failed to create input stream: Server returned HTTP response code: 403 for URL: http://mydomain.com/wordpress/xmlrpc.php?



  • if you installed a plugin called Enforce www. Preference, it would affect the path to your xmlrpc.php file, so deactivated it first.

  • if you enabled mod_security on apache, it would block access to xmlrpc.php, so add this to your .htaccess file:

  •     <Files xmlrpc.php>
    SecFilterInheritance Off
    </Files>


2 comments:

Pink Sun Drops said...

I am SO confused on this! What is JDK bin path and how do I set it? I have Mac OS X. How do I find the directory and set the line?

Rajat Gupta said...

What you've done here is the hard part. We have a tool PAW (http://www.pawanalytics.com) that allows you to easily put a UI in front of your code. PAW allows you to put scripting, user input, and see the results, have people re-run your script/code very easily. I see "end-users" in your post asking for how to create settings as the such. I'll be happy to help you get blogsync running within PAW.