S
S
Saymon_K2014-10-17 12:34:20
Java
Saymon_K, 2014-10-17 12:34:20

How to deploy a Java application on a server?

I am tormented by the question, how to run a Java program compiled into a .class file on the server for execution? Server on Unix. So using a .bat file will not work. But then how?
And further. In those. support was told that Java is not supported by the server. So, in principle, the code will not be executed ... Well, can you somehow create a favorable environment on the server for code execution? Install the Java compiler, JDK yourself?
The question arose because I can’t program in PHP (I didn’t study this language), but in Java I would do everything I need in an hour ...
UPD: So in order for my Java program to work, I need to deploy TomCat. And since technical support said that Java is not supported and you can’t install TomCat either, it turns out that I won’t be able to run my program in ANY WAY? Even by putting the JDK?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Borisov, 2014-10-17
@Saymon_K

Besides tomcat there are many other java servers like jetty. But without a JRE or JDK on the server, you won't be able to run them.
How is the server available to you? Only in the form of some kind of control panel through which you can upload files? FTP? SSH?
If ssh is available, go ahead and install the JDK and TomCat. Then rewrite your program as a servlet and deploy it under TomCat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question