answersLogoWhite

0


Best Answer

It should work, yes. It really doesn't matter where you compile it - if you compile under Windows XP, you don't compile FOR Windows XP; rather, you compile for the virtual machine, which is compatible in different environments.

User Avatar

Wiki User

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

Wiki User

7y ago

Java is portaable, all you need is to have the correct version of java installed.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can be used the programs in Java compiled under Windows XP with Windows 8.1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

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


Why are Java executables platform independent?

When programs written in most other languages are compiled, they produce a platform-dependent executable that only runs on the same type of computer (i.e. 64-bit Windows or Intel Macs) it was compiled on.When a Java program is compiled, on the other hand, it produces a Java .class file that contains Java bytecode. That bytecode runs the same on almost all computer types because the Java virtual machine takes it and compiles it to platform-dependent code just before it runs.


How class file is created in java?

A class file is a compiled .java file and cannot be executed without jdk or java. They are often executed with .bat files in windows for convenience


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).


What is the size of a Java object and how can you find it?

Most Java objects seem to be 32KB and are located under your downloaded programs. If you double click on your "My Computer" icon then double click on "Local Disk (C:) " there you should find an area with a "Windows" folder double click on that and there should be a "Downloaded Programs" folder in which if you double click on that you will be able to then see your Java objects - OR - instead of going into the "Windows" folder you could double click on the "Programs" folder and there will be a "Java" folder in there (which ever you prefer).


Why don't you have Java on a Mac?

Mac OS X has Java already installed. You do not need to download it and install it currently, and Java apps should have no problem running. It has to be a real java app, not a Windows exe file compiled that also uses java, that is still a Windows program. When Mac OS X 10.7 comes out, it will not have Java installed by default, and you have to install it manually just like you do on Windows.... just download the Mac version and install.


What is the meaning of deplyoment IN JAVA?

Deployment is the process of copying the compiled Java classes to a server or client. Once deployed, the server is able to run those classes (as in Java servlets), or serve those files to clients (as in Java applets), or be executed as programs (as in Java desktop applications).


Why is java virtual machine required?

That's because that's the way Java is designed. Java programs are compiled to be run on a special program that interprets it - the Java Virtual Machine. The reason it is designed this way is because it allows Java programs to run on just about any computer - despite the fact that different computers have different sets of machine instructions. It is well possible to write programs that run without requiring support of specific programs - but such programs will only run on specific computers.


Command use on how to run a java program?

You execute it the same way you would on any other OS. As long as you have the Java Runtime Environment installed and the "java" executable is in your path, from the command line you would simply run: java -cp /path/to/file/here com.some.class.to.run.Here


What in computing is java?

Java is a computer programming language. Java programs can be interpreted (the computer compiles and runs the program as the code is executed) or it can be pre-compiled into bytecode (the computer doesn't have to compile it as soon as it is run, so time is saved.)


Which the best programming language between java and visual basic?

Java. While Visual Basic is certainly useful for writing Windows applications, that's all it can do. If you want the same program to run on other platforms (such as Linux), the entire program must be re-written from scratch. With Java, there is no need to convert. Once compiled, Java programs can be executed upon any platform that has a suitable Java virtual machine implementation, which is pretty much everything today.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.