Saturday, May 7, 2011

在ubuntu11.04中安装java来运行dirsync pro

https://help.ubuntu.com/community/Java

rsync

由于找到了一个很好的用于备份的软件,现在也想在linux下使用。

DirSync Pro is developed in Java and it is multi-platform. It means DirSync Pro could be run under any Operating System which has Java Runtime Environment (JRE). You can download JRE at java.com for free.
这个软件是用java写的,所以只要现有设备支持JRE就可以用这个软件,当然手机上也可以用了。这还只说了这个软件的运行平台。软件的功能也是非常强大,不仅有各种准先定义好的备份方式,还可以按自己的需要来选择各种参数。

软件是绿色的,下载了windows 7 pro的版本很好用。就想也要另一台装了ubuntu11.04的电脑上也用用,可是这台电脑上java还没装好。今天又试了试,找到安装指导文档,很轻松的就装上了。

Introduction

Java is a technology from Sun Microsystems. There are several implementations, of which five will be talked about here:
  • OpenJDK: The primary goal of the OpenJDK project is to produce an open-source implementation of the Java SE 6 Platform.
  • Sun Java: Sun Java is the reference implementation.
  • IBM Java: IBM Java is a reimplementation with a Just-In-Time Compiler. It is only available from IBM's website. It is the preferred Java solution on PowerPC machines.

Open JDK

Installation of Java Runtime Environment

Browser plugin

This plugin work with the most important browser: Firefox, Chromium, Google Chrome, Epiphany.
On Konqueror, go to Settings → Configure Konqueror... and from menu select Java & JavaScript, then tick Enable Java globally option.

SDK (Software Development Kit)

Sun Java

Installation of Java Runtime Environment

  • Install sun-java6-jre packages in any method present in partner repository.
  • In order to install the previus version, install sun-java5-jre packages in any method.
Kubuntu user maybe any problem if they try to install with Kpackagekit. Is impossible agree the licence. To complete the installation please use apt-get.

Browser plugin

  • Install sun-java6-plugin packages in any method present in partner repository.
  • In order to install the previus version, install sun-java5-plugin packages in any method.
This plugin work with the most important browser:: Firefox, Chromium, Google Chrome, Epiphany. A control panel is also present in System → Preference → Sun Java 6 Plugin Control Panel.

SDK (Software Development Kit)

  • Install sun-java6-jdk packages in any method present in partner repository.
  • In order to install the previus version, install sun-java5-jdk in any method.
  • In alternativa, è possibile installare la versione precedente attraverso il pacchetto sun-java5-jdk.
At the end of installation process the application will present in Application → Programming → Sun Java 6 VisualVM.

Choosing the default Java to use

If on system are present different versions of Java, typing the following command in a terminal window:
sudo update-alternatives --config java
to choose the version that you desire.

GNU Compiler for Java

Install java-gcj-compat-headless packages in any method.
To install the development environment, install the java-gcj-compat-dev package.
GCJ is a front end to the GCC compiler which can natively compile both Java(tm) source and bytecode files. The compiler can also generate class files. Gcjwebplugin is a little web browser plugin to execute Java applets.
It is targeted for Mozilla and compatible browsers that support the NPAPI. Others include the Eclipse Java Compiler, which is maintained by the Eclipse Foundation. Eclipse is an open-source Integrated development environment (IDE) written primarily in Java. The Eclipse open source community has over 60 open source projects. OpenJDK is the open source Java, derived from sources which will become OpenJDK 7 in the future.