answersLogoWhite

0

How do you run Java in Windows?

Updated: 10/3/2023
User Avatar

Wiki User

11y ago

Best Answer

Eclipse is an Integrated Development Environment that can be used to create and run java programs.

a. First we need to download the Eclipse IDE from eclipse's website.

b. Then you need to install the IDE and create a shortcut on your desktop.

c. Click on the shortcut icon in desktop

d. The system will ask you to choose a workspace location. Choose a location in your local pc

e. Eclipse opens default package explorer view. Create a java project

f. Right click on the project and create a new java class

g. Write your code inside the java class

h. Click on the Menu item called "Run" and select "Run As" -> Java Application

i. If your java program has a main method, the Run As - > Java Application will execute your program.

User Avatar

Wiki User

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

Wiki User

11y ago

You run a Java application on the Windows operating system much like you would on Unix or a Mac environment. You need the Java Runtime Environment or JRE installed. If JRE is enabled in the web browser then Java-enabled web pages will execute. Also, you can invoke the Java executable on target class with main method or JAR file like this:

> java -classpath classpath MyClass

> java -jar MyJar.jar

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you run Java in Windows?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why cant you run java on Windows 8?

You may have to install Java runtime support.


Why does YouTube NOT run on Windows 98?

You can download patches and Java and it should work. Update windows.


Why java is preferred to dot net?

Java can run on any operation system(platform independent) but .net runs only under windows.


If you make a program on Java Developer Kit for Windows X64 will the program run on 32 bit computers?

Of course. One of the beauties of Java is that as long as a Java Virtual Machine has been written for a certain platform, any Java code written on any other platform can run on the new one. (And yes, a JVM exists for both x86 and x64 Windows).


How the do you get Minecraft for anything other than Microsoft?

It is a Java application so doesn't have to run on Windows.


Is platform independent feature means java can be run on windows XP and windows 7 but c or c plus plus does not?

No. The term platform independence in Java does not mean that any other programming language cannot be run in multiple OS platforms. Actually platform independence means that the java code can be run in multiple platforms with little or no customization. The code that can execute in a Windows platform can run as it is in a Linux box, whereas other programming languages need to be customized based on the platform they will be implemented in.


Can you use programs in Java under Windows 8.1?

Yes you can but for that you must have have a Java Runtime Environment installed in your computer. Also if you are talking about programming in java then you need to install a Java SDK which can help you in executing your java code and run it. (It also contains Java Runtime Environment).


Will java work on windows 8?

Yes. Java supports Windows 8 (including previous versions Windows).


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.


How does a java program differ when run on windows 98 and windows 2000?

Theoretically, it shouldn't, at least when running Sun's version of Java. However, Windows 2000 included Microsoft's customized version. If a program took advantage of the additional features that Microsoft added, it might not be capable of running on other platforms, including Windows 98.


What is the difference between Windows and Java?

Windows is an operating system whereas Java is a programming language. They are entirely different.


Why java don't create any exe file?

One of Java's big draws is "platform independent" code. You can compile a Java file on Windows and run it on Mac OS, Linux, Solaris, or whatever other operating systems support Java. Executable files must be made for each individual platform. An executable file made for Windows will not run on any other OS (and vice versa). Java producing executable files would just not make sense, since you would have to recompile your code for each platform.