Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Java software is not working in ms xp OS service pack 2. What are the problem that would change my OS to allow working of java ?
From your question there is plenty of possible answers.
First: You have to download and install JDK (or at least JRE) in order to run jar files.
Download and entire installation process is described here.
EDIT 1:
Regarding to your questions in comments I am edited this answer.
Okay sir Bosko Mijin, thanks for your kind help.. how to check java is
working?? and should i change my OS to win 7? please give suggestions.
You should to check is JDK installed on your machine. Fastest way is that you run following commands (noted below) in command promt to check version and compiler.
Checking Java version: java -version
Checking Java compiler: javac -version
If there is installed JVM (attention: not Microsoft JVM) then you have to check environment variables and ensure that JAVA_HOME variable is set and it is in you PATH also.
You can do check this with following command: echo %JAVA_HOME%
If you have installed Microsoft JVM, I suggest to change OS (easier way, but clean) because Microsoft JVM supports Java up to v1.1 (it is very very old!). Harder way is that you get old versions of JVM and try to install them to your XP, but there is questionable are that packages 'young enough'.
FYI: Win7 have no such problems with JVM.
If you have Microsoft JVM, it would be great that you read this link. It will help you to decide what next.
Regarding to OS, I am not good person for this type questions because I like Unix/Linux systems (I am using them for long time ago) and I am afraid that my answer regarding this part will be very 'primary opinion based'.
Anyway, I wish you to solve this quickly. Best luck.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
My computer turn off when i install jdk 9, and now any java program cant be install.
Error message :
another java installation is in progress you must complete that installation before you can run this installer
I tried alredy :
Can't install JDK 9 because "Another Java installation is in progress"
https://www.itsmdaily.com/another-installation-already-in-progress-error/
http://windowsreport.com/another-installation-already-progress-error-windows-10/
https://www.java.com/en/download/help/error_1500.xml
By the way i Don't try the option to disable WindowsIntaller service, because this option in the service properties lock on "manual" and i cant change it...
Thanks for any help
UPDATE: As researched by the original poster, this issue turned out to be a know problem that is not related to Windows Installer. The solution is described here: https://bugs.openjdk.java.net/browse/JDK-8184984 (essentially involving cleanup of some lock files).
Original answer here:
Before trying anything else, please try this option and let us know if it solved the problem (I haven't had any concrete problems to test it with for a while - these tools tend to get deprecated):
Microsoft Fixit: unregister programs that can't be installed or uninstalled
Several such cleanup tools have come and gone - all deprecated and unsupported as of now (MsiZap.exe for example).
I am not sure if your installer is Windows Installer based - since you have added that tag to your question I just assume so.
Please don't ever listen to advice telling you to disable the Windows Installer service. Those "hacks" can wreck your system. In fact if you have done any changes and the service won't start and you are unable to change things back, then your best options might be the "Last Known Good Configuration" feature (activated by pressing F8 during system boot on Windows systems before Windows 10), or "System Restore" (the latter may also fix your stuck Java package, but I don't like this feature - I have seen other, unrecoverable installation / uninstallation problems occur when it is used - try as a last resort - maybe if the above tool doesn't help).
Some links - just for reference and easy retrieval:
Uninstall without an MSI file.
Why does MSI require the original .msi file to proceed with an uninstall?
Uninstalling an MSI file from the command line without using msiexec
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have java 6 installed in one of my servers running application x. Now I was giving application y that is supposed to run in the same server. However, they "forgot" to tell me that application y needs java 7, not 6.
After reading a bit on the internet, I realized that it's possible to run multiple versions of java in the same windows box, but I cannot make sense of what to do with the environment variable and how it know when to use java 6 or 7. Does anyone either know what I need to do or of a website where I could find good information?
Thank you!
Do not rely on JAVA_HOME environment variables, most applications can be run using an absolute path. You don't even need to run Java setup.exe on server machine. This quarantees you don't accidentally get Java browser Plugin and version controlling is easier.
Run Java6 and Java7 setup.exe in one machine say your personal laptop
Go to c:\program files\Java\Java_xxx folder and zip it
Unzip to a server, say c:\java\Java_xxx folder, you should see Java_xxx\bin\java.exe file
Uninstall Java6 and Java7 from laptop if you don't need it
Server machine may not need JAVA_HOME envvar to mess versions up
Use JavaJRE or JavaSDK both are fine or side by side everything
Run java application using an absolute path, you may create a shortcut or .bat script to run application.
c:\java\Java_xxx\bin\java.exe -cp ./lib/myapp.jar;./classes com.package.MyAppMain param1 param2
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Am trying to download JDK 1.7 for a 32 bit windows OS from
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
It got downloaded but when am trying to install, it gives me an error that it's not a valid Win32 application. Can someone tell me what's wrong here? My OS is 32 bit.
Have you downloaded the correct version (32-bit) of the program?
It is likely that the downloaded file is corrupted. I’d suggest you to re-download the file and try installing the same.
Possible causes of this error message are:
File is corrupt, bad, or missing.
File is not designed for your version of Windows.
If the file or program you're trying to run is corrupt or missing, Windows will be unable to execute the file properly and generates this error message.
If you’re using 32-bit version of Windows 7 and trying to install a program designed for 64-bit version, you may encounter this error message.Make sure that you’re downloading the appropriate version of the program.
I downloaded the x86 version
It doesn't matter even if you are on a 64bit windows, the x86 version should install fine.
Since yours is an x86 version , I suggest you try to download it again and check to see that the issue persists or not.
Probably the file got corrupted during download.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to clear some thing regarding JDK aan JRE which are available from Oracle and please
correct me if I am wrong.
We can run our java programs with JRE and It does not need JDK.
But for the development of Program we need JDK, Which come with JRE.
Does JRE is needed for the development of programs? If no then why JDK includes JRE?
Is JDK is available with out JRE for development?
Thanks
JDK is just a bundle and of course you need the runtime environment JRE to run your own software you just developed.
Well, it would be a bit silly shipping a java compiler without being able to run the resulting programs...
It also makes sure you use the same version of java to run your app as you did to compile it (the class file version changed between 1.6 and 1.7, meaning old versions can't read 1.7 class files).
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I manually check if jdk is installed on my machine, and if yes, what version?
If I had jdk in Windows 7, and now I installed Windows 8 separately on the same machine, do I need to reinstall the jdk? Or can I reuse it?
When you install java on windows it can go by default in one of the following locations:
C:\Program Files (x86)\Java
C:\Program Files\Java
If you look in both of these locations, you will see exactly which JDKs and JREs are installed.
If you installed it somewhere else and don't remember, you can still search for java.exe
If by "Can i use it", you mean for use with an IDE like Eclipse or Netbeans, the answer is yes. They can use the JDK files no matter where they are, and whether it has been installed on the OS or not.
java -version will only tell you about a java version that would be on the path, which is not always the case.
If you have two Windows Version and the java installed in a place where both can share it, you can reuse it.
In cmd window type
java
If you see java usage information then you have java installed.
java -version
which display current version of your java.
You may reuse it windows 7 java in windows 8.