answersLogoWhite

0


Best Answer

http://powderurmonkey.com/forums/showthread.php?p=3#post3

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

to be more specific I am looking to insert some java code into an HTML webpage that I am creating. Is it possible to do it without applet formatting? If so how?

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you run java source code on a website?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How is decoupling achieved in Java programs?

Decoupling is achieved in Java programs through the parser code. To debug the decoupling achieved in Java, run the source code over the parser code first.


What is a Java Drive-By?

AnswerA Java Drive-By is a Java Applet that is coded in Java and is put on a website. Once you click "Run" on the pop-up, it will download a program off the internet. This program can be a virus or even a simple downloader. If you'd like to get the source code or wanna know more information about a Java Drive-By, use Google.


Why the java hybrid language?

I am not sure why you label it "hybrid". Java compiles the source code, not for a specific processor, but for what you might consider a fictitious processor. That is, it doesn't compile for the specific machine code understood by a real processor.As for the reason, that's because that's what Java is all about. Java programs are supposed to be compiled only once, and then run on any computer that has an appropriate Java runtime (the "Java Virtual Machine").


What is the input and output to a Java interpreter?

The input is source code (MyClass.java) and the output is bytecode (MyClass.class).Generally, Java compilers receive as input .java source code files, and output .class binary files which are then executed by the Java Virtual Machine (JVM) executable.Some Java compilers output binaries in machine code that can be directly executed.The input is a source file with the java extension. (i.e. HelloWorld.java) The output is the byte code file with the class extension. (i.e. HelloWorld.class)Input:1. Most compilers take as input the source program which is in a particular programming language.2. Compilation Switches ( special arguments that tell the nature of compilation and structure of target code).3. Supporting Files (Library Files) such files help in the execution and translation of a programOutput:1. Program List file.2. Target Code. Target code is the equivalent of the source code but in another language


Is Java is platform dependent or independent?

Java is not machine dependent. High-level Java source code is compiled against the JVM which produces Java byte code, the lower-level native language of the JVM. At runtime, the JVM interprets the byte code to produce the required machine-dependent code. Every platform that supports Java has its own JVM, thus the same byte code can execute upon any supported platform. The translation from byte code to machine-dependent code is handled solely by the platform JVM.

Related questions

How is decoupling achieved in Java programs?

Decoupling is achieved in Java programs through the parser code. To debug the decoupling achieved in Java, run the source code over the parser code first.


Difference between a java complier and the Java JIT?

A java compiler takes Java source code and turns it into Java bytecode, which can then be run by the java virtual machine.Using JIT means that the java code will be compiled and executed at the time that you run the program, which will slow down the program because it has to compile the code at the same time that it runs.


What is JAVA drive by?

AnswerA Java Drive-By is a Java Applet that is coded in Java and is put on a website. Once you click "Run" on the pop-up, it will download a program off the internet. This program can be a virus or even a simple downloader. If you'd like to get the source code or wanna know more information about a Java Drive-By, use Google.


What is a Java Drive-By?

AnswerA Java Drive-By is a Java Applet that is coded in Java and is put on a website. Once you click "Run" on the pop-up, it will download a program off the internet. This program can be a virus or even a simple downloader. If you'd like to get the source code or wanna know more information about a Java Drive-By, use Google.


What is a Java Drive By?

AnswerA Java Drive-By is a Java Applet that is coded in Java and is put on a website. Once you click "Run" on the pop-up, it will download a program off the internet. This program can be a virus or even a simple downloader. If you'd like to get the source code or wanna know more information about a Java Drive-By, use Google.


If JVM is available on Windows then can you run a program written in Unix?

Yes. One of the fundamental principles of Java is "write once, run anywhere." This means that Java source code can run on any platform for which a JVM exists, regardless of where the original code was developed.


Why the java hybrid language?

I am not sure why you label it "hybrid". Java compiles the source code, not for a specific processor, but for what you might consider a fictitious processor. That is, it doesn't compile for the specific machine code understood by a real processor.As for the reason, that's because that's what Java is all about. Java programs are supposed to be compiled only once, and then run on any computer that has an appropriate Java runtime (the "Java Virtual Machine").


What are tools or software that are needed to editcompile and run to java?

To edit Java source code you can use any text editor. In order to compile a Java source file to Java bytecode you need the Java Development Kit (JDK). The program which does this is called "javac" and can produce .class files which can be used by the Java Runtime Environment (JRE) to execute.


How is it possible that the same Java program can run on different platforms?

Java source code is compiled into .class files, which are used by the Java Virtual Machine (JVM). The format of the .class file is the same for all platforms, and so the source code can be compiled the same way on each platform. The JVM, however, needs to be written to run on a specific platform. This is the part which converts Java bytecode to native bytecode, and is why you need to download the JRE (which contains the JVM) for a specific platform. Java source code is compiled into .class files, which are used by the Java Virtual Machine (JVM). The format of the .class file is the same for all platforms, and so the source code can be compiled the same way on each platform. The JVM, however, needs to be written to run on a specific platform. This is the part which converts Java bytecode to native bytecode, and is why you need to download the JRE (which contains the JVM) for a specific platform.


What is the input and output to a Java interpreter?

The input is source code (MyClass.java) and the output is bytecode (MyClass.class).Generally, Java compilers receive as input .java source code files, and output .class binary files which are then executed by the Java Virtual Machine (JVM) executable.Some Java compilers output binaries in machine code that can be directly executed.The input is a source file with the java extension. (i.e. HelloWorld.java) The output is the byte code file with the class extension. (i.e. HelloWorld.class)Input:1. Most compilers take as input the source program which is in a particular programming language.2. Compilation Switches ( special arguments that tell the nature of compilation and structure of target code).3. Supporting Files (Library Files) such files help in the execution and translation of a programOutput:1. Program List file.2. Target Code. Target code is the equivalent of the source code but in another language


Is Java is platform dependent or independent?

Java is not machine dependent. High-level Java source code is compiled against the JVM which produces Java byte code, the lower-level native language of the JVM. At runtime, the JVM interprets the byte code to produce the required machine-dependent code. Every platform that supports Java has its own JVM, thus the same byte code can execute upon any supported platform. The translation from byte code to machine-dependent code is handled solely by the platform JVM.


Is the JRE platform dependent?

True. Java source code is called "platform independent" because it runs on top of the Java Runtime Environment (JRE). In order for this to work, a special JRE must be created for the platform you want to run a Java program on.