Archive for 10月 22nd, 2007

在 Spket IDE 1.6.4 中使用 Ext 2.0

星期一, 10月 22nd, 2007

Spket是个非常优秀的javascript开发工具,Ext则是非常优秀的javascript库。

Spket IDE 1.6.4中使用Ext 2.0 .

1.下载:
http://www.--escaped_anchor:22bc7215873c9b78dc8e886540dd522d--.com/downloads/spket-1.6.4.1.jar
引用页 http://www.--escaped_anchor:22bc7215873c9b78dc8e886540dd522d--.com/download.html

http://extjs.com/deploy/ext-2.0-beta1.zip
引用页 http://extjs.com/download
2.运行 java -jar spket-1.6.4.1.jar进行安装

3.解压ext-1.1.1.zip

4.启动 Spket IDE,

5.new Project “testExt”, new File “test.js”

6.将ext-all.js 复制到D:\Documents and Settings\lizongbo\workspace\testExt

7.然后再在test.js里开头加上
/**
* @include “/testExt/ext-all.js”
*/
testExt为项目名字.

然后再在test.js里写代码就有ext的提示了.

输入Ext,然后按 Alt +/ ,就可以看到语法提示。

Tags: Ext, Extjs, javascript, Spket

Related posts

在Apache Tomcat上安装Wordpress 2.3

星期一, 10月 22nd, 2007

在Apache Tomcat上安装Wordpress 2.3

借助quercus这个纯Java PHP引擎,我们可以在Tomcat上安装Wordpress.

1.首先下载

JDK: jdk-6u3-windows-i586-p.exe http://www.mnidc.net/software/java_se/jdk-6u3-windows-i586-p.exe

mysql 5.0.45: http://ftp.ntu.edu.tw/pub/--escaped_anchor:eb0ea675fbb8e7d924e684d322873a93--/Downloads/MySQL-5.0/mysql-noinstall-5.0.45-win32.zip

Tomcat 6.0.14: http://www.apache.org/dist/--escaped_anchor:079305423cce36d6691457475e081123--/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.zip

quercus 3.1.3: http://quercus.caucho.com/download/quercus-3.1.3.war

Wordpress 2.3: http://wordpress.org/latest.zip

Wordpress 2.3 简体中文语言包 第二版: http://wpcn.googlecode.com/files/--escaped_anchor:514bf1cb49cdb8c6451b5e8c6d9d8e64---2-3-zh_CN-po-mo.zip

mysql jdbc: http://ftp.ntu.edu.tw/pub/--escaped_anchor:eb0ea675fbb8e7d924e684d322873a93--/Downloads/Connector-J/mysql-connector-java-5.1.0.zip

javamail

2.安装:
运行jdk-6u3-windows-i586-p.exe安装 JDK 到D:\Java\jdk1.6.0_03
配置环境变量JAVA_HOME=D:\Java\jdk1.6.0_03
环境变量Path中加入D:\Java\jdk1.6.0_03\bin;

解压mysql-noinstall-5.0.45-win32.zip为:E:\mysql-5.0.45-win32

解压pache-tomcat-6.0.14.zip到为:D:\Java\apache-tomcat-6.0.14

解压quercus-3.1.3.war为:D:\Java\apache-tomcat-6.0.14\webapps\quercus

解压latest.zip为D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress

解压wordpress-2-3-zh_CN-po-mo.zip到 D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress\wp-content\language

解压mysql-connector-java-5.1.0.zip得到mysql-connector-java-5.1.0.jar,将其复制到D:\Java\apache-tomcat-6.0.14\webapps\quercus\WEB-INF\lib

将activation.jar和mail.jar复制到D:\Java\apache-tomcat-6.0.14\webapps\quercus\WEB-INF\lib。

4.配置:

将 D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress\下的wp-config-sample.php重命名为wp-config.php
编辑后的wp-config.php的内容如下:

<?php
// ** MySQL settings ** //
define(’DB_NAME’, ‘wordpress’); // The name of the database
define(’DB_USER’, ‘root’); // Your MySQL username
define(’DB_PASSWORD’, ”); // …and password
define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(’DB_CHARSET’, ‘utf8′);
define(’DB_COLLATE’, ”);

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
// to enable German language support.
define (’WPLANG’, ‘zh_CN’);

/* That’s all, stop editing! Happy blogging. */

define(’ABSPATH’, dirname(__FILE__).’/');
require_once(ABSPATH.’wp-settings.php’);
?>

5.启动:

运行E:\mysql-5.0.45-win32\bin\mysqld.exe
运行D:\Java\apache-tomcat-6.0.14\bin\startup.bat

6.安装设置Wordpress

打开浏览器,访问 http://localhost:8080/quercus/wordpress/wp-admin/install.php

进行安装。

(Tomcat后台此时会报很多异常,这是因为wordpress在检测相关的表是否已经创建)

7.访问

http://localhost:8080/quercus/wordpress/ 可以看到内容显示正常。

(more…)

Tags: mysql, php, quercus, Tomcat, Wordpress

Related posts