Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VPS server, and have trouble setting up java.

I wonder, is there any way to test to see if java works?

My VPS server is Linux and I use PuTTY to communicate with the server from my own windows computer.


share|improve this question

migrated from May 28 '10 at 21:50

This question came from our site for professional and enthusiast programmers.

Tried java --version, whereis java, apropos java, locate java, find / -name java ? – Konerak May 28 '10 at 21:44
I can't think of anything other than what you tried... – ivans May 28 '10 at 21:45
Yes, it finds it, but I am troubleshooting my problem. Check out my other Q:… I cant get Solr working. – Anonymous12345 May 28 '10 at 21:46
Which Linux distribution are you using? what have you done so far while setting up java? what's the specific problem you're having, what happens when you just type "java" ? – Roadmaster May 28 '10 at 21:46
up vote 1 down vote accepted

Run java -version on the VPS server using PuTTY. If it doesn't recognize the command, you know java either is not installed or not configured properly.

share|improve this answer
check out this problem then, because it finds java. But I can't get solr working:… – Anonymous12345 May 28 '10 at 21:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.