Linux"

From Documentation
m (correct highlight (via JWB))
 
(4 intermediate revisions by one other user not shown)
Line 3: Line 3:
  
 
=Chart and Captcha=
 
=Chart and Captcha=
[[ZK Component Reference/Diagrams and Reports/Chart|Chart]] and [[ZK Component Reference/Essential Components/Captcha|Captcha]] depends on Java Swing. To make Swing works correctly under Linux, you have to install <tt>openjdk-6-jre</tt><ref>The default installation includes only <tt>openjdk-6-jre-headless</tt> and <tt>openjdk-6-jre-lib</tt>.</ref>
+
[[ZK Component Reference/Diagrams and Reports/Chart|Chart]] and [[ZK Component Reference/Essential Components/Captcha|Captcha]] depends on Java Swing. To make Swing works correctly under Linux, you have to install <code>openjdk-6-jre</code><ref>The default installation includes only <code>openjdk-6-jre-headless</code> and <code>openjdk-6-jre-lib</code>.</ref>
  
 
<source lang="bash">
 
<source lang="bash">
sudo apt-get install openjdk-6-jre
+
sudo apt-get install openjdk-6-jre
sudo /etc/init.d/tomcat6 restart
+
sudo /etc/init.d/tomcat6 restart
 
</source>
 
</source>
  
Line 17: Line 17:
 
=Jaspserreport=
 
=Jaspserreport=
  
[[ZK Component Reference/Diagrams and Reports/Jasperreport|Jasperreprot]] is based on [http://jasperforge.org/projects/jasperreports the JasperReports project]]. To make it run correctly under Linux, you have to make sure all fonts that you use are installed.
+
[[ZK Component Reference/Diagrams and Reports/Jasperreport|Jasperreprot]] is based on [http://jasperforge.org/projects/jasperreports the JasperReports project]. To make it run correctly under Linux, you have to make sure all fonts that you use are installed.
  
 +
<source lang="bash">
 +
sudo aptitude install msttcorefonts
 +
sudo /etc/init.d/tomcat6 restart
 +
</source>
  
sudo aptitude install msttcorefonts
+
The procedure to install fonts might depend on the version you use. Please refer to [http://stackoverflow.com/questions/3218732/jasper-reports-pdf-generation-issue this discussion] for more information.
sudo /etc/init.d/tomcat6 restart
 
  
 
=Version History=
 
=Version History=

Latest revision as of 12:37, 19 January 2022


Here is the notes to set up the environment of Linux that some ZK components depends on.

Chart and Captcha

Chart and Captcha depends on Java Swing. To make Swing works correctly under Linux, you have to install openjdk-6-jre[1]

sudo apt-get install openjdk-6-jre
sudo /etc/init.d/tomcat6 restart

  1. The default installation includes only openjdk-6-jre-headless and openjdk-6-jre-lib.

Jaspserreport

Jasperreprot is based on the JasperReports project. To make it run correctly under Linux, you have to make sure all fonts that you use are installed.

sudo aptitude install msttcorefonts
sudo /etc/init.d/tomcat6 restart

The procedure to install fonts might depend on the version you use. Please refer to this discussion for more information.

Version History

Last Update : 2022/01/19


Version Date Content
     



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.