安装Zk的过程.docx
《安装Zk的过程.docx》由会员分享,可在线阅读,更多相关《安装Zk的过程.docx(17页珍藏版)》请在冰豆网上搜索。
安装Zk的过程
eclipse-jee-indigo-win32-x86_64.zip安装ZK方法总结
Java环境配置好之后。
主要是指classicpath和javahome以及path的变量配置好,
具体可以按照网上的设置即可。
本文给大家提供一个方法。
步骤1:
配置jdk环境变量。
新建系统变量JAVA_HOME:
C:
\ProgramFiles\Java\jdk1.7.0_07
新建系统变量CLASSPATH:
.;%JAVA_HOME%\lib;(注意:
点号表示当前目录,不能省略)
在系统变量Path的值的前面加入以下内容:
%JAVA_HOME%\bin;(注意:
这里的分号不能省略)
步骤2:
安装Tomcat并配置环境变量
将tomcat-6.0.36直接解压到D盘根目录:
新建系统变量CATALINA_HOME:
D:
\apache-tomcat-6.0.36
在系统变量CLASSPATH的值的后面加入:
%TOMCAT_HOME%\lib;在系统变量Path的值中"%JAVA_HOME%\bin;"的后面加入以下内容:
%TOMCAT_HOME%\lib
到这里,Tomcat安装完毕。
进行完一、二两步的设置以后,各系统变量的值如下:
JAVA_HOME:
C:
\ProgramFiles\Java\jdk1.7.0_07
TOMCAT_HOME:
D:
\apache-tomcat-6.0.36
CLASSPATH:
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\sqlitejdbc-v033-nested.jar;%JAVA_HOME%\lib\mysql-connector-java-5.1.7-bin.jar;%TOMCAT_HOME%\lib
Path:
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:
\ProgramFiles\Java\jdk1.7.0_07\jre\bin;C:
\ProgramFiles\Java\jdk1.7.0_07\bin;C:
\ProgramFiles\MinGW\msys\1.0\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%TOMCAT_HOME%\bin
下载eclipse-jee-indigo-win32-x86_64.zip网址为:
http:
//www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr1根据你的系统去选择32位或者64位等。
下载后将其解压放到D盘根目录下。
如D:
\eclipse
安装好后下载一个tomcat插件。
tomcatPluginV33将其解压后放到eclipse目录下的plugins中如D:
\eclipse\plugins
解决这些后,启动eclipse进入界面为,里面zk界面,这是我安装之后的截图。
但是不影响。
点击windows下的preferences(里面无zk项目)
点击“tomcat”选项,设置tomcat,如图所示,照着图中设置即可
点击ok。
点击server——runtimeenvironment进行设置,添加add
选择tomcat6.0点击next。
值得注意的是在installed选择我们之前的jdk版本否则ZK安装会失败。
点击finish。
点击ok。
在主页面上面点击help——eclipseMarketplace选项。
在里面输入ZKstudio查询,然后找到zkstudio后点击安装。
因为我已经安装了,所以没有install选项。
没安装的话在右边都会有install选项。
在安装过程中出现warning。
没事继续即可,之后安装完成后,提示重启,点击重启即可。
重启后,在help里面有一个activaceZK选择即可,然后再用户和密码中数据你在zk网站上的用户和密码,你可以注册后在安装。
Zk网站上也提供了安装方法;http:
//books.zkoss.org/wiki/ZK_Studio_Essentials/Installation
可以参考,但是使用该方法安装eclipse-jee-indigo-win32-x86_64.zip,老会出错,主要原因好像就是没有在设置好eclipse的jdk选项,上面已经提到的注意事项里面有,按照上面可以解决,如果有疑问,我可以跟您一起讨论,共同进步。
我的email:
heyongle2008@
下面给大家提供ZK上的安装方法都是因为的,很好理解。
SupportVersion
Eclipse4.2,Eclipse3.7,Eclipse3.6,Eclipse3.5.
Prerequisite
TherearethreepiecesofsoftwarethatyouneedtodownloadandinstallinordertouseZKStudio.
JavaSEDevelopmentKit(JDK)
Javaversion5or6isrequiredinordertorunEclipse,youcandownloadeitherofthembyfollowingthelinksbelow:
▪JDK:
JavaSEDownloads
▪selectwhichJavaSEDevelopmentKit(JDK)youwanttodownload,pleasedoNOTselecttheJRE.
▪InstallationInstructions:
PlatformInstallation
EclipseIDEforJavaEEDevelopers
ZK-StudioisanEclipsePlug-in,thereforeyoumustinstallEclipse.WerecommendusingtheEclipseIDEforJavaEEDeveloperspackage,currentlyv4.2(Juno),v3.7(Indigo),andv3.6(Helios).
Install:
▪Extract"eclipse"fromthedownloadedzipfiletoalocationofyourchoice.TomakesureEclipsecanrunonyoursystem,executeeclipse.exe(inWindows)oreclipse(inUnixorLinux).Youcanlocatethesefilesinyourextractedeclipsefolder.
▪WerecommendsettingEclipse'sdefaultJREtoJDK,pleaserefertotheSetup/PreferencessectioninWTPTutorials–BuildingandRunningaWebApplication.
Tips:
1.Werecommendmodifyingsomeparametersintheconfigurationfileeclipse.iniwhichwillresultinperformancegain,pleasereferhereandhere.
2.WealsorecommendusingtheJavaDevelopmentKit(JDK)asthedefaultJREforEclipseIDE,pleasefollowtheseinstructionstomaketheJDKthedefaultJRE.
ApplicationServers
BeforedevelopingwebapplicationsinJavausingtheZKAjaxFramework,youneedtoinstallanapplicationserver.ApacheTomcatisoneofthemostpopularWebcontainers.Tomcatversions6and7aresupportedandcanbedownloadedatthefollowinglinkhttp:
//tomcat.apache.org/.
Install:
DownloadthezipfileofTomcatdistributionandextractittoaproperlocation(withnoillegalcharactersorspaceinthepath).TomcatrequiresconfigurationbeforeitcanbeusedwithEclipse,thisprocessisdescribedinthefollowinglinkRunningtheZKProject.
Tips:
IfyounotonlywanttodevelopWebApplications,butalsoneedtodeploythemonApacheTomcat,linkstotheofficialinstallationinstructionsfordirectlyrunningApacheTomcatinyourenvironmentareprovidedbelow:
▪Tomcat7:
http:
//tomcat.apache.org/tomcat-7.0-doc/setup.html
▪Tomcat6:
http:
//tomcat.apache.org/tomcat-6.0-doc/setup.html
InstallationGuide
ZKStudiocanbeinstalledbyusingeithertheonlineinstallationwiththeupdatesiteURL,orbydownloadingtheofflineinstallationzipfileprovidedhereandfollowingtheOfflineInstallationonEclipse.
Marketplace(SinceEclipse3.6)
SinceEclipse3.6,marketplaceisanotherwaytoinstallplugin.Inmenu:
[Help]>[EclipseMarkpetplace]andsearch"zkstudio"you'llfindZKStudiotoinstall.
UpdateSiteURL
SinceEclipse3.7andtheStudioServiceupdate,thenewURLformatishttp:
//studio.zkoss.org/resource/plugins/eclipse_ver
▪TheURLofZKStudioforEclipse4.2:
http:
//studio.zkoss.org/resource/plugins/eclipse_4_2
▪TheURLofZKStudioforEclipse3.7:
http:
//studio.zkoss.org/resource/plugins/eclipse_3_7
▪TheURLofZKStudioforEclipse3.6:
http:
//studio.zkoss.org/resource/plugins/eclipse_3_6
▪TheURLofZKStudioforEclipse3.5:
http:
//studio.zkoss.org/resource/plugins/eclipse_3_5
OnlineInstallationonEclipse
1.OpenEclipse,clickthe[Help]menuandselect[InstallNewSoftware...].AinstallwindowpopupandthenclickAddbutton.
2.Namethesiteas"ZKStudio"andcopycorrespondingupdatesite'sURL(forexample,http:
//studio.zkoss.org/resource/plugins/eclipse_3_7whenusingEclipse3.7)intoLocationfieldandclickOKbutton.
3.ExpandtheupdateentryofZKStudio,checkZKStudioandthenclickNextbutton.
TheEclipseInstallationSystemwillnowattempttoretrieveinformationfromtheupdatesite.Thiswilltakesometimedependingonyoureclipseenvironment,pleasebepatient.
4.ClickNextbuttononthepop-upinstallwizarddialog.
Check"Iacceptthetermsofthelicenseagrement"andclickFinishbuttononthewizarddialog.
TheInstallationprocesswillnowbegin.
Ifthereisapop-updialogwithunsignedcontentwarning,pleaseclickOKbuttontocontinue.
5.Oncetheinstallationiscomplete,pleaserestartEclipseasprompted.
OfflineInstallationonEclipse
1.Downloadtheofflineinstallationzipfilehere
2.ThefollowingstepsaremuchlikeOnlineInstallationonEclipse.ButclickArchive...buttoninstep2.Then,usefileexplorertochoosedownloadedfileinpreviousstep.
ActivateZKStudio
InEclipse'smenu,pleasechoose[Help]andselect[ActivateZKStudio].Adialogwillshow:
▪PleaseinputyouraccountandpasswordinZKForumtoactivateZKStudio.
▪Ifyouhavetoconnecttheinternetthroughproxy,youmaysetupproxyURLandporttomakeitwork.
SinceZKStudio1.0.1,userstillhavefullfeaturedZKStudioevenifnotactivated.Butitwillprompttoactivateevery7days.
TroubleShooting
Can'tactivateinSpringToolSuite2.6.0
Springtoolsuite2.6seriesasksthatencrypt/decryptlibrarymustbesignedbytrustedsource.Youmustmodifyjava.securityfiletoenablethelicensemanagementofZKStudio(BouncyCastleCryptographyProvider).PleaserefertoJCEAuthenticateProviderformoreinformation.
WTPnotinstalled
IfyougetthefollowingerrormessagewhileinstallingZKStudio,thatmeansyouarenotusingEclipseforJ2EEuser,andyouneedtoinstallEclipseWTPplug-inmanuallyordownloadEclipseforJ2EE.