Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
    • bind9 named
    • NX Client
    • FreeNX Server
    • Archive
    • Asterisk
    • Audio Recorder
    • Build essential
    • Chromium
    • Couch DB
    • DMA
    • DVD
    • Dovecot
    • Eclipse
    • FTP server
    • Firefox
    • GWT
    • Games
    • Gimp
    • Glassfish
    • Gnome classic
    • Google Music Manager
    • HAproxy
    • HTTrack
    • Hibiscus
    • Icinga
    • Install Cinnamon
    • Install thttpd
    • Install vivaldi
    • Java JDK
    • Jenkins
      • Install JDK
      • Jenkins CLI
    • Kodi
    • LTSP
    • LXC
    • LibreOffice
    • Mailserver
    • MariaDB
    • Microsoft teams
    • MiniDLNA
    • Mosquitto MQTT server
    • MySQL Connector/J
    • MySQL Server
    • MySQL Workbench
    • Nemo
    • NetBeans
    • Node-RED
    • Obnam
    • OpenElec PXE
    • OpenFortiGUI
    • Oracle XE
    • Postfix
    • ProjectLibre
    • Proton VPN
    • Proton VPN
    • Roundcubemail
    • Ruby on Rails
    • Rundeck
    • SQL Developer
    • SQuirreL SQL
    • Scribus
    • Skype
    • SonarQube
    • Spotify
    • Squid
    • SteuerSparErklärung
    • TeamViewer
    • Thunderbird
    • Tipp10
    • Tomcat
    • Ubuntu restricted extras
    • UnixBench
    • VLC player
    • VMware Player
    • Vega
    • VirtualBox
    • Visual Studio Code
    • Webserver
    • Wine
    • WordPress
    • apt-cacher-ng
    • autofs
    • avidemux
    • ckeditor
    • consul
    • ddrescue
    • duplicity
    • easytax
    • gbrainy
    • gitea
    • gnokii
    • gogs
    • gopenvpn
    • hddtemp
    • homebridge
    • iSCSI
    • jitsi
    • lm-sensors
    • mattermost
    • myTinyTodo
    • neatx
    • netdata
    • nullmailer
    • openproject
    • phpMyAdmin
    • pip
    • pipelight
    • proftpd
    • prometheus
    • pyenv
    • rTorrent
    • restic
    • rustdesk
    • smartmontools
    • snap
    • speedtest
    • sshuttle
    • stress test
    • syslinux
    • tftp server
    • tinyproxy
    • topgrade
    • uShare
    • x2go
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
  • jenkins
  • java
# download and extract JDK
URL=http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz
wget --continue --no-check-certificate --header "Cookie: oraclelicense=a" ${URL} -O /tmp/${URL##*/}
tar -C /var/lib/jenkins/tools/hudson.model.JDK/ -xzf /tmp/jdk-8u25-linux-x64.tar.gz
# configure JDK

http://192.168.1.111:8080/configure
JDK
JDK installations
Add JDK
Install automatically: check out
JAVA_HOME: /var/lib/jenkins/tools/hudson.model.JDK/jdk1.8.0_25
Save

# create New Item

Item name: JDBCTest
check "Freestyle project"
JDK: JDK8
Build > Execute shell > Command
javac JDBCTest.java && java JDBCTest
Save

Build Now

Upload / Create file on Jenkins machine:

# /var/lib/jenkins/jobs/JDBCTest/workspace/JDBCTest.java

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class JDBCTest {
public static void main(String[] args) {
String HOST = "db_host";
String DB = "db_name";
String USER = "user_name";
String PASSWORD = "user_pass";

System.out.println("java.version:" + System.getProperty("java.version"));
System.out.println("java.class.path:" + System.getProperty("java.class.path"));

Connection con = null;
Statement stmt = null;
ResultSet rs = null;

try{
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://" + HOST + ":3306/" + DB, USER, PASSWORD);
stmt = con.createStatement();
rs = stmt.executeQuery("SELECT table_name FROM INFORMATION_SCHEMA.TABLES");

while (rs.next()) {

System.out.println(rs.getString(1));
}
}catch(SQLException e){
e.printStackTrace();
}catch(ClassNotFoundException e){
e.printStackTrace();
}finally{
try{rs.close();}catch(Exception e){}
try{stmt.close();}catch(Exception e){}
try{con.close();}catch(Exception e){}
}
}
}

Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung