下载src包后解压到目录:
D:\projects\study-opensource\Shark
shark编译:
用jdk :j2sdk1.4.2_04(不建议用jdk1.5,本人试过有问题)
1.先要执行配置工作:configure
D:\projects\study-opensource\Shark>configure -jdkhome D:\j2sdk1.4.2_04 -instdir D:\server\Shark-1.0
Buildfile: build.xml
configureInit:
init:
configure:
[copy] Copying 3 files to D:\projects\study-opensource\Shark\util\dods\buil
d\conf
[copy] Copying 1 file to D:\projects\study-opensource\Shark\util\dods\build
[copy] Copying 20 files to D:\projects\study-opensource\Shark\util\dods\bin
BUILD SUCCESSFUL
Total time: 4 seconds
2.编译开始:make
如果不想生成文档可执行 make buildNoDoc (编译省时)
D:\projects\study-opensource\Shark>make
下面是最后一屏输出:
compile:
archive:
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\cl
ient\sharkcorbaclientbase.jar
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\cl
ient\sharkcorbaadmin.jar
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\cl
ient\sharkcorbawhandler.jar
javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package org.enhydra.shark.corbaclient
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.actio
ns
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.application
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.application.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.cache
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.cache.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.definition
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.definition.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.instantiation
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.instantiation.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.monitoring
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.monitoring.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.report
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.repository
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.repository.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.user
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.user.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.worklist
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workf
lowadmin.worklist.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workl
ist
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workl
ist.actions
[javadoc] Loading source files for package org.enhydra.shark.corbaclient.workl
isthandler
[javadoc] Constructing Javadoc information
buildAll:
buildAmodule:
compile:
archive:
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\cl
ient\sharkjsputilities.jar
buildNoDoc:
buildAll:
init:
prepareBuild:
[echo] Preparing for build
[replace] Replaced 0 occurrences in 0 files.
buildWRD:
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\en
gine\wrd.jar
init:
_copyNfilter:
[copy] Copying 11 files to D:\projects\study-opensource\Shark\output\Shark
_winFileSeparator:
[replace] Replaced 0 occurrences in 0 files.
[delete] Deleting 12 files from D:\projects\study-opensource\Shark\output\Sha
rk
_linFileSeparator:
_recreateDB:
[delete] Deleting directory D:\projects\study-opensource\Shark\output\Shark\d
b\hsql
[delete] Deleting directory D:\projects\study-opensource\Shark\output\Shark\r
epository\internal\history
[delete] Deleting directory D:\projects\study-opensource\Shark\output\Shark\r
epository\internal
[mkdir] Created dir: D:\projects\study-opensource\Shark\output\Shark\db\hsql
[mkdir] Created dir: D:\projects\study-opensource\Shark\output\Shark\reposit
ory\internal\history
[java] Default (Standard) Logger is load.
[java] Application is started.
[java] Loader loads XML file : conf/sql/hsql/LoaderJob.olj
[java] XML document is valid.
[java] Import job No. 1 is started.
[java] SQL statement CreateTables1 is started
[java] SQL statement CreateTables1 is finished
[java] Duration :0,47 seconds
[java] Import job No. 2 is started.
[java] SQL statement CreateTables-applicationmappersistence is started
[java] SQL statement CreateTables-applicationmappersistence is finished
[java] Duration :0,31 seconds
[java] Import job No. 3 is started.
[java] SQL statement CreateTables-participantmappersistence is started
[java] SQL statement CreateTables-participantmappersistence is finished
[java] Duration :0,32 seconds
[java] Import job No. 4 is started.
[java] SQL statement CreateTables3 is started
[java] SQL statement CreateTables3 is finished
[java] Duration :0,0 seconds
[java] Import job No. 5 is started.
[java] SQL statement CreateTables4 is started
[java] SQL statement CreateTables4 is finished
[java] Duration :0,0 seconds
[java] Import job No. 6 is started.
[java] SQL statement CreateTables5 is started
[java] SQL statement CreateTables5 is finished
[java] Duration :0,47 seconds
[java] Import job No. 7 is started.
[java] SQL statement CreateTables6 is started
[java] SQL statement CreateTables6 is finished
[java] Duration :0,16 seconds
[java] Import job No. 8 is started.
[java] SQL statement CreateTables7 is started
[java] SQL statement CreateTables7 is finished
[java] Duration :0,0 seconds
[java] Import job No. 9 is started.
[java] SQL statement CreateIndex1 is started
[java] SQL statement CreateIndex1 is finished
[java] Duration :0,156 seconds
[java] Import job No. 10 is started.
[java] SQL statement CreateIndex-applicationmappersistence is started
[java] SQL statement CreateIndex-applicationmappersistence is finished
[java] Duration :0,16 seconds
[java] Import job No. 11 is started.
[java] SQL statement CreateIndex-participantmappersistence is started
[java] SQL statement CreateIndex-participantmappersistence is finished
[java] Duration :0,47 seconds
[java] Import job No. 12 is started.
[java] SQL statement CreateIndex3 is started
[java] SQL statement CreateIndex3 is finished
[java] Duration :0,0 seconds
[java] Import job No. 13 is started.
[java] SQL statement CreateIndex4 is started
[java] SQL statement CreateIndex4 is finished
[java] Duration :0,0 seconds
[java] Import job No. 14 is started.
[java] SQL statement CreateIndex5 is started
[java] SQL statement CreateIndex5 is finished
[java] Duration :0,63 seconds
[java] Import job No. 15 is started.
[java] SQL statement CreateIndex6 is started
[java] SQL statement CreateIndex6 is finished
[java] Duration :0,16 seconds
[java] Import job No. 16 is started.
[java] SQL statement CreateIndex7 is started
[java] SQL statement CreateIndex7 is finished
[java] Duration :0,0 seconds
[java] Import job No. 17 is started.
[java] SQL statement CreateObjectId is started
[java] SQL statement CreateObjectId is finished
[java] Duration :0,16 seconds
[java] All rows are commited.
[java] Application is finished.
[java] All jobs duration: 4,812 seconds
makeWebAppArchive:
[war] Building war: D:\projects\study-opensource\Shark\output\Shark\JSPCli
ent\sharkworklisthandler.war
_configure-dist:
init:
compile:
archive:
[jar] Building jar: D:\projects\study-opensource\Shark\output\Shark\lib\cl
ient\sharktests.jar
buildAll:
BUILD SUCCESSFUL
Total time: 11 minutes 38 seconds
D:\projects\study-opensource\Shark>
3,可以把shark 工程导入到eclipse 中了
在eclipse 工程中,加入 hibernate2.jar ,wrd.jar
编译通过。
方向:分布式系统设计