answersLogoWhite

0

Alright, just answered my own question. The steps, are a bit, complicated, so stick with me.

1) Open up eclipse, and click File>New>Project

2) In the window, select the 'Java Project' option under the 'java' folder

3) Give the project a name. Keep in mind that this will be a folder name, not a file name. I recommend for starters to name the folder "Java Test"

4) Uncheck the box that says Use Default Location, and change the location given to the location of the folder you will files in.*

5)Click Finish. You now have a new project.

6) Click File>New>Untitled Text Document

7) Make your program. (If you need a simple file, Google hello world java)

8) Click File>Save as and save it as a .java file. This means give it a name, and slap a .java on the end

9) Click Project>Clean and check the project whose files you want compiled

10) Click OK

11) The changes will not show up in eclipse, but open up the folder outside of java, and you will see the compiled class files

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is classpath and path in java?

if you are using the IDE then there is no need to set class path, ant you are using Command prompt to run the java program then you need to set the class path where the class (which is going to be used in your program) is actually located,use the following command:set calsspath=%classpath%;actual_path_of the class;we cancall more than two class by using this command by using separator (,)


Can you print string without using semi column in printf statement in c programming?

If you forget the semicolon, your program won't compile.


A c program to manage a bank system using inheritance and not using the concept of file handling?

using with files


How do you implement calculator in lex and yacc?

Create lex.l create yacc.y Compile using following: cc lex.yy.c yy.tab.c -ll -lm


Will JVM execute static methods by default like static variables in java?

No. Static methods are invoked by using the name of the class instead of the name of an instance of a class. Example: public class Test { public static void methodA { // do something ... } public void methodB { // do something else ... } } A program could use methodA by simply calling it using the class name: // call the static method Test.methodA(); To use methodB(), a program would have to first create an instance of the class then call the method: // call the non-static method Test t = new Test(); t.methodB(); Note that you can call methodA from the instance: // call the static method Test t = new Test(); t.methodA(); However, this is considered bad practice. And you cannot call methodB at all using the class name: // can't do this - compile error Test.methodB();

Related Questions

How do you compile java servlet?

The Java Servlet is like every other Java class. You can compile it using the javac command or if you are using a Integrated Development Environment (IDE) like Eclipse, it will compile the class for you. One main difference w.r.t Servlets is the fact that, they get deployed into EAR files (Enterprise Archive Files) and not JAR files (Java Archive Files) like normal java apps.


What is classpath and path in java?

if you are using the IDE then there is no need to set class path, ant you are using Command prompt to run the java program then you need to set the class path where the class (which is going to be used in your program) is actually located,use the following command:set calsspath=%classpath%;actual_path_of the class;we cancall more than two class by using this command by using separator (,)


How do you compile servlet in java using tomcat?

Tomcat is a server. It is used to deploy and run Servlets and not compile them. A Servlet is a java file and has to be compiled just like any other Java Class.


What Do you Open your java File With?

.java files can be opened using an IDE (like Eclipse or NetBeans) or with notepad.exe.


What is a sentence using the word compile?

Right now, I am trying to compile a travelogue.


How do you compile and run with the file name provided file name and class name are different?

That would depend on the language and development system you are using, which you did not identify.


How do you compile a java program when it is in another directory?

using javac command and mentioning fully classified class name. Fully classified here means class name along with the package hierarchy in which the class is stored in .java file


How do you compile java programs using windows vista text pad?

How can I compile java programs using windows vista text pad?


How can you become a good java programmer. Using Eclipse or even BlueJ?

It is suggested to take college courses in Java to become a good Java programmer using the programs Eclipse or BlueJ. These courses can be found in-class, or online.


You couldn't compile the java program using packages whenever you used to compile that program it shows some error message like javac not recognised as an external comamnd eventhough you set the class?

"javac not recognised as an external command"Have you ever heard of PATH? If not, ask for a programmer's help.


Disadvantages of using the internet to compile a business plan?

thevidiya......


How do you convert RAR files into DLL files?

To convert RAR files into DLL files, you first need to extract the contents of the RAR file using extraction software like WinRAR or 7-Zip. Once extracted, check if the contents include a source code or necessary files for a DLL. If applicable, compile the source code using a programming language like C# or C++ to create the DLL. If the RAR file contains a precompiled DLL, simply rename the extracted file with a .dll extension, ensuring it corresponds to the intended use.