帆軟報表服務器JAVA&TOMCAT配置

公司最近要作帆軟報表,所以特地配置了一個,因爲常年不跟JAVA打交道了,不少最新版本的配置什麼的也都記不住了,正好記錄一下.html

根據帆軟的官方文檔,JDK和TOMCAT的版本要對應,所以採用了8.5.X的TOMCAT和JDK8.java

  Tomcat 版本  JDK 版本 
  9.0.x   8 and later
  8.5.x   8 and later
  8.0.x   7 and later
  7.0.x   6 and later

 

首先配置JDK8,直接從ORACLE的官網下載便可https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlweb

而後走正常的安裝程序,安裝在Windows Server2012上,直接採用默認路徑安裝,在這裏遇到一個問題:apache

安裝JRE的時候,會顯示"Windows Installer Coordinator正在爲首次使用作準備",而後就會循環,不進行下一步,找了一下,解決辦法以下:windows

To disable this group policy you need to perform these steps:
1 ) Log on to the system with a User that has Administrative Privileges
2 ) Open the Windows Control Panel
3 ) Perform a search for Group Policy
4 ) The search results should display a link to the 「Local Group Policy Editor」
5 ) Once inside the editor, go to:tomcat

  1. Computer Configuration
  2. Administrative Templates
  3. Windows Components
  4. Remote Desktop Services
  5. Remote Desktop Session Host
  6. Application Compatibility

6 ) In the right pane, right click on ‘Turn off Windows Installer RDS Compatibility」 and select Edit from the drop down menu
7 ) Select the Radio Button labeled ‘Enable’
8 ) Click OK服務器

修改組策略中的遠程客戶機兼容性設置選項,以後進行環境變量的設置:oracle

JAVA_HOME:C:\Program Files\Java\jdk1.8.0_231app

JRE_HOME:C:\Program Files\Java\jre1.8.0_231 #最開始由於沒有設置這個JRE_HOME致使TOMCAT閃退webapp

CLASSPATH:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tool.jar;

以後就是常規的cmd-javac/java/java -version測試是否能用了

 

接下來配置TOMCAT8.5

我是直接從原有服務器上直接拷貝的文件,因此不存在下載等問題,只考慮環境變量和配置問題:

CATALINA_HOME:D:\apache-tomcat-8.5.43(解壓目錄)

CLASSPATH:在原有變量後面添加;D:\apache-tomcat-8.5.43\bin(裝有可執行二進制文件的目錄)

 

 

windows的批處理文件若是打開以後閃退,能夠打開一個CMD窗口,以後把批處理文件拖進去,就能看到錯誤了!

 

以後要將JAVA中的tools.jar複製到工程文件中,將%JAVA_HOME%\jdk\lib下的tools.jar拷貝到%Tomcat_HOME%\lib和%Tomcat_HOME%\webapps\webroot\WEB-INF\lib下

以後進到D:\apache-tomcat-8.5.43\bin\中,打開startup.bat便可啓動了!

其餘參考帆軟官方文檔的獨立部署頁面便可:https://help.finereport.com/doc-view-765.html

相關文章
相關標籤/搜索