title: how to create a dynamic url for an embedded java sqlite database
body: <p>i coded a java sqlite db connector class that works. but the problem i have is that any time i am to use the connector with the same db on another computer i will have to change the location of the db in my connectDb(...) method. pls is there a way i can over come that? here is my db connector class:</p>
  
  <pre><code>import java.awt.HeadlessException;
  import java.sql.*;
  import javax.swing.*;
  
  public class JavaConnect {
  
  public static Connection ConnectDb() {
      try {
          Class.forName("org.sqlite.JDBC");
          Connection conn = DriverManager.getConnection("jdbc:sqlite:C:\\Users\\Me\\Documents\\IDEProjects\\myApp\\MYAppDB.sqlite");
  
          return conn;
      } catch (HeadlessException | ClassNotFoundException | SQLException e) {
          JOptionPane.showMessageDialog(null, e);
          return null;
      }
  
  }
  </code></pre>
  
  <p>thanks a lot in advance...</p>