<div dir="ltr">The wordlist.properties somehow isn't making it into the wordlists.jar archive.  Which I thought it was.  Yet somehow it's still working in the jsonService.  Still looking...</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 2:03 PM, Cam Morris <span dir="ltr"><<a href="mailto:cam.morris@owasp.org" target="_blank">cam.morris@owasp.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I created a new passfault project via gradle and I'm getting the same problem.  I wonder if I broke TestAnalysis and didn't realize it.  I'm working on a better answer for you.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 12:41 PM, Bernardo Araujo Rodrigues <span dir="ltr"><<a href="mailto:bernardo@posgrad.ufg.br" target="_blank">bernardo@posgrad.ufg.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My project is named passfaultJava. Could that be an issue?<br>
<br>
Attached another screenshot.<br>
The only classpath that IntelliJ kind of accepts (and doesnt show the<br>
warning) is core_main.<br>
<br>
If I try to run it it core_main as classpath I get this error:<br>
<br>
/usr/lib/jvm/java-8-oracle/bin<wbr>/java -Didea.launcher.port=7533<br>
-Didea.launcher.bin.path=/opt/<wbr>idea-IC-162.1628.40/bin<br>
-Dfile.encoding=UTF-8 -classpath<br>
/usr/lib/jvm/java-8-oracle/jre<wbr>/lib/charsets.jar:/usr/lib/jvm<wbr>/java-8-oracle/jre/lib/deploy.<wbr>jar:/usr/lib/jvm/java-8-<wbr>oracle/jre/lib/ext/cldrdata.ja<wbr>r:/usr/lib/jvm/java-8-oracle/<wbr>jre/lib/ext/dnsns.jar:/usr/<wbr>lib/jvm/java-8-oracle/jre/lib/<wbr>ext/jaccess.jar:/usr/lib/jvm/<wbr>java-8-oracle/jre/lib/ext/jfxr<wbr>t.jar:/usr/lib/jvm/java-8-orac<wbr>le/jre/lib/ext/localedata.jar:<wbr>/usr/lib/jvm/java-8-oracle/<wbr>jre/lib/ext/nashorn.jar:/usr/<wbr>lib/jvm/java-8-oracle/jre/lib/<wbr>ext/sunec.jar:/usr/lib/jvm/<wbr>java-8-oracle/jre/lib/ext/<wbr>sunjce_provider.jar:/usr/lib/<wbr>jvm/java-8-oracle/jre/lib/ext/<wbr>sunpkcs11.jar:/usr/lib/jvm/<wbr>java-8-oracle/jre/lib/ext/<wbr>zipfs.jar:/usr/lib/jvm/java-8-<wbr>oracle/jre/lib/javaws.jar:/<wbr>usr/lib/jvm/java-8-oracle/jre/<wbr>lib/jce.jar:/usr/lib/jvm/java-<wbr>8-oracle/jre/lib/jfr.jar:/usr/<wbr>lib/jvm/java-8-oracle/jre/lib/<wbr>jfxswt.jar:/usr/lib/jvm/java-<wbr>8-oracle/jre/lib/jsse.jar:/<wbr>usr/lib/jvm/java-8-oracle/jre/<wbr>lib/management-agent.jar:/usr/<wbr>lib/jvm/java-8-oracle/jre/lib/<wbr>plugin.jar:/usr/lib/jvm/java-8<wbr>-oracle/jre/lib/resources.jar:<wbr>/usr/li<br>
 b/jvm/java-8-oracle/jre/lib/r<wbr>t.jar:/home/bernardo/Documents<wbr>/MestradoCripto/passfault/<wbr>passfaultJava/core/build/<wbr>classes/main:/opt/idea-IC-162.<wbr>1628.40/lib/idea_rt.jar<br>
com.intellij.rt.execution.appl<wbr>ication.AppMain<br>
org.owasp.passfault.TextAnalys<wbr>is<br>
Exception in thread "main" java.io.IOException: could not load resource<br>
/org/owasp/passfault/wordlists<wbr>/words.properties<br>
        at<br>
org.owasp.passfault.FinderByPr<wbr>opsBuilder$SystemResourceReade<wbr>r.loadResource(FinderByPropsBu<wbr>ilder.java:234)<br>
        at<br>
org.owasp.passfault.FinderByPr<wbr>opsBuilder.build(FinderByProps<wbr>Builder.java:100)<br>
        at org.owasp.passfault.TextAnalys<wbr>is.<init>(TextAnalysis.java:<wbr>45)<br>
        at org.owasp.passfault.TextAnalys<wbr>is.main(TextAnalysis.java:35)<br>
        at sun.reflect.NativeMethodAccess<wbr>orImpl.invoke0(Native Method)<br>
        at<br>
sun.reflect.NativeMethodAccess<wbr>orImpl.invoke(NativeMethodAcce<wbr>ssorImpl.java:62)<br>
        at<br>
sun.reflect.DelegatingMethodAc<wbr>cessorImpl.invoke(DelegatingMe<wbr>thodAccessorImpl.java:43)<br>
        at java.lang.reflect.Method.invok<wbr>e(Method.java:498)<br>
        at com.intellij.rt.execution.appl<wbr>ication.AppMain.main(AppMain.<wbr>java:147)<br>
<span><br>
Process finished with exit code 1<br>
<br>
<br>
<br>
</span><div><div>> I'm guessing it is the setting of "Use classpath of Module: " needs to be<br>
> changed from "wordlist_test" to "core".  Is the whole intellij project<br>
> named 'wordlist_test'?<br>
><br>
> On Mon, Aug 29, 2016 at 11:23 AM, Bernardo Araujo Rodrigues <<br>
> <a href="mailto:bernardo@posgrad.ufg.br" target="_blank">bernardo@posgrad.ufg.br</a>> wrote:<br>
><br>
>> Hey Cam, could you please help me with something?<br>
>> My Java skills are a bit rusty.<br>
>> I'm trying to import the project into IntelliJ, so I can play with the<br>
>> code.<br>
>><br>
>> I used IntelliJ's gradle import function (had a few problems but<br>
>> deleting<br>
>> appEngine and jsonService folders solved the issue).<br>
>><br>
>> Now I'm doing the Run/Debug configs (see attached screenshot).<br>
>><br>
>> - Set Main Class to org.owasp.passfault.TextAnalys<wbr>is<br>
>> - Set classpath to wordlists (just like in /core/build/install/core/bin/<br>
>> core)<br>
>><br>
>> The thing is IntelliJ warns me: "Class<br>
>> 'org.owasp.passfault.TextAnaly<wbr>sis'<br>
>> not found in module 'wordlists'.<br>
>><br>
>> If I ignore the warning and try to Run the code, I get this:<br>
>><br>
>> Exception in thread "main" java.lang.ClassNotFoundExcepti<wbr>on:<br>
>> org.owasp.passfault.TextAnalys<wbr>is<br>
>>         at java.net.URLClassLoader.findCl<wbr>ass(URLClassLoader.java:381)<br>
>>         at java.lang.ClassLoader.loadClas<wbr>s(ClassLoader.java:424)<br>
>>         at sun.misc.Launcher$AppClassLoad<wbr>er.loadClass(Launcher.java:<wbr>331)<br>
>>         at java.lang.ClassLoader.loadClas<wbr>s(ClassLoader.java:357)<br>
>>         at java.lang.Class.forName0(Nativ<wbr>e Method)<br>
>>         at java.lang.Class.forName(Class.<wbr>java:264)<br>
>>         at com.intellij.rt.execution.appl<wbr>ication.AppMain.main(<br>
>> AppMain.java:123)<br>
>><br>
>> Process finished with exit code 1<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Passfault mailing list<br>
>> <a href="mailto:Passfault@lists.owasp.org" target="_blank">Passfault@lists.owasp.org</a><br>
>> <a href="https://lists.owasp.org/mailman/listinfo/passfault" rel="noreferrer" target="_blank">https://lists.owasp.org/mailma<wbr>n/listinfo/passfault</a><br>
>><br>
>><br>
><br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
<br>
Webmail de Alunos - UFG</font></span><br>______________________________<wbr>_________________<br>
Passfault mailing list<br>
<a href="mailto:Passfault@lists.owasp.org" target="_blank">Passfault@lists.owasp.org</a><br>
<a href="https://lists.owasp.org/mailman/listinfo/passfault" rel="noreferrer" target="_blank">https://lists.owasp.org/mailma<wbr>n/listinfo/passfault</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>