Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: embedding swing (java 1.4.1) applets using

by Cybercosis (Monk)
on Nov 26, 2002 at 01:22 UTC ( #215769=note: print w/replies, xml ) Need Help??

in reply to embedding swing (java 1.4.1) applets using

While I haven't done anything like this with swing, I have with AWT-using applets, but I don't think the difference matters. Check where in your path the .class files are, and their permissions. If either of those isn't just right, it'll croak. You'll also probably need... I think it's basecode or somesuch tags in the html you're outputting with CGI.


nemo accipere quod non merere

  • Comment on Re: embedding swing (java 1.4.1) applets using

Replies are listed 'Best First'.
Re: Re: embedding swing (java 1.4.1) applets using
by seaver (Pilgrim) on Nov 26, 2002 at 15:59 UTC
    Cybercosis, do you have an example of the cgi code that did the applet? cheers S
Re: Re: embedding swing (java 1.4.1) applets using
by seaver (Pilgrim) on Nov 26, 2002 at 19:28 UTC
    OK, the applet works fine in a static html page in apache, but NOT in cgi, the class file is IN cgi-bin, shoudl it be elsewhere? and it is executable... cheers
    #!/usr/local/perl -w use CGI qw/:standard/; print header; print start_html('Monster'); print '<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" w +idth="1000" height="700" codebase=" +n/1.2.2/,2,2,0"> <param name="java_code" value="Graphica.class"> <param name="type" value="application/x-java-applet;version=1.4"> <param name="file" value=""> <COMMENT> <embed type="application/x-java-applet;version=1.4" width="1000" h +eight="700" pluginspage="" java_c +ode="Graphica.class" file="" > <noembed> </COMMENT> </noembed></embed> </object>'; print end_html;

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://215769]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-11-29 03:55 GMT
Find Nodes?
    Voting Booth?