Downloaded jbcrypt, how do I install it in an existing netbeans project?

2.3k Views Asked by At

Downloaded here: http://www.mindrot.org/projects/jBCrypt/

Now I have a jbcrypt file, how do I import it into my existing netbeans project?

Googled for a bit but couldn't find anything on how to do this.

1

There are 1 best solutions below

0
On

I'm using IntelliJ Idea 2019, create a folder "BCrypt" which will contain that "BCrypt.java" file. Now copy and paste that folder (containing that BCrypt java file) in your project source directory and make the following changes. Open the BCrypt.java file and change package org.mindrot.jbcrypt; to package BCrypt; (it is the very first line of the code) now you can import BCrypt using import statement (import BCrypt;). Here's an image how I did it, I hope this might work for Netbeans as well.

enter image description here