Difference between revisions of "Java"

From Dietrich Blog (Strato)
Jump to: navigation, search
(Installation Java SDK 1.5.0_04)
Line 1: Line 1:
 
{{TOCright}}
 
{{TOCright}}
== Installation  Java Runtime Environment 1.5.0_04  ==
+
== Installation  Java Runtime Environment ==
 
* Definitive Software Library ID: '''JavaJRE'''
 
* Definitive Software Library ID: '''JavaJRE'''
 
* Installationsdatum: 09.09.2005
 
* Installationsdatum: 09.09.2005
 
* Name: J2SE - Java 2 Standard Edition:  JRE Java Runtime Environment
 
* Name: J2SE - Java 2 Standard Edition:  JRE Java Runtime Environment
 +
* Version: 1.5.0_06
 
* Hersteller/Quelle: Sun Microsystems [http://java.sun.com/j2se/1.5.0/download.jsp Sun]
 
* Hersteller/Quelle: Sun Microsystems [http://java.sun.com/j2se/1.5.0/download.jsp Sun]
* Installationsordner: d:\Programme\Java\jre1.5.0_04
+
* Installationsordner: d:\bin\Java\jre1.5.0_06
 
* Test: java -version
 
* Test: java -version
  
Line 13: Line 14:
 
* Name: J2SE - Java 2 Standard Edition:  SDK Software Development Kit
 
* Name: J2SE - Java 2 Standard Edition:  SDK Software Development Kit
 
* Version 1.6.0_03
 
* Version 1.6.0_03
* Hersteller/Quelle: Sun Microsystems [[http://java.sun.com/j2se/1.5.0/download.jsp|http://java.sun.com/j2se/1.5.0/download.jsp]]
+
* Hersteller/Quelle: Sun Microsystems [[http://java.sun.com/j2se/1.5.0/download.jsp]]
 
* Installationsordner:  
 
* Installationsordner:  
 
** c:\Program Files\Java\jre1.6.0_03
 
** c:\Program Files\Java\jre1.6.0_03

Revision as of 21:49, 7 April 2008

Installation Java Runtime Environment

  • Definitive Software Library ID: JavaJRE
  • Installationsdatum: 09.09.2005
  • Name: J2SE - Java 2 Standard Edition: JRE Java Runtime Environment
  • Version: 1.5.0_06
  • Hersteller/Quelle: Sun Microsystems Sun
  • Installationsordner: d:\bin\Java\jre1.5.0_06
  • Test: java -version

Installation Java SDK

  • Definitive Software Library ID: JavaSDK
  • Installationsdatum: 09.09.2005
  • Name: J2SE - Java 2 Standard Edition: SDK Software Development Kit
  • Version 1.6.0_03
  • Hersteller/Quelle: Sun Microsystems [[1]]
  • Installationsordner:
    • c:\Program Files\Java\jre1.6.0_03
    • d:\bin\Java\jre1.5.0_06
  • Environment-Variable:
    • c:\Program Files\Java\jre1.6.0_03
    • JAVA_HOME=d:\bin\Java\jre1.5.0_06
  • Environment-Variable: PATH= ....;d:\bin\Java\jre1.5.0_06\bin;...
  • Registration of JAR-Files: Open with = D:\bin\Java\jdre1.5.0_06\bin\javaw.exe -jar "%1"
  • Test: java -version

Im Lieferumfang von Java 1.5 enthalten ist:

  • Xerces (ein JAXP-kompatibler XML-Parser für SAX und DOM)
  • Xalan (ein XSLT-Prozessor)
  • ...

Konfiguration

Der classpath ist: d:\bin\java\jre1.5.0_06\lib\ext

Der XSLT-Prozessor XALAN

Ich verwende den Java-basierten Xalan-XSLT-Prozessor. Installation von Xalan:

  • Kopieren nach classpath
    • xalan.jar
    • serializer.jar
    • xml-apis.jar
    • xercesImpl.jar

Aufruf:

%JAVA_HOME%\bin\java org.apache.xalan.xslt.Process -IN simple.xml -XSL "docbook-xsl-1.65.1/htmlhelp/htmlhelp.xsl" -OUT hugo.htm

Since JDK 1.5 the xerces and xalan packages are part of JAXP which is a standard package shipped along with jdk1.5. Consequently, the package names have changed and the xalan transformation process can be invoked using the command line

%java com.sun.org.apache.xalan.internal.xslt.Process -IN a.xml -XSL a.xsl -OUT a.htm

Der Aufruf des XSLT-Prozessors kann auch innerhalb von Eclipse erfolgen, wenn man ein entsprechendes Eclipse-Plugin installiert (z.B. Improve XSLT oder Transclipse).

Eine dritte Möglichkeit ist, einen komfortablen XMLEditing mit integrierter XSLT-Funktionalität z.B. XMLMind einzusetzen.

Anwendungen, die Java benötigen

Anwendung Erläuterung
Ant BuildTool
Cidero UPnP Control Point
DbVisualizer DatenbankFrontend auf Basis von JDBC/ODBC
Eclipse IDE/Framework ....
GCalDaemon Google Synchronization
JBoss WebApplications mit EJBs J2EE
jfeedreader RSS-Reader (experimentell)
LDAPBrowserEditor Browser und Editor für LDAP
ProjectX MPEG-Tool
Tomcat WebApplications mit JSP und Servlets
TV-Browser Fernsehprogramm
Xalan XSLT-Prozessor (z.B. für DocBook)

-- Main.DietrichKracht - 15 Feb 2004