Y
Y
Yaroslav2016-06-19 12:11:37
Java
Yaroslav, 2016-06-19 12:11:37

How to make Tomcat run from program files, without admin rights?

I am developing a web application in Java / Spring, but for a number of reasons I decided that it makes no sense to run it on the server. It is much easier for each user to download their own server and run it, since it will work with 5-10 gigabytes of data. Thus, a web-based desktop application is obtained.
The system functions normally, however Tomcat does not work well from C:\Program files. For example, he does not write logs and all sorts of unpleasant little things pop up (the inability to create temporary files, and so on). Of course, it is possible to force the user to install the application in C:\App, but this is not conceptually correct. The desktop program should not change anything in its folder, there are user folders for this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-06-19
@skazi_premiere

Give the user normal NTFS rights to the folder with the program and everything will be fine.

V
Victor Alenkov, 2016-06-19
@Borz

install Tomcat in Program Files - this will be CATALINA_BASE. make APP_DATA the directory for Tomcat - this will be CATALINA_HOME. And then we read here and here , adjusted for the fact that you have Windows, not Linux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question