eclipse+wtp+tomcat配置apr的问题解决

前提是找到对应自己tomcat版本的tcnative-1.dll文件放到tomcat/bin下

 

在profile as-->profile Configurations里选择不同的tomcat服务器然后设置其Arguments

加上-Djava.library.path=本机系统的path;tomcat的bin目录

myeclipse里会自动加上tomcat的bin目录,而eclipse却不会,需要手动配置,不知道怎么回事
而且单独启动tomcat,不再eclipse里启动的时候,tomcat自己也会把环境变量加上自己的bin

例如我自己的机器上

tomcat5.5.27
start
-Dcatalina.base="D:\eclipse-webapps5" -Dcatalina.home="D:\develop_tools\apache-tomcat-5.5.27" -Dwtp.deploy="D:\eclipse-webapps5\wtpwebapps" -Djava.endorsed.dirs="D:\develop_tools\apache-tomcat-5.5.27\common\endorsed" -Djava.library.path="D:\Sun\jdk1.5.0_19\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:/Sun/jdk1.5.0_19/bin/../jre/bin/client;D:/Sun/jdk1.5.0_19/bin/../jre/bin;.;C:\Program Files\Common Files\NetSarang;D:\Sun\jdk1.5.0_19\bin;D:\develop_tools\apache-ant-1.7.1\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;;D:\develop_tools\TortoiseCVS;D:\develop_tools\Python31;D:\develop_tools\TortoiseSVN\bin;G:\apache-maven-2.2.1\bin;D:\Program Files\IDM Computer Solutions\UltraEdit\;D:\develop_tools\apache-tomcat-5.5.27\bin"


tomcat6.0.26
start
-Dcatalina.base="D:\eclipse-webapps6" -Dcatalina.home="D:\develop_tools\apache-tomcat-6.0.26" -Dwtp.deploy="D:\eclipse-webapps6\wtpwebapps" -Djava.endorsed.dirs="D:\develop_tools\apache-tomcat-6.0.26\endorsed" -Djava.library.path="D:\Sun\jdk1.5.0_19\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:/Sun/jdk1.5.0_19/bin/../jre/bin/client;D:/Sun/jdk1.5.0_19/bin/../jre/bin;.;C:\Program Files\Common Files\NetSarang;D:\Sun\jdk1.5.0_19\bin;D:\develop_tools\apache-ant-1.7.1\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;;D:\develop_tools\TortoiseCVS;D:\develop_tools\Python31;D:\develop_tools\TortoiseSVN\bin;G:\apache-maven-2.2.1\bin;D:\Program Files\IDM Computer Solutions\UltraEdit\;D:\develop_tools\apache-tomcat-6.0.26\bin"
 


网上的有关介绍的路径

http://www.91linux.com/html/article/program/java/20070901/6636_2.html
http://www.24lou.cn/archives/8
http://blackhost.spaces.live.com/Blog/cns!15952472A98892C7!279.entry
http://blog.sina.com.cn/s/blog_53a169850100a9c2.html  这个比较全
http://www.linuxsir.org/bbs/thread331668.html
http://blog.csdn.net/aime99/archive/2009/03/20/4009457.aspx
http://www.zjsyc.com/blog/article/java/344.html
http://www.liifei.com/?m=200710

你可能感兴趣的:(eclipse,oracle,tomcat,c,C#)