aspose file tools*
The moose likes Applets and the fly likes Applet jar file,use of archive in applet help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet jar file,use of archive in applet help " Watch "Applet jar file,use of archive in applet help " New topic
Author

Applet jar file,use of archive in applet help

supriya riya
Ranch Hand

Joined: Feb 23, 2009
Posts: 41
hi,I have jar file of my application.I am creating index.html in myftp folder and code as below.myftp has jftp jar file.

index.html



main class of jftp is JFtp which is in the jar itself

on opening index.html getting error applet not inited.

myftp folder has only jar file named jftp and index.html

on extracting jarfile i have many packages which have class files need.
Please help.
Why my applet is not running.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
Remove the "codebase" attribute. You can't use absolute paths like "D:\..." anyway, but you don't need it if HTML file and jar file are in the same directory. You do not need to (and should not) extract the jar file.


Ping & DNS - my free Android networking tools app
supriya riya
Ranch Hand

Joined: Feb 23, 2009
Posts: 41
thanks it solved my problem,but when i gave the package names,which i should have remembered to give.And in IDE netbeans its the JFtp class as main class extends Jframe.But it was not working.When i used JFtpApplet it woked.



JFtpApplet class.




So can anyone help me with this i dint get why with JFtp in code field it wasnt running.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
I'm not sure what you're asking - the "code" attribute must contain the fully-qualified name of the class. So if you leave out the package name it won't work.
supriya riya
Ranch Hand

Joined: Feb 23, 2009
Posts: 41
I just jumbled my words and got confused.I got it.....
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet jar file,use of archive in applet help