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 want to run a .jar file on my shared GoDaddy hosting, but I can't install the JRE to the system because I don't have root access.

Is there any way I can use the unpackaged files to execute the java command manually?

share|improve this question
    
short anwser is No, long answser not without your own vps or dedicated server or a JRE hosting provider –  anthonysomerset Jul 16 '11 at 15:50
add comment

2 Answers

You can set the CLASSPATH variable to point to your jar.

share|improve this answer
add comment

What are your privileges on that server? Can you install and run software on that server? Not as root but as the user you are logged in.

If you can do that - having shell access - then you can unpack the selfextracting version of java and start the java command from inside the bin folder. This will then run under the account of your user. If you want to then it is possible to put java in your path environment variable and other convenient configurations to make your java life easier.

But if you are not allowed to install and run software then it is impossible to get your task running.

share|improve this answer
add comment

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.