• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet problems

 
Leonid Kizelshteyn
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, All,
I�m trying to write my first Java program, which should print something to the local printer. The code works as an application. Then I�ve tried to convert it into applet. When I tried to run this applet from the browser, I got many errors describing that some standard Java classes couldn�t be found.
I�m using only local computer.
JDK is Java 2 SDK Standard Edition v1.3.1_01 downloaded from Sun and located in D:/Java folder.
Plug-In for IE5.5 is also v1.3.1_01
All source code modules are in D:/Java Projects/Tutorial folder along with HTML file to start the applet.
If applet doesn�t implements Printable interface, everything is OK. As soon as interface gets included in a code, all h_ll brakes loose. I already know how to deal with security issues, this is not the case. On Java console I can see that the system looks in some place like
<current folder>/java/awt/print/Printable.class
How can I get system classes and where are they? (If this is necessary)
What should be included in applet code to tell client where to get all thise system classes? Is it any way to tell compiler to include them in a result class? (Statements like import java� are at the beginning of the source code)
Thanks for your help
Leo.
 
Leonid Kizelshteyn
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If somebody is still interested...
After downloading HTMLConverter from java.sun.com, all problems disappear. What did they do to the VM?

------------------
LeoKiz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic