answersLogoWhite

0


Best Answer

These directions were written with the assumption you are using TextPad 5:

First, you must download and install the JDK - probably the most recent one. You can download this at: http://java.sun.com/javase/downloads/?intcmp=1281

After you have successfully installed the JDK, in TextPad click on the Configure menu, and then Preferences.

From the preferences screen, click on the 'Tools' heading on the left.

In the tools section, click on the 'Add' button on the right, then on the 'Java SDK Commands' option, and finally on Ok.

Once you've done this, you are ready to compile and run java programs. To do this, once you've opened a .java file, click on tools, external tools, and compile java.

In order to run the application after you compile it, just go to tools, external tools, and run java application (or run java applet if it's an applet).

User Avatar

Wiki User

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

Wiki User

11y ago

That sounds like the name of an editor. Just go ahead and write your program in your favorite editor. To actually COMPILE the program, use the "javac" command in a command (or console) window.

However, it is much more convenient to do programming with an IDE.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

You don't. TextPad is a text editor - you use it to write the source code. Then you must separately invoke the Java Compiler; if your class file is called MyClass.java, use the following command on the command line:

javac MyClass

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compile program in java in scite editor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the command to compile a java program named Greetingsjava?

The command to compile a Java program is "javac", followed by the class name (file name).


What are the different phases of java?

Based on the lecture i have , there are three JAVA PHASES -- editor. First step in creating java program is by writing ur programms in a text editor. Ex, notepad, emacs etc -- java compiler. compile. The program by. Using the java compiler. The output of this process is a file of java bytecodes wid the file extension.class -- java interpreter. The .class file is then interpreted by java interpreter that converts the bytecodes into the machine language of the particular computer your using ---abioo4---


How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


What do you get when you compile a java program?

The java interpreter or JVM (Java Virtual Machine) is not able to execute the java source code for a program. The java source code first needs to be compiled into bytecode that can be processed by JVM. Producing bytecode make the program platform independent as each platform has its own JVM. It is also possible to directly write bytecode, bypassing the need to compile, but that would be tedious job and also not good for security purpose as the compiler checks for various errors in a program.


Once you have downloaded and installed the Java SE JDK Update 26 for Windows how do you open it-It shows up as a folder and it doesn't open java program when clicked on?

The Java Development Kit is not a program designed to be opened up and used, rather it is a folder of command line tools used to compile java programs. If you want to use a program to create/edit java code that automates the compiling process check out NetBeans or Eclipse. Also, if you are trying to open an already compiled java program with it, read the documentation that came with the java application on how to run it.

Related questions

How do you run and compile a java applet program?

One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.


What is the command to compile a java program named Greetingsjava?

The command to compile a Java program is "javac", followed by the class name (file name).


How do you make software from a simple java program?

You compile it.You compile it.You compile it.You compile it.


What are the different phases of java?

Based on the lecture i have , there are three JAVA PHASES -- editor. First step in creating java program is by writing ur programms in a text editor. Ex, notepad, emacs etc -- java compiler. compile. The program by. Using the java compiler. The output of this process is a file of java bytecodes wid the file extension.class -- java interpreter. The .class file is then interpreted by java interpreter that converts the bytecodes into the machine language of the particular computer your using ---abioo4---


How do you create and execute a java program?

You can create a Java program by writing it in any text editor - for example Notepad, or Notepad++. You can compile it with the "javac" command, and, if it compiles without errors, run it with the "java" command. Or better, simplify your life by installing an IDE (integrated development environment), such as Netbeans or Eclipse.


Why it is required to set path and classpath?

to compile and run java program you need to set path and classpath path refers to binary used to compile and run java program i.e. "javac" for compilation and "java" for execution


What is the command to compile jre6 program?

It is 'Java program' to be precise, and the command is: 'javac sourcefilename.java'


How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


What is Commands for the compiler that are needed to compile and run your program?

javac is the command that is used to compile Java source files.


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 do you write and execute java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


How do you write and execute the java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.