HTML - Trouble Embedding Java Applet
Hey guys, I recently wrote my first java applet, and I've been trying to put it up on my website. I created a .jar file with the applet and the two extra classes it needed to run (a concrete class and an interface).
I first embedded it using <applet> tags, and it seemed to work nicely. I ran it on my computer on Chrome, Firefox, and IE with no problems. But so far it hasn't worked on any other computer, and I've tried five different computers, and three different browsers (Chrome, Firefox, Opera). I realized it may have been due to the fact that <applet> tags have been depreciated, so I tried to make another one using <object> tags, which failed to work at all. I'm pretty confused, so any help would be appreciated! Here is the first version(using <applet> tags): (deleted) And the second version (using <object> tags): http://artymowicz.atwebpages.com/projects/gravity.html Similar TutorialsFirst of all sorry, but couldn't figure out where to put this :s anyway, I'm wondering what would be a good program to write Java applet's with for a website. I'm planning on making my own Java irc (applet) so that it will blend in nicely with the rest of the website style, and as such doesn't clash with it so any good programs, tutorials would be welcome The following webpage uses an a href to turn the chunk of java code into a link to the bottom of the page, while this works in Safari it doesn ot in FireFox v2/3 (I have not got IE, can somebody confirm). How can I make the java applet link work under FF? http://lovelago.googlepages.com/java_button_2.html Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><!-- charset must remain utf-8 to be handled properly by Processing --> <meta http-equiv="content-type" content="text/html; charset=utf-8"><title>java_button_eg : Built with Processing</title> <style type="text/css"> /* <![CDATA[ */ body { margin: 60px 0px 0px 55px; font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px; background-color: #ddddcc; text-decoration: none; font-weight: normal; line-height: normal; } a { color: #3399cc; } a:link { color: #3399cc; text-decoration: underline; } a:visited { color: #3399cc; text-decoration: underline; } a:active { color: #3399cc; text-decoration: underline; } a:hover { color: #3399cc; text-decoration: underline; } /* ]]> */ </style></head><body> <a href="#Bottom"> <div id="content"> <div id="java_button_eg_container"> <!--[if !IE]> --> <object classid="java:java_button_eg.class" type="application/x-java-applet" archive="java_button_eg.jar" standby="Loading Processing software..." height="100" width="100"> <param name="archive" value="java_button_eg.jar"> <param name="mayscript" value="true"> <param name="scriptable" value="true"> <param name="image" value="loading.gif"> <param name="boxmessage" value="Loading Processing software..."> <param name="boxbgcolor" value="#FFFFFF"> <param name="test_string" value="outer"> <!--<![endif]--> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_15-windows-i586.cab" standby="Loading Processing software..." height="100" width="100"> <param name="code" value="java_button_eg"> <param name="archive" value="java_button_eg.jar"> <param name="mayscript" value="true"> <param name="scriptable" value="true"> <param name="image" value="loading.gif"> <param name="boxmessage" value="Loading Processing software..."> <param name="boxbgcolor" value="#FFFFFF"> <param name="test_string" value="inner"> <p> <strong> This browser does not have a Java Plug-in. <br> <a href="http://java.sun.com/products/plugin/downloads/index.html" title="Download Java Plug-in"> Get the latest Java Plug-in here. </a> </strong> </p> </object></a> <!--[if !IE]> --> </object> <!--<![endif]--> </div> <p> </p> <p> Source code: <a href="http://lovelago.googlepages.com/java_button_eg.pde">java_button_eg</a> </p> <p> Built with <a href="http://processing.org/" title="Processing.org">Processing</a> </p> </div> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a name="Bottom">Bottom</a> </body></html> I am attempting to embed my Imeem playlist. I checked the "autoplay" box before embedding. Everything works out, but it does NOT autoplay. Any help/suggestions is/are appreciated. I can supply you with whatever info you need to help me. Thanks!! Hello I would like to show my friends some java applet that I have made, so I decide to make a tiny html file showing it. However, I always get: Error. Click here for details. The html file and the java class file are in the same map. This is the html file: HTML Code: <Html> <Head> <Title>Java Example</Title> </Head> <Body> Hello<br> <br> <Applet Code="Test.class" width=200 Height=100> </Applet> </Body> </Html> And the java code, just an example. Code: import java.applet.*; import java.awt.*; public class Test extends Applet { public void paint(Graphics g) { g.drawString("Test :o",40,40); } } Hi, I have searched high and low, maybe I'm looking for the wrong information. What I want to do is align a scrolling Javascript applet to the right of my logo on my page. If I use right align it will align to the far right of the page, I have looked up using different divs to no avail. The current code I have is Code: <body> <p><img src="avid logo copy.png" width="900" height="167" border="0" align="left" usemap="#Map" /> <map name="Map" id="Map"><area shape="rect" coords="311,116,379,148" href="avid.php" target="_self" alt="Home Page" /> <area shape="rect" coords="397,117,483,147" href="gallery.php" target="_self" alt="Gallery" /> <area shape="rect" coords="502,116,638,145" href="promotions.php" target="_self" /> <area shape="rect" coords="654,116,737,144" href="profile.php" target="_self" /> <area shape="rect" coords="760,117,885,145" href="contact.php" target="_self" /> </map></p> <script type="text/javascript" src="js/scroller.js"></script> <div align="left"> <p> </p> </div> I'm wondering if I need to add a table of somesort but have never intergrated javascript in webpages before. Any advice would be great, I am more than happy to read an appropriate tutorial as opposed to asking to someone to fix it for me. That way I am actually learning instead of someone else doing it for me. If someone does know how to do it, if you could supply a brief description of the reasoning for particular code that would be a great help to me. Thanks, sLaeYa edit: website is www.avid-effects.com/test/avid.php Hello. I have a question. In order to put an applet in my web page, I have to link to my applet. This works great for normal people viewing my page, and they can use my applet just fine. However, I don't like the idea of people being able to look at the source code, get the link to the applet location, enter it into their browser, and then download my jar file because then they can hack into the jar, decompile, and steal my code (not that it is worth stealing, but still). How can I keep people from being able to download my jar file? My guess is to have the applet some kind of folder options that only allow web-server be able to access it if that is possible. I tried messing with the folder security settings but either the jar was still able to downloaded by entering the link in the browser, or the jar file wasn't able to be read by the web-server. Please help me out. Thank you. I've got an applet with some features, one of which a background image. It's actual size is 10.60 inches wide by 5.30 inches of height. Using WIDTH="744" and HEIGHT="600" (as shown on the code below) does not display the entire image. Can someone tell me the right setting of values to fix it? Is there a code to authomatically capture whatever the size of the .jpg and make it fit? Thanks in advance. Here's the html: <p align="center" <APPLET code=string WIDTH="744" HEIGHT="600"> <param name="para_back" value="background.jpg"> </APPLET> </p> I have the following in an XHTML (.gsp, similar to .jsp) file that is intended to display the JMOL applet, but it isn't working. The 'jmol' directory is in the same directory as the XHTML file. Jmol.js is in that 'jmol' directory. I have a PDB file to display also inside the 'jmol' directory. Code: <head> <script type="text/javascript" src="./jmol/Jmol.js"></script> </head> ... <body> <script type="text/javascript"> jmolInitialize("./jmol"); jmolApplet(400, "load ./jmol/input_str.tinker.pdb;"); </script> </body> Thoughts? Looking for a simple Java applet that will search filenames from an entered keyword and display matching files for download. All that I can seem to find will search the contents of a file (html/txt) and display results. I'm looking to search through PDF filenames and display results. tnx hi everybody, i want inter communication among frames ne frame containing applet and another frame containing list of experiment. first frame which have a java applet contains a breadboard having load button,by clicking it a circuit will be drawn by taking information from a file. i want dat i have no. of files as no. of experiment,once user click on a experiment corresponding file should be selected(marked) and after pressing the load button that circuit shoud be drawn on the bread board. one experiment code is like this but it is not working <a href="/rlabs/home/HTML/invertingAmpPictures.html" target="frame3" onClick="document.parent.frame1.breadboardApplet.setFileToLoad('invertingAmp')">Inverting amplifier How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? Commercial Removals || Removals and Storage||Specialist Removals How would I get a text that looks faded. I don't want the text fade in and out, I just want the font to look kinda old. Does anyone know where I can either find it or give me the name of the tag Also, how would I embed music from Itunes, I'm having trouble with that. Does anyone know the best practice for creating/embedding a video (3gpp/3gpp2/mp4) in html? Thanks in advance, James Hello, I'm creating a site that requires the inbuilt audio player to keep streaming music between page loads. What coding options are available for this, HTML, PHP or otherwise? Regards Eddie Okay, this one is a tough one for me. On my website, Celtics Insider, where the picture of the banners are (right above the "About Us" and "Our History" sections), I want to change that image into a video. I want to have a video like ESPN, where it doesn't say "YouTube" or show any of that crap, just a little transparent "play" button (the image, not the text). I'm just wondering a few things. First off, how do I resize the video so it is 442 x 200? Also, how do I make it so the YouTube thing doesn't show up? And how do I make a little transparent play button to click on before the video starts? I want to be able to have text below as well with a link to the story, like ESPN does. If you don't know what I mean, look at ESPN: http://espn.go.com/ When I embed a YouTube video in my webpage, it is left-justified. What HTML tweak do I need to center this puppy? The standard code is: <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/NA0iGQCd4TM"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/NA0iGQCd4TM" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> Thanks in advance for the help. hello im building a website for my accociate. i built a layout with tables and all that stuff. i am tryin to insert a flash document in a table. whenver i go to test it iin ie7 its stops the flash movie from opening and says Warning this site includes active x click here for more options and then you click on it and click allow. how do i get around this as i need the flash doc to open imedietly upon going to the site thanks augie Hi all, I have a problem that i hope someone can help me with. I am trying to embed images into an html file but they only appear in Firefox, when i try to preview the file in IE i get the text instead Here is the code that i am using Code: <OBJECT data="header_small.gif" type="image/gif">This is the hospital name</object> I have read that IE has problems with embedded images, is there a way to make it show them? Thanks in advance Hi, I'm new here. I'm also a beginner web programmer so please take it easy on me. I've taken on a job where I need to embed a video into a webpage, I think I can figure out how to do that however my employer wants this video to be slanted. I have no idea how I would slant the video using HTML/CSS/DHTML. For an example of what I am talking about please view this website: http://www.wavecam.com/ I am aware that the video on that site was embedded into Flash so I'm wondering if that is the only way to do this. Thanks in advance for any help provided. This is my first attempt at putting a .avi video on a webpage. Right now, here's my code: <embed src="name.avi"></embed> Internet Explorer will load up a video player, but then the whole page will freeze. The file's 12.9 mb and is being ran on my computer, so it shouldn't be a size issue. To run the video originally, I had to download this codec: http://www.techsmith.com/download/codecs.asp Any ideas? |