datenbank-programmierung

Getting Started

Run all commands through a command prompt/terminal in your jdbc folder.

Compile from project folder

javac ./src/App.java -d ./build

Run with

java -cp "./build;./lib/postgresql-jdbc.jar" App dbpassword

For Linux/Mac the ; should be a :.

Java in Path

To use Java properly it has to be available in the environment variables.

Run java -version to see if you have java properly installed.

On Windows it should get automatically added. On Linux or MacOS you can also use export PATH=/Applications/<you jdk folder>/Contents/Home/bin:$PATH to add the path to the JDK into you environment.

Follow the entwicklungsumgebung.md guide to set up your local development setup.

Folder Structure

The workspace contains two folders by default, where:

Reference

https://www.postgresqltutorial.com/postgresql-jdbc/