Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to import and use Jasypt - Java Library
    primarykey
    data
    text
    <p>I'm trying to use <a href="http://www.jasypt.org/" rel="nofollow">"Jasypt"</a> in my Java project, but I'm having some troubles. I'm using NetBeans IDE. </p> <p>I download <a href="http://sourceforge.net/projects/jasypt/files/jasypt/jasypt%201.9.0/jasypt-1.9.0-dist.zip/download" rel="nofollow">this</a> file, then I <strong>right clicked on my project -> Properties -> Library -> Add Jar/Folder</strong>. So, I add the folder of Jasypt (uncompressed, called "jasypt-1.9.0"). </p> <p>I can see the Jasypt folder in my project now, but when I try to use it, I have troubles. When I try to instantiate the "BasicPasswordEncryptor" (following my code) I got an error. </p> <pre><code>import org.jasypt.util.text.BasicPasswordEncryptor; public class GerenciarConexao { public boolean Login(String nome, String senha){ BasicPasswordEncryptor passwordEncryptor = new BasicPasswordEncryptor(); // (later will add the code) return true; } } </code></pre> <p>This is the "inline error":</p> <pre><code>package org.jasypt.util.text does not exist </code></pre> <p><strong>If I tr to build my project, I got the following error:</strong></p> <pre><code>C:\Users\silvio\Documents\NetBeansProjects\LocusView\src\control\GerenciarConexao.java:6: error: package org.jasypt.util.text does not exist import org.jasypt.util.text.BasicTextEncryptor; C:\Users\silvio\Documents\NetBeansProjects\LocusView\src\control\GerenciarConexao.java:15: error: cannot find symbol BasicPasswordEncryptor passwordEncryptor = new BasicPasswordEncryptor(); symbol: class BasicPasswordEncryptor location: class GerenciarConexao C:\Users\silvio\Documents\NetBeansProjects\LocusView\src\control\GerenciarConexao.java:15: error: cannot find symbol BasicPasswordEncryptor passwordEncryptor = new BasicPasswordEncryptor(); symbol: class BasicPasswordEncryptor location: class GerenciarConexao 3 errors </code></pre> <p>About this import, I don't know why is this path, I just find a question about Jasypt in StackOverflow and copy/paste the import to my project - I didn't find a easy guide that tell me how to install/use the Jasypt. </p> <p>Thanks friends, waiting for answers - and sorry about my nonsense. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload