1 / 6

Vertiefendes Übungsprojekt 2

Vertiefendes Übungsprojekt 2. Michael Chvatal Veronika Knopp. Automatisierung von Java. Aufgabenstellung Lösung - Programm mit OpenOffice Lösung – Rexx Programm zur Installation für BSF4Rexx. Aufgabenstellung. 1 Programm schreiben, welches 2 Programme mittels Java (BSF4Rexx) ansteuert

Télécharger la présentation

Vertiefendes Übungsprojekt 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Vertiefendes Übungsprojekt 2 Michael Chvatal Veronika Knopp

  2. Automatisierung von Java • Aufgabenstellung • Lösung - Programm mit OpenOffice • Lösung – Rexx Programm zur Installation für BSF4Rexx

  3. Aufgabenstellung • 1 Programm schreiben, welches 2 Programme mittels Java (BSF4Rexx) ansteuert • 1 Installationsskript schreiben, welches Pfade für BSF4Rexx einrichtet (entzippen wurden nicht prog.)

  4. Lösung 1 • 2 Eingabefelder, 2 Button • 1ter Button öffnet Tabellenkalkulation • 2ter Button öffnet Textbearbeitungsprogramm • Übertragen der Einträge in jeweilige Programme

  5. Lösung 2 • Installationsskript ist auf Windows XP ausgelegt • Erfordert „kluge“ Eingabe des Benutzers (Exceptions wurden nicht behandelt, da zu aufwendig) • Wäre auch ohne „Java“-Eingabe gegangen – problematisch bei verschiedenen Versionen

  6. Lösung 2 SAY "Bitte geben Sie das Java Verzeichnis an (ohne \ am Ende!) " PARSE PULL JVerz SAY "Java liegt in diesem Verzeichnis: " jverz Say "Bitte geben Sie das Rexx Verzeichnis an (ohne \ am Ende!) " PARSE PULL RVerz Say "Rexx liegt in diesem Verzeichnis: " RVerz Say "" Say "Reg-Eintrag wird erstellt...." SH = .oleObject~new("WScript.Shell") sReg = "System\CurrentControlSet\Control\Session Manager\Environment\Path" a = SH~RegRead("HKLM\"sReg) SH~RegWrite("HKLM\"sReg,a||";"||jverz || "\j2re1.4.1.\;"||jverz||"\j2re1.4.1.\bin\;"||jverz||"\j2re1.4.1.\bin\client\;"||Rverz||"\bsf4rexx\") SH~RegWrite("HKCU\"sReg,a||";"||jverz || "\j2re1.4.1.\;"||jverz||"\j2re1.4.1.\bin\;"||jverz||"\j2re1.4.1.\bin\client\;"||Rverz||"\bsf4rexx\") Exit

More Related