problem with finding imported classes
Hi all, I have my class that uses the library org.apache.commons.net.ftp.FTP;
so when I compile my class I use this command
javac MyClass.java -cp commons-net-2.2.jar
(the folder contains MyClass.java, commons-net-2.2.jar, index.html)
So I compile without errors..
but when I put the applet in index.html (<applet code="MyClass.class"></applet>)
and I try to run the applet I get this console error:
Code:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
why, I can I solve it?