Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package projektmistrzostwa;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import javax.swing.JOptionPane;
- public class Connect {
- public static Connection conn = null;
- public static void Polaczenie() {
- try {
- conn = DriverManager.getConnection("jdbc:oracle:thin:@oraas:1521:ora2014", "login", "haselo");
- System.out.println("Polaczono");
- } catch (Exception e) {
- JOptionPane.showMessageDialog(null, e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement