简体   繁体   English

如何使用vtiger库Java?

[英]how to work with vtiger library java?

VTiger lib for java is not working properly, I used the documentation for vtwsclib.jar , and implemented the examples given in documentation but I always get false . Java的VTiger lib无法正常工作,我使用了vtwsclib.jar的文档,并实现了文档中给出的示例,但我总是得到false

Is there an alternative way to use vtiger for android? 有没有其他方法可以将vtiger用于Android? I also used libray developed by @Vitaly, https://github.com/vitalidze/vtiger-client , but it gave this error: 我还使用了@Vitaly开发的libray, https://github.com/vitalidze/vtiger-client ,但是它给出了以下错误:

## Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder

>>at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)
at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114)
at su.litvak.vtiger.Main.main(Main.java:28)
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:113)
at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:206)
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
... 2 more 

The screen shot show that you are missing libraries, include all the libraries. 屏幕快照显示您缺少库,包括所有库。 Actually i used these libraries too but could not achieved my goal. 实际上,我也使用了这些库,但未能实现我的目标。 so i used my own web-services to work with Vtiger. 所以我用自己的网络服务与Vtiger一起工作。 i had a question and got an answer mine and yours are not related but in answer he gave me some links which are all docs of vtiger so i will suggest you to study them first while creating your own webservices. 我有一个问题,得到了我的答案,您的问题不相关,但在回答中,他给了我一些vtiger文档的链接,所以我建议您在创建自己的Web服务时首先研究它们。

Looks like it is missing a library. 好像它缺少一个库。

Make sure you import the library to your project. 确保将库导入到项目中。 under project explorer "your project name"-> Libraries, rightclick on library and click ADD JAR/FOLDER find "vtwsclib.jar" and import it. 在项目浏览器“您的项目名称”->库下,右键单击库,然后单击“添加JAR / FOLDER”,找到“ vtwsclib.jar”并将其导入。 it should fix the problem. 它应该解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM