Programming & Design
Question:
Java Applet In HTML Help?
Will M
2010-03-12 19:41:42 UTC
How can you get an applet to work on computers without a JRE. I am new to java programming, about 6 months, and in the last few weeks I have been trying graphics. I developed a simple method and posted it on line using "
" It works great on my computer, but on any computer I tried without JRE downloaded it doesn't work. This seems strange to be the norm, because most non-programmers wont have a JRE installed on their computers. Any one know what I'm doing wrong?
Three answers:
Bob
2010-03-15 17:54:05 UTC
Your wrong, most people have the JRE on their computer whether they know it or not. Java is used everywhere. The reason people need the JRE is so that it can be run on multiple platforms (Linux, Mac, Windows, BSD, etc). When compiling and running a java program it is converted into bytecode which is a language in which the JVM reads.. in the JRE and JDK. The difference that you might not be aware of is that you use the JDK (Java Development Kit) to compile programs into bytecode then run it with the JVM (Java Virtual Machine). Users that don't program most likely got their copy from http://www.java.com which is the JRE (Java Runtime Enviroment). The JDK is basically the JRE with more for programmers.
Silent
2010-03-12 19:56:30 UTC
You can't. You need a JRE installed on your computer to run a Java applet or application. That's how Java works. Java code runs in a virtual machine; if there's no Java virtual machine installed, you can't run the code.
Many non-programmers have a JRE installed on their computers. There is a difference between a JRE and the JDK, which is what programmers would have installed.
?
2016-10-05 01:12:44 UTC
You upload the .jar (or the .class record) and the html web site to your folder hosted on the ISP. The html seems something like: html head d5d3db1765287eef77d7927cc956f5aBar Chart (a million.a million)identify head physique 346b81a32e707eccadf60252bb599f0Bar Chart (a million.a million)h1 hr
alt="Your browser is conscious the APPLET tag yet isn't working the applet, for some reason." Your browser is thoroughly ignoring the APPLET tag! /applet hr physique html Your travelers will want the java plug-in put in and enabled. complicated applets take time to acquire and init.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...