Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have uninstalled all the instances of java and now i am using an java applet in my application..

When i tried to access the webpage containing that applet from IE9 it ask me to install Java..

When i tried to install java from IE9 i found the following warning and then java couldnt install..

Warning: Error

Please help me out..

Thanks
Posted
Comments
Ravi Tuvar 2-Nov-12 2:35am    
if i access the page on firefox it installs successfully but not on IE9

Java is an independent Software that provides a runtime environment for Java applications. To install Java, visit [Java Downloads Page] and download the most appropriate JRE for your Operating System. Select the windows offline version and follow instructions on how to install. If after installing you experience the same problems with IE, then know that it's IE that has the problem and not your computer

Regards,
Pat
 
Share this answer
 
Comments
Ravi Tuvar 2-Nov-12 4:37am    
Hi Pat,
Thanks for your solution.
But when i install it using Firefox and then reload the page in IE9 then it works fine..but i want to give facility to download and install using IE9 to clients...
so in this scenario what should i do?
Patrick Wanjau 2-Nov-12 4:49am    
If you download and install the offline version, it is independent of the chosen browser. When you click download and save the file to a download location, once your download completes, you open the download location and run the application. The application will have no issues. However, if it still has issues, you can right click the application and change its compatibility to Win XP. I have never experienced this problem myself, but if the problem persists, you can always update your computer and run the most recent version. That way it will ensure all your files are upto date, and not broken
You need to add a small code to your HTML-Page containing the applet.
Because the applet will not run when Java is not installed - so you need to do it in a more "native" way.

So add the following to your HTML code (inside the body):

<script type="text/javascript">
if(navigator.javaEnabled()){
document.write('Java is enabled'); <!-- add the applet in here -->
}
else {
document.write('Java is not enabled'); <!-- tell the user that it will not work -->
}
</script>


You can also test and develop it first without the applet.
That value in document.write(value) can be extended and carry pretty much from a simple String, an image reference up to a applet with params...

Have fun!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900