如何在eclipse中直接调用windchill的API

如何在eclipseJava Project中直接调用windchillAPI并运行程式

 

AliasWC_HOME = *:\ptc\Windchill_9.1*指具体的某个盘符)

1.         要引用windchilljar包,如下:

       1.1          %WC_HOME%\Windchill\codebase\WEB-INF\lib

       1.2          %WC_HOME%\Windchill\lib

       1.3          %WC_HOME%\Java\lib\tools.jar

 

2.         main方法里加上下面这一段(授权):

       RemoteMethodServer rms = RemoteMethodServer.getDefault();

       GatewayAuthenticator auth = new GatewayAuthenticator();

       auth.setRemoteUser("wcadmin");

       rms.setAuthenticator(auth);

 

3.         Project -> Build Path -> Configure Build Path -> Libraries -> Add Class Folder

%WC_HOME%\codebase),这样在更改了java文件或者properties文件之后可以不用重启tomcat而直接运行程序。

 

注:windchill版本为9.1

猜你喜欢

转载自aindf0128.iteye.com/blog/785598
今日推荐