Cannot install java on fedora [closed] - java

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 1 year ago.
Improve this question
I cannot install Java on Fedora.
I looked in the internet for tutorials and followed every of them and still no one of them helped.
If I try to do `java --version~ it says:
[root#fedora michael]# java
bash: java: command not found...
Install package 'java-11-openjdk-headless' to provide command 'java'? [N/y] y
* Waiting in queue... Failed to install packages: java-11-openjdk-headless-1:11.0.11.0.9-2.fc34.x86_64 is already installed
I don't know what to do, can someone help?

OK. I found solution: alternatives --config java

Try with:
sudo dnf install java-1.8.0-openjdk.x86_64

Enter the command:
dnf list --installed | grep -i java
And write what is displayed to you.

Related

Java error while launching JMeter bat file [closed]

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

How to install java through windows command prompt? [closed]

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

what are the steps to install prediction IO on windows 7 [closed]

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.

Mac OS: java missing [closed]

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
I have Mac OS 10.8.4
when I type in terminal >java i got an error
Unable to locate an executable at
"/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java/bin/java"
(-1)
Have no idea where and when its missed...Few days ago everything was fine. How to fix that ? Is that because I installed java 1.7 ?
Check first: whereis java, usually it is /usr/bin/java
Probably symbolic link for java in /usr/bin is not pointing to the right location. You can set this link manually to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
Also check other processes: javac, javadoc, javap, javaws and javah.
Additionally you can define JAVA_HOME in your .bash_profile.
cd /usr/bin
ls -l | grep java - check if it is indeed pointing to that wrong location
rm java - delete symbolic link
ln -s /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java java
try java -version
Did Mac OS block it again? Do you need to update to the latest version from java.com?
Download the Oracle Java SE JDK.

Installing Java On Ubuntu Server [closed]

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.

Categories

Resources