简体   繁体   English

iTextpdf Java兼容性

[英]iTextpdf Java compatibility

I need to encrypt a pdf document and decided to use itext Version 5.4.0 for this, and everything went well for my local test on my machine(with JAVA 1.8.0), but now I need to move the work to an oracle database 11gR2, and when I load the jar files (iText and bouncycastle) I keep getting the same error: ORA-29534:referenced object could not be resolved. 我需要加密一个pdf文档,并决定使用itext版本5.4.0,并且在我的机器上进行本地测试(使用JAVA 1.8.0)时一切正常,但是现在我需要将工作移至oracle数据库11gR2,当我加载jar文件(iText和bouncycastle)时,我一直收到相同的错误消息:ORA-29534:引用的对象无法解析。 I'm using the loadjava command for this: 我为此使用loadjava命令:

loadjava -u SYSTEM/SYS_PWD@SID -o -r -v -f -noverify -synonym -g public itextpdf-5.1.0.jar

I've tried using SYS as well, but still getting the same error code. 我也尝试过使用SYS,但是仍然得到相同的错误代码。 I don't know if this has something to do with the JVM, the database uses JAVA 1.5.0. 我不知道这是否与JVM有关,数据库使用的是JAVA 1.5.0。

I've searched about iText java requirements but couldn't found anything useful, I'll be grateful with any help I can get. 我已经搜索过iText java要求,但找不到有用的东西,我将不胜感激。

I was able to upload, compile and use the libraries in the .jar files using the same command but with other parameter, and it compiled; 我能够使用相同的命令但带有其他参数来上载,编译和使用.jar文件中的库,并对其进行了编译; the command I used is : 我使用的命令是:

loadjava -u SYS/[pwd]@[SID] -r -v -f -genmissing -s -grant public [file].jar

Hope this can help someone in need out there! 希望这可以帮助有需要的人!

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

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