Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hsqldb aus der Anwendung heraus starten

Empfohlene Antworten

Veröffentlicht

Ich benötige nochmal Eure Hilfe. Wie kann ich eine hsqldb aus meiner Anwendung heraus starten? Ich hab die Doku auf hsqldb.org gelesen und werd nicht richtig schlau.

Muss das so laufen wie

Testdb db = null;

try

{

   db = new Testdb("db_file");

}

catch(Exception ex1)

{

    ex1.printStackTrace();

}

In einem anderen Forum hat man mich nur auf die Doku verwiesen. Ich benötige aber einfach ein bildliches Beispiel - weil Beispiele für eine Standalone-Lösung finde ich genügend. Bitte helft mir.

das steht doch in der doku eh genau drinnen, wie man eine instanz von HSQL startet:

Chapter 1. Running and Using Hsqldb

das ganze wirst du dann halt noch mit einem Process.start() wrappen müssen.

s'Amstel

  • Autor

Danke schon mal für Deine schnelle Antwort. Leider startet der Server bei mir nicht.

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.ResultSet;

import java.sql.ResultSetMetaData;

import java.sql.SQLException;

import java.sql.Statement;


public static class Login

{

   Connection conn;

   Class.forName("org.hsqldb.jdbcDriver");

   conn = DriverManager.getConnection("jdb:hsqldb:hsql://localhost/musicShop", "sa", "");

   Server server = new Server();

   server.start();

}

:(

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.