简体   繁体   English

如何将Jasypt库添加到OS X?

[英]How to add Jasypt library to OS X?

I just came across JASYPT library and I wanted to try it out. 我刚遇到JASYPT库,我想尝试一下。 I have googled a fair bit but failed to find a guide to add new Java libraries. 我已经用谷歌搜索了一下,但是没有找到添加新Java库的指南。 I have OS X 10.7, which directory do I unpack the Jasypt library into? 我有OS X 10.7,我应该将Jasypt库解压缩到哪个目录?

Jasypt: http://www.jasypt.org/ Jasypt: http//www.jasypt.org/

EDIT: I use Eclipse for Java Dev, I just created a new project and want to integrate this library into it. 编辑:我将Eclipse用于Java Dev,我刚刚创建了一个新项目,并希望将此库集成到其中。

In Eclipse it is: Properties > Java Build Path > Libraries. 在Eclipse中,它是: 属性> Java构建路径>库。 (Contextmenu of your project) (您的项目的上下文菜单)

There you add jasypt-1.9.0.jar 在那里您添加jasypt-1.9.0.jar

if you use Java 5 or older you also have to include icu4j-3.4.4.jar 如果您使用Java 5或更早版本,则还必须包含icu4j-3.4.4.jar

(Versions may differ from yours) (版本可能与您的不同)

You can change your build path following these steps: 您可以按照以下步骤更改构建路径:

  • Right click in your project node; 右键单击您的项目节点;
  • Properties; 属性;
  • Java Build Path; Java构建路径;
  • Libraries; 图书馆;
  • Add JARs or Add External JARs; 添加JAR或添加外部JAR;
  • Add the jar(s) of Jasypt; 加入Jasypt的罐子;
  • Apply your changes; 应用您的更改;
  • Test it. 测试一下。

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

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