🚀 Eine Java-Anwendung auf IBM i (AS/400) deployen und starten

Java auf IBM i
© phonlamaiphoto – stock.adobe.com

In diesem Beitrag zeige ich dir, wie du eine einfache Java-Anwendung erstellst, in ein JAR-File verpackst und auf einem IBM i System (früher als AS/400 bekannt) ausführst.

Unser Beispielprogramm gibt alle Umgebungsvariablen auf der Konsole aus. Wenn du beim Start Parameter übergibst, zeigt es nur die gewünschten Schlüssel an – praktisch zum Testen oder Debuggen auf IBM i.

java.util.Map;

public class EnvVariablesPrinter {
   public static void main(String[] args) {
      Map env = System.getenv();

      if (args.length > 0) {
         for (String key : args) {
            String value = env.get(key);
            if (value != null) {
               System.out.println(key + " = " + value);
            } else {
               System.out.println("Kein Wert für Schlüssel: " + key);
            }
         }
      } else {
         for (String key : env.keySet()) {
            System.out.println(key + " = " + env.get(key));
         }
      }
   }
}

Werbung/Advertising

<

Microsoft Office 365 Business Standard - 1 Nutzer

Microsoft Office 365 Business Standard - 1 Nutzer

Preis: 159,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Lenovo ThinkPad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Preis: 119,00 EUR

Zum Angebot

Apple iPhone XR Smartphone Handy 6,1 Zoll 64GB Speicher Schwarz

Apple iPhone XR Smartphone Handy 6,1 Zoll 64GB Speicher Schwarz

Preis: 189,00 EUR

Zum Angebot

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 4GB Windows 10 Pro DVD Brenner

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 4GB Windows 10 Pro DVD Brenner

Preis: 269,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 659,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5420 Rugged 14 Zoll Touch Display Intel Core i5 512GB SSD 16GB Windows 11 Pro

Dell Latitude 5420 Rugged 14 Zoll Touch Display Intel Core i5 512GB SSD 16GB Windows 11 Pro

Preis: 809,00 EUR

Zum Angebot

Apple iPad Air 3 (2019) 10,5 Zoll 256GB Wi-Fi + Cellular Space Grau

Apple iPad Air 3 (2019) 10,5 Zoll 256GB Wi-Fi + Cellular Space Grau

Preis: 319,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6

Preis: 159,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel

Preis: 129,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5520 15,6 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

Dell Latitude 5520 15,6 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

Preis: 719,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5510 15,6 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Pro Webcam

Dell Latitude 5510 15,6 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Pro Webcam

Preis: 699,00 EUR

Zum Angebot

Fujitsu B24-8 TE Pro LED grau 23,8 Zoll Full-HD 1920x1080 DVI-D DisplayPort VGA

Fujitsu B24-8 TE Pro LED grau 23,8 Zoll Full-HD 1920x1080 DVI-D DisplayPort VGA

Preis: 139,00 EUR

Zum Angebot

LG 24BK550Y-B schwarz 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar

LG 24BK550Y-B schwarz 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar

Preis: 119,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1200

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1200

Preis: 749,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 779,00 EUR

Zum Angebot

Eizo FlexScan EV2456-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Eizo FlexScan EV2456-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Preis: 209,00 EUR

Zum Angebot

Fujitsu Celsius M740 Intel Xeon Core E5 1620 v4 512GB SSD + 2TB HDD 32GB Windows 10 Pro Nvidia Quadro

Fujitsu Celsius M740 Intel Xeon Core E5 1620 v4 512GB SSD + 2TB HDD 32GB Windows 10 Pro Nvidia Quadro

Preis: 388,00 EUR

Zum Angebot

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Pro

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Pro

Preis: 269,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 840 G7 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro LTE

HP EliteBook 840 G7 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro LTE

Preis: 798,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 11 Pro Nvidia Quadro P4000

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 11 Pro Nvidia Quadro P4000

Preis: 699,00 EUR

Zum Angebot

Apple iPhone 11 Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Apple iPhone 11 Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Preis: 299,00 EUR

Zum Angebot

Eizo FlexScan EV2436W-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI Höhenverstellbar

Eizo FlexScan EV2436W-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI Höhenverstellbar

Preis: 159,00 EUR

Zum Angebot

Fujitsu Esprimo Q556 Intel Core i3 128GB SSD 4GB Windows 10 Home DVD Brenner

Fujitsu Esprimo Q556 Intel Core i3 128GB SSD 4GB Windows 10 Home DVD Brenner

Preis: 199,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6EU

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6EU

Preis: 149,00 EUR

Zum Angebot

Apple iPad Air 2 Tablet 9,7 Zoll Retina Multi-Touch 64GB SSD Wi-Fi + Cellular Space Grau

Apple iPad Air 2 Tablet 9,7 Zoll Retina Multi-Touch 64GB SSD Wi-Fi + Cellular Space Grau

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5530 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Home Webcam

Dell Latitude 5530 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Home Webcam

Preis: 729,00 EUR

Zum Angebot

Eizo FlexScan EV2736W-BK LED IPS 27 Zoll WQHD 2560x1440 DisplayPort DVI Schwarz

Eizo FlexScan EV2736W-BK LED IPS 27 Zoll WQHD 2560x1440 DisplayPort DVI Schwarz

Preis: 279,00 EUR

Zum Angebot
🔥 Bestseller

Dell UltraSharp U2412M schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI-D VGA USB Höhenverstellbar

Dell UltraSharp U2412M schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI-D VGA USB Höhenverstellbar

Preis: 139,00 EUR

Zum Angebot

Eizo FlexScan EV2450-GY LED grau 24 Zoll Full HD 1920x1080 HDMI DisplayPort VGA DVI Höhenverstellbar

Eizo FlexScan EV2450-GY LED grau 24 Zoll Full HD 1920x1080 HDMI DisplayPort VGA DVI Höhenverstellbar

Preis: 168,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 729,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5530 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Pro Webcam

Dell Latitude 5530 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Pro Webcam

Preis: 749,00 EUR

Zum Angebot
🔥 Bestseller

Dell P2419HC schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI USB Höhenverstellbar

Dell P2419HC schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI USB Höhenverstellbar

Preis: 199,00 EUR

Zum Angebot

Apple iPad 7 Tablet 10,2 Zoll Retina Multi-Touch 32GB SSD Wi-Fi Space Grau

Apple iPad 7 Tablet 10,2 Zoll Retina Multi-Touch 32GB SSD Wi-Fi Space Grau

Preis: 179,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 639,00 EUR

Zum Angebot

Fujitsu P2410 TS CAM schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort USB inkl. Webcam - Neugerät

Fujitsu P2410 TS CAM schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort USB inkl. Webcam - Neugerät

Preis: 169,00 EUR

Zum Angebot

Fujitsu Celsius M740 Intel Xeon Quad Core E5 v4 512GB SSD 32GB Windows 10 Pro Nvidia Quadro

Fujitsu Celsius M740 Intel Xeon Quad Core E5 v4 512GB SSD 32GB Windows 10 Pro Nvidia Quadro

Preis: 719,00 EUR

Zum Angebot

AOC I2475PXQU-GR Pro-line LED grau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

AOC I2475PXQU-GR Pro-line LED grau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Preis: 119,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Preis: 119,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 845 G8 14 Zoll 1920x1080 Full HD AMD Ryzen 7 PRO 512GB SSD 16GB Windows 11 Pro Fingerprint

HP EliteBook 845 G8 14 Zoll 1920x1080 Full HD AMD Ryzen 7 PRO 512GB SSD 16GB Windows 11 Pro Fingerprint

Preis: 759,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam

Preis: 249,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T1200

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T1200

Preis: 759,00 EUR

Zum Angebot

Apple iPhone SE (2022) 64GB Dual-SIM Mitternacht MMXF3ZD/A

Apple iPhone SE (2022) 64GB Dual-SIM Mitternacht MMXF3ZD/A

Preis: 389,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P330 Tower Gen 2 Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro RTX 4000

Lenovo ThinkStation P330 Tower Gen 2 Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro RTX 4000

Preis: 899,00 EUR

Zum Angebot
🔥 Bestseller

Dell Precision 7550 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Dell Precision 7550 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 789,00 EUR

Zum Angebot

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Home

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Home

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 10 Pro

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 10 Pro

Preis: 898,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5510 15,6 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Home Webcam

Dell Latitude 5510 15,6 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Home Webcam

Preis: 679,00 EUR

Zum Angebot

MSA-1 Monitorschwenkarm High Quality, Aluminium silbergrau, inkl. Tischbefestigung

MSA-1 Monitorschwenkarm High Quality, Aluminium silbergrau, inkl. Tischbefestigung

Preis: 168,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 840 G8 14 Zoll 1920x1080 Full HD Intel Core i5 256GB SSD 16GB Windows 10 Pro - Neugerät

HP EliteBook 840 G8 14 Zoll 1920x1080 Full HD Intel Core i5 256GB SSD 16GB Windows 10 Pro - Neugerät

Preis: 718,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

Preis: 879,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P330 Tiny USDT Intel Six Core i7 512GB SSD 16GB Windows 11 Pro Nvidia Quadro

Lenovo ThinkStation P330 Tiny USDT Intel Six Core i7 512GB SSD 16GB Windows 11 Pro Nvidia Quadro

Preis: 558,00 EUR

Zum Angebot

Fujitsu Esprimo P720 0-Watt Intel Core i3 256GB SSD 8GB Windows 10 Pro MAR

Fujitsu Esprimo P720 0-Watt Intel Core i3 256GB SSD 8GB Windows 10 Pro MAR

Preis: 188,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 10 Pro Nvidia Quadro P4000

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 10 Pro Nvidia Quadro P4000

Preis: 699,00 EUR

Zum Angebot
🔥 Bestseller

Dell Optiplex 7060 Micro USFF Intel Six Core i5 512GB SSD 16GB Windows 11 Pro inkl. W-Lan

Dell Optiplex 7060 Micro USFF Intel Six Core i5 512GB SSD 16GB Windows 11 Pro inkl. W-Lan

Preis: 428,00 EUR

Zum Angebot

Apple iPad 6 Tablet 9,7 Zoll Retina Multi-Touch 128GB SSD Wi-Fi + Cellular Space Grau

Apple iPad 6 Tablet 9,7 Zoll Retina Multi-Touch 128GB SSD Wi-Fi + Cellular Space Grau

Preis: 339,00 EUR

Zum Angebot

Fujitsu Esprimo D756 E85+ Intel Pentium G4400 256GB SSD 4GB Windows 10 Pro DVD Brenner

Fujitsu Esprimo D756 E85+ Intel Pentium G4400 256GB SSD 4GB Windows 10 Pro DVD Brenner

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Firefly 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

HP ZBook Firefly 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

Preis: 779,00 EUR

Zum Angebot

Fujitsu Esprimo Q957 Intel Core i3 128GB SSD + 500GB HDD 8GB Windows 10 Home

Fujitsu Esprimo Q957 Intel Core i3 128GB SSD + 500GB HDD 8GB Windows 10 Home

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 512GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 512GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 679,00 EUR

Zum Angebot

Philips V-Line 243V7QDSB 24 Zoll Full HD 1920x1080 IPS VGA DVI HDMI Schwarz NEU & OVP

Philips V-Line 243V7QDSB 24 Zoll Full HD 1920x1080 IPS VGA DVI HDMI Schwarz NEU & OVP

Preis: 139,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre M70q Tiny Intel Core i5-10500T 2TB SSD 16GB Windows 11 Pro

Lenovo ThinkCentre M70q Tiny Intel Core i5-10500T 2TB SSD 16GB Windows 11 Pro

Preis: 579,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 719,00 EUR

Zum Angebot

Fujitsu Display B22-8 WE Neo 22 Zoll HD+ 1680x1050 DisplayPort DVI-D VGA Höhenverstellbar NEU & OVP

Fujitsu Display B22-8 WE Neo 22 Zoll HD+ 1680x1050 DisplayPort DVI-D VGA Höhenverstellbar NEU & OVP

Preis: 139,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5430 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro LTE

Dell Latitude 5430 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro LTE

Preis: 958,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam - Neugerät

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam - Neugerät

Preis: 269,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 7420 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Pro Webcam

Dell Latitude 7420 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 11 Pro Webcam

Preis: 629,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 749,00 EUR

Zum Angebot
🔥 Bestseller

Dell Latitude 5410 14 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Pro Webcam

Dell Latitude 5410 14 Zoll 1920x1080 Full HD Intel Core i7 1TB SSD 32GB Windows 11 Pro Webcam

Preis: 619,00 EUR

Zum Angebot

LG 24BK550Y-B 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar Schwarz

LG 24BK550Y-B 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar Schwarz

Preis: 129,00 EUR

Zum Angebot

Eizo FlexScan EV2436WFS-GY Lichtgrau 24 Zoll WUXGA 1920x1200 DisplayPort DVI VGA

Eizo FlexScan EV2436WFS-GY Lichtgrau 24 Zoll WUXGA 1920x1200 DisplayPort DVI VGA

Preis: 149,00 EUR

Zum Angebot
>

📦 Ein JAR-File erstellen

Folgende Schritte führen dich von der Java-Datei bis zum ausführbaren JAR-Archiv:

  1. Speichere den Code in einer Datei namens EnvVariablesPrinter.java.
  2. Öffne dein Terminal und wechsle in das Verzeichnis der Datei.
  3. Kompiliere mit javac EnvVariablesPrinter.java.
  4. Erzeuge das JAR-File mit jar cvfe EnvVariablesPrinter.jar EnvVariablesPrinter EnvVariablesPrinter.class.

📤 Übertragung auf IBM i

Jetzt bringst du die Datei auf dein IBM i-System – z. B. per FTP:

  1. Starte FTP: ftp dein.ibmi.host
  2. Melde dich mit deinem User und Passwort an.
  3. Wechsle auf IBM i ins Verzeichnis /home/deinuser mit cd /home/deinuser.
  4. Wechsle lokal in das Verzeichnis deiner Datei mit lcd /dein/pfad.
  5. Setze den Übertragungsmodus auf Binär: bin
  6. Lade die Datei hoch: put EnvVariablesPrinter.jar


Werbung/Advertising

Aromatico

▶️ Ausführung in der QSH (Qshell)

Wenn die Datei auf dem IBM i liegt, kannst du sie direkt in der Qshell (QSH) starten:

  1. Starte QSH mit dem Befehl QSH.
  2. Wechsle in dein Home-Verzeichnis: cd /home/deinuser.
  3. Führe die Datei aus: java -jar EnvVariablesPrinter.jar
             QSH Command Entry

===> java -jar EnvVariablesPrinter.jar 

F3=Exit   F6=Print   F9=Retrieve   F12=Disconnect 
F13=Clear F17=Top    F18=Bottom    F21=CL command entry

Und voilà – dein Java-Programm sollte jetzt auf der IBM i laufen und die Umgebungsvariablen auf der Konsole ausgeben!

GITHUB

Beispiele stehen im Repo RPG4J on GitHub zum Download zur Verfügung.