Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:soft_programmation_en_java_au_centre_de_calcul [2016/12/05 14:43]
127.0.0.1 external edit
en:soft_programmation_en_java_au_centre_de_calcul [2016/12/16 10:16] (current)
Line 7: Line 7:
 \\ \\
  
-===== 1. Java configuration ​ =====+=====  Java configuration ​ =====
  
 If you plan to use Java as programming language and if you want to execute your code on machines at CC, you first need to define environment variables for Java in your session. For this purpose, you can use the scripts **java_env.[c]sh** or **java6_env[c]sh** (for jdk 1.6). These scripts define the variables ${JAVA_HOME},​ ${CLASSPATH} et ${PATH}. Source the file ( //source /​usr/​local/​shared/​java/​java_env.csh//​ or //. /​usr/​local/​shared/​java/​java_env.sh//​ ) and then check java is working fine: If you plan to use Java as programming language and if you want to execute your code on machines at CC, you first need to define environment variables for Java in your session. For this purpose, you can use the scripts **java_env.[c]sh** or **java6_env[c]sh** (for jdk 1.6). These scripts define the variables ${JAVA_HOME},​ ${CLASSPATH} et ${PATH}. Source the file ( //source /​usr/​local/​shared/​java/​java_env.csh//​ or //. /​usr/​local/​shared/​java/​java_env.sh//​ ) and then check java is working fine:
Line 17: Line 17:
 Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
 </​code>​ </​code>​
-You can get further informations about Java at [[http://​java.sun.com/​|site web]] or read the [[http://cc.in2p3.fr/​doc/​phpman.php?​parameter=java&​mode=man|man pages]] . +You can get further informations about Java at [[http://​java.sun.com/​|site web]] or read the [[http://cctoolsafs.in2p3.fr/​doc/​phpman.php?​parameter=java&​mode=man|man pages]] . 
-===== 2. How to use un secure connection to Orable using JDBC  =====+=====  How to use un secure connection to Orable using JDBC  =====
  
 This section explains how to obtain a secure connection between a JDBC Java client and a Oracle database. The capability to use encryption and to check the data integrity of the JDBC driver provided by Oragle (read page 18-8 of the book "JDBC Developer’s Guide and Reference"​) are used. The server at CC are correctly configured to allow this kind of connections. However, you need to change the way you use to connect to the server by adding: This section explains how to obtain a secure connection between a JDBC Java client and a Oracle database. The capability to use encryption and to check the data integrity of the JDBC driver provided by Oragle (read page 18-8 of the book "JDBC Developer’s Guide and Reference"​) are used. The server at CC are correctly configured to allow this kind of connections. However, you need to change the way you use to connect to the server by adding:
Line 88: Line 88:
 </​code>​ </​code>​
 You can not still use SSL since the Orable JDBC driver does not support it. You can only exchange keys when a new session is opened. You can not still use SSL since the Orable JDBC driver does not support it. You can only exchange keys when a new session is opened.
- 
  
  • en/soft_programmation_en_java_au_centre_de_calcul.txt
  • Last modified: 2016/12/16 10:16
  • (external edit)