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 4 years ago.
Improve this question
I was working for a testing team, where we will be testing the application End-to-End. Every time before I test I have to install the java of different version and need to uninstall the same. We tried to do this using AutoIt but we failed to Automate the installation and un-installation part of java. I hear that we can install the java through command prompt, but not sure how to do it.
I use Window greater version with different flavors of java.
Can any one help how to Install & Un-install java through command prompt, which can reduce some of the manual efforts...!
Thanks in advance.
In order to install java silently you can simply make a batch file(.bat) with the following command
javaSetup.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" INSTALLDIR=C:\Java\x86\ javaVersion /INSTALLDIRPUBJRE=C:\Java\x86\ jreVersion
A proper example for above skeleton will be
Here JDK 1.8.60 (x86) with source code is going to C:\Java\x86\jdk1.8.0_60 and JRE to C:\Java\x86\jre1.8.0_60:
jdk-8u60-windows-i586.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" INSTALLDIR=C:\Java\x86\jdk1.8.0_60 /INSTALLDIRPUBJRE=C:\Java\x86\jre1.8.0_60
Just make sure you keep the batch file in the same directory as your setup file
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 4 years ago.
Improve this question
I am trying to launch JMeter through the BAT file on a windows machine but I am getting the following error:
Not able to find Java executable or version. Please check your Java installation.
errorlevel=2
Press any key to continue . . .
I have set the java path earlier and this was working perfectly fine earlier. can anyone suggest me how to fix this issue?
The message is telling you there is no Java in the path, which you can check by typing in a command line:
java -version
So you need to install JDK 8 or 11 , you can choose Oracle JDK or Open JDK.
Also check you use last JMeter version which is 5.0
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 4 years ago.
Improve this question
i am new to predictionio and i am not able to install the predictionio on my PC. The steps given on the apache site i am not able to understand command like
$ tar zxvf apache-predictionio-0.12.1.tar.gz
$ gpg --verify apache-predictionio-0.12.1.tar.gz.asc apache-predictionio-0.12.1.tar.gz
.
.
.
which are given on site document
can you please provide step by step installation for windows.
The Prediction.io engine is meant to be installed in a Linux environment.
If you only have Windows available, you could download a VM manager, say Oracle's Virtual Box, setup a Linux distro, Ubuntu is fairly easy to use.
There's plenty of ressources online to do those steps.
Then follow along with the documentation of prediction.io, and it will work like a charm !
Or as #McMutton mentionned, a Docker installation documentation is also available.
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 8 years ago.
Improve this question
I am facing following scenario:
Win XP Machine, 2003 SP, jre7
No admin rights to even set class path via my computer properties
CMD prompt shows a local drive as user drive instead of C
Thus unable to execute following command:-
c:\program files\Java\jre7\bin
It says C:\program files isn't recognized as an internal or external command.
Tried to change directry to C but not successful
What I want:
To be able to compile and run java files from CMD prompt
Setting up path from CMD
I hope it ia not too much to expect in such an unreasonably restricted development environment.
Ok, you can try this
set PATH="C:\Program Files\Java(YOUR JDK FOLDER) eg. jdk1.5.0_14\bin";%PATH%
so enter set PATH="C:\Program Files\Java\jdk1.5.0_14\bin";%PATH% but make sure it matches your JDK install folder.
If you need anymore help please let me know.
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
Does anyone know the process to install java on Ubuntu?
I have my server set up with Amazon in the cloud.
I am looking to run some java servers on my server and quickly came to notice that I needed to install java.
Can someone point me in the right direction with some steps?
I have looked at some websites but in the command line when I enter sudo nano /etc/apt/source.list the file is a new file... I have read there is supposed to be an existing file. Correct?
Thanks in advance. :)
If you have terminal access, depending on the version of Java, you're looking for, it would be something like this.
sudo apt-get install openjdk-6-jre
I use the Sun/Oracle JDK. You can download the JDK .sh file. Run it and it unpacks itself. Add the bin directory to your path and you can use it. This doesn't require root access and you can install as many versions as you want this way.