468x60

giovedì 28 maggio 2015

Install Oracle Java 8 in Debian via Repo

To add the WebUpd8 Oracle Java PPA repository and install Oracle Java 8 in Debian, use the following commands:
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer

And that's it, Oracle Java 8 should now be installed and you should get automatic updates for future Oracle Java 8 versions, under Debian.

You can check out the Java version on your system by using these commands:
java -version

There is a package in repository that automatically sets the Java 8 environment variables and sets JDK8 as the default JDK. To install it, use the following command:
apt-get install oracle-java8-set-default
source /etc/profile.d/jdk.sh

Installare MySQL 5.6 su Debian 7

Aggiungi il Repo
wget http://repo.mysql.com/mysql-apt-config_0.3.5-1debian7_all.deb
dpkg -i mysql-apt-config_0.3.5-1debian7_all.deb

Verrà creato un file /etc/apt/sources.list.d/mysql.list che conterrà delle righe simili alle seguenti:
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6

Installa MySql 5.6
apt-get update
apt-get install mysql-server-5.6

Install MySQL 5.6 on Debian 7

Add the Repo
wget http://repo.mysql.com/mysql-apt-config_0.3.5-1debian7_all.deb
dpkg -i mysql-apt-config_0.3.5-1debian7_all.deb

The above package will create a file /etc/apt/sources.list.d/mysql.list which will contain lines like these or similar:
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6

Install MySql 5.6
apt-get update
apt-get install mysql-server-5.6

martedì 14 aprile 2015

Impostazioni lingua locale Tomcat

Per impostare la lingua Locale in Tomcat bisogna modificare il file catalina.sh che si trova nella directory "bin" di Tomcat.

Cercare qualcosa simile a:
JAVA_OPTS="$JAVA_OPTS....."

Alla fine della definizione JAVA_OPTS aggiungere (per Italia):
-Duser.language=it -Duser.region=IT

Ed otterrai qualcosa simile a:
JAVA_OPTS="$JAVA_OPTS -Duser.language=it -Duser.region=IT"

Set Tomcat default locale

To set default Locale in Tomcat you should edit the catalina.sh file found in the "bin" directory of Tomcat installation.

Look for something like:
JAVA_OPTS="$JAVA_OPTS....."

At the end of the JAVA_OPTS definitions add (for Enligh):
-Duser.language=en -Duser.region=EN

You'll get something like:
JAVA_OPTS="$JAVA_OPTS -Duser.language=it -Duser.region=IT"

venerdì 27 marzo 2015

Ivy and Jasper Reports

Jasper Reports uses dependencies that for some reason are not present on repository. To solve this problem I've configured Ivy as following:

ivy.xml
 <dependency org="net.sf.jasperreports" name="jasperreports" rev="6.0.3" conf="*->default" />  


ivysettings.xml
 <ibiblio name="jaspersoft-third-party" usepoms="true" m2compatible="true"  
 root="http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts" />  

Ivy e Jasper Reports

Jasper Reports utilizza delle dipendenze che per qualche motivo non si trovano sul repository. Per risolvere il problema ho dovuto configurare Ivy nel seguente modo:

ivy.xml
 <dependency org="net.sf.jasperreports" name="jasperreports" rev="6.0.3" conf="*->default" />  


ivysettings.xml
 <ibiblio name="jaspersoft-third-party" usepoms="true" m2compatible="true"  
 root="http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts" />  
468x60

Cerca su Google

Cerca nel Blog con Google