Installing Java On Ubuntu Server [closed] - java

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.

Related

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.

Openshift port-forwarding [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
After many hours and many attempts, remains now your help.
Im trying to do port-forwarding to access my DB in Openshift on Neatbeans.
I've already done lots of tutorials, upgrade and downgrade versions of net-ssh, uninstall rhc and so on. I have read a lot git solutions (ssh_options[]...) and doesn't understand a damn thing.
When I'm trying do to port-forwarding I get this:
`C:\Users\andre>rhc port-forward -a leixinhos
Checking available ports ... Could not parse PKey: no start line
Usage: rhc port-forward <application>
Pass '--help' to see the full list of options
C:\Users\andre>`
leixinhos is my app name
I have everything right except this detail that prevents me from access DB on Neatbeans.
In your console output I see the following error:
Could not parse PKey: no start line
I also see you are running rhc on a Windows machine.
What version of Ruby do you have installed? I was getting that same error message when trying to use rhc with the latest version of Ruby on my Windows machine. In order to get all rhc commands to work correctly in windows I had to uninstall rhc, uninstall the latest version of Ruby, install Ruby version 1.9.3 and then reinstall rhc.

How to install oracle-java on ubuntu 12.04 behind a proxy [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 'm use to work with Netbeans 7.2.1 on ubuntu 12.04.
Since the update on july 24, it's no more possible to create projects with it. That comes from the update of the openjdk, as mentionned on this topic.
The more convenient solution seems to use oracle-java instead of open-jdk. Hopefully, there are plenty of docs explaining how to switch from one to the other.
Nevertheless, I encounter an issue while trying to install oracle-java7 on my ubuntu.
In a terminal I type in sudo apt-get install oracle-java7-installer
Up to there, everything is going well, but then, the connection to edelivery.oracle.com fails because timeout expires
I'm behind a company proxy, so I assume the problem may come from that. But I'have no clue how to resolve that.
I have Linux Mint, I don't like relying on apt to have Oracle Java, so I did this:
Download the JDK from the Oracle website.
Unpack it in /opt/jdk_17
Create a link from /opt/jdk to /opt/jdk_17 (so every time I update the JDK I just need to update the link)
Add JAVA_HOME=/opt/jdk in /etc/environment
Update (or add) PATH to include /opt/jdk/bin

Netbeans is so slow while developing PHP script [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 11 years ago.
Improve this question
i'm using Netbeans on Ubuntu, when i write top command i notice that Java causes like 100%+ cpu usage. Is there anything to do to speed up Netbeans ? can i download another JRE on ubuntu to speed it up (i'm using OpenJDK).
Thanks .
Another item that helps me, apart from replacing OpenJDK with SunJDK is the "Scanning Sources" which can be disabled if you goto Tools -> Options -> Misc -> Files and uncheck the Enable "auto-scanning" of sources.
I am not 100% sure what that option does, but it speeds up my projects. Also I would try NetBeans 7, they have made massive leaps and bounds in the newer versions from the older (not knowing what version you are using).
Yes, it's well known that Netbeans runs slower with OpenJDK.
Your question has been answered on AskUbuntu before:
https://askubuntu.com/questions/5567/how-to-install-the-sun-java-jdk
Enable the partner repository and then install Sun Java with:
sudo apt-get install sun-java6-jdk
I would:
Replace OpenJDK with Sun's JDK. OpenJDK's performance is still not upto par.
I would read this (a bit dated, but most of works with some changes).

Categories

Resources