Estou tentanto executar um .jar em uma maquina da rede porem da o seguinte erro:
Could not find the main class “…”. Program will exit.
O Unico Manifest.MF que encontrei foi da unica biblioteca que estou usando “mysql” .
Porem nao consigo edita-lo!
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Built-By: mysqldev
Name: common
Specification-Title: JDBC
Specification-Version: 4.0
Specification-Vendor: Sun Microsystems Inc.
Implementation-Title: MySQL Connector/J
Implementation-Version: 5.1.6
Implementation-Vendor-Id: com.mysql
Implementation-Vendor: MySQL AB
Classe de Conexao:
public class ConnectionFactory {
public static Connection getConnection() throws Exception {
try {
Class.forName ("com.mysql.jdbc.Driver").newInstance();
return DriverManager.getConnection("jdbc:mysql://xx.xxx.xx.xxx:3306/sgd", "root", "");
}catch (ClassNotFoundException e) { throw new SQLException(e.getMessage());
}
}
}
Executo o .jar na minha maquina normalmente via .jar ou linha de comando sem nenhum erro.
Alguem pode ajudar?