Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question

migrated from stackoverflow.com May 28 '10 at 21:50

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

4  
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: stackoverflow.com/questions/2931720/… 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

1 Answer 1

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: stackoverflow.com/questions/2931720/… –  Anonymous12345 May 28 '10 at 21:47

Your Answer

 
discard

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.