How to setup java environment in digitalocean? [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 8 years ago.
Improve this question
I want to set up java/jsp environment in digitalocean VPS. I need help with that. I found help in digitalocean community but I want to know that which os is best for jsp and tomcat? And also the version of OS. I saw that tomcat is accessible at port 8080 so is there any option that i can access my site at port 80 or something like domain.com/index.jsp instead of domain.com:8080/indes.jsp?
I am still learning java and jsp so for that I need help to set up.

Tomcat can run on almost any OS, so choose one you are experienced and comfortable with. There's been a tendency to go with CentOS for server deployment, but as far as I'm aware no strong justification for choosing this over Ubuntu. Use whichever version is the most recent released version - for Ubuntu that's 14.04. DigitalOcean provide a variety of images and they're likely to be up to date and well supported.
Tomcat can be setup to run on any port you want, including 80. There are loads of guides to this, here's one that looks comprehensive: http://java-notes.com/index.php/installing-tomcat-with-http-port-80-on-linux

Related

Java not running on Windows server 2019 [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 2 years ago.
Improve this question
I'm on this for a really long time. I need to have JRE 6 running on a new nonactivated Windows server 2019 essentials to be able to use a very old remote controller for some servers (old IBM & DELL racks).
No matter what version of java I install, it's just not running. I don't see it in the bottom right corner or in the running services. I know it seems very basic but I couldn't find a solution online.
Am I missing something? All I could find online is suggestions to add java to the environment variables but that is for a different issue. I tried it desperately but of course it didn't solve the problem.
Java, or more precisely the Java Virtual Machine (JVM), is not something that runs in the background. JVM is used to start specific applications. How the java.exe or similar executable will be resolved and invoked will depend on the specific application.
What you usually see in the Windows task tray area is a the Java update checker (Jucheck.exe). Whether or not this service is present will depend on selected installation options. It also might be that a very old Java 6 simply does not ship it.

alternative methods of hosting a java socket [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 8 years ago.
Improve this question
In recent discussions on stackoverflow I have discovered that many/most web hosts dont allow java servers to be uploaded as they open ports and create a vulnerability in their system. Without paying extra for a java web host, how is possible to by pass this issue? Can php be used to somehow wrap the java programmed socket, or even write the socket itself in php? This is one method I have heard, but surely the host would look at this no differently than a java written socket- a security threat?
Whilst i'm on topic, how is it that paying more for a java webhost all of a sudden makes their system less vulnerable? Is this just a con to extort a little more by allowing ports to be open if your willing to pay for it, or is their something that i'm misunderstanding?
Thanks
Host it using a dedicated or VPS(virtual private server) below are 2 of my personal cloud/vps providers that i use. You can look around for more but yeah shared hosting in my opinion is for entry thing or when you don't want to have to worry about the underlying platform. If you have a understanding of linux and managing your own servers then i would go for vps all the way.
http://aws.amazon.com/ and https://www.digitalocean.com/
With regards to the PHP part of the question as I stated in my comment if you have ssh access you can run your PHP script php myscript.php though i am not to sure how you would wrap your java service.

SSL Error when trying to download a Java JDK [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 8 years ago.
Improve this question
I need to download a particular version of the Java JDK, so I'm going to Oracle's website to do so. When I click any of the links to begin downloading a JDK, I get the following error message from my browser:
This is probably not the site you are looking for!
You attempted to reach download.oracle.com, but instead you actually reached a server identifying itself as a248.e.akamai.net. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of download.oracle.com.
You should not proceed, especially if you have never seen this warning before for this site.
Is this normal (i.e., does Oracle use akamai.net to host its JDK distributions), or does this suggest that Oracle or I are being attacked?
Neither Sun nor Oracle has ever used third parties to host JDK downloads in my experience since 1997.

Un-install JRE on Windows Server 2008 [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
Not a Java person, so forgive this simple question, but on our Windows Server 2008 Enterprise server we have the following Java installations:
My understanding is that this is the JRE - shown as Java (TM) 6 Update 37 (64-bit) above I believe - and the JDK.
If I un-install the JRE will that leave the JDK intact and have no adverse effect?
Yes, you can surely uninstall and start working with JDK without any issues. Just don't forget to update JAVA_HOME and path variables accordingly.
Please refer to this page for steps of how to setup JAVA_HOME and path

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

Categories

Resources