Problemas con archivo .jar?

Hola a todos

De nuevo molestandolos tengo problemas al abrir un archivo .jar, no sé cual es el error porque nisiquiera me deja verlo, les mando un pantallazo de lo que me aparece, tengo un sistema operativo de 64 bits, no sé si es el path que genera java, la verdad no se qué es?? , decidi mejor consultar con ustedes que son los expertos

Ojala y me puedan ayudar

http://img405.imageshack.us/img405/7069/errortn.jpg

saludos y gracias de antemano

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.
Imagen de checotaku

No se ve el mensaje pero...

Pues es dificil ver el error el mensaje que te aparece en el pantallazo que colocaste pero parece que es la salida del comando jar cuando se le pasan parametros incorrectos o no se le pasan parametros.
Si lo que quieres es ejecutar el programa contenido en ese jar puedes intentar con el siguiente comando en una consola de msdos

java -jar ReservacionesBD.jar

Si el archivo manifest es correcto y tiene una main-class declarada y las bibliotecas que utiliza tambien estan disponibles entonces se deberia ejecutar o lanzarte algun error mas especifico.

Por otro lado si lo que quieres es extraer el contenido del archivo jar puedes usar el siguiente comando

jar -xf ReservacionesDB.jar

Saludos

Ayuda sigo teniendo problemas con la base de datos?

Me ha servido mucho tu ayuda. Ya puedo ver el programa contenido en el archivo jar, pero es un programa que se conecta a una base de datos mysql, cuando quiero agregar registros me dice en el programa que "cannot open a conection", a que se debe esto y como lo puedo solucionar ? ?

9/05/2010 02:01:58 PM org.hibernate.cfg.annotations.Version
INFO: Hibernate Annotations 3.3.1.GA
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment
INFO: Hibernate 3.2.5
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment
INFO: hibernate.properties not found
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment
INFO: using JDK 1.4 java.sql.Timestamp handling
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration getConfigurationInputStrea
m
INFO: Configuration resource: /hibernate.cfg.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Aeropuerto.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Avion.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Pasajero.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Reservacion.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Vuelo.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Pais.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Ciudad.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Fabricante.hbm.xml
9/05/2010 02:02:00 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Modelo.hbm.xml
9/05/2010 02:02:00 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Aeropuerto -> aeropuerto
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Avion -> avion
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Pasajero -> pasajero
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Reservacion -> reservacion
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Vuelo -> vuelo
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Pais -> pais
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Ciudad -> ciudad
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Fabricante -> fabricante
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Modelo -> modelo
9/05/2010 02:02:00 PM org.hibernate.cfg.AnnotationConfiguration secondPassCompil
e
INFO: Hibernate Validator not found: ignoring
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: Using Hibernate built-in connection pool (not for production use!)
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: Hibernate connection pool size: 20
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: autocommit mode: false
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/re
servaciones
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: connection properties: {user=resuser, password=****}
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
ADVERTENCIA: Could not obtain connection metadata
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for use
r 'resuser'@'localhost' to database 'reservaciones'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:910)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3923)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1273)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2031)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:718)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio
n(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009
)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1292)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
ionConfiguration.java:859)
at control.HibernateUtil.(HibernateUtil.java:24)
at interfaces.PaisGUI.desplegarLista(PaisGUI.java:218)
at interfaces.PaisGUI.(PaisGUI.java:34)
at interfaces.ReservacionesApp.menuItem_paisesActionPerformed(Reservacio
nesApp.java:253)
at interfaces.ReservacionesApp.access$600(ReservacionesApp.java:21)
at interfaces.ReservacionesApp$7.actionPerformed(ReservacionesApp.java:1
31)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
9/05/2010 02:02:00 PM org.hibernate.dialect.Dialect
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
9/05/2010 02:02:00 PM org.hibernate.transaction.TransactionFactoryFactory buildT
ransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
9/05/2010 02:02:00 PM org.hibernate.transaction.TransactionManagerLookupFactory
getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-wr
ite or transactional second-level cache is not recommended)
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFac
tory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
9/05/2010 02:02:00 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO: Using ASTQueryTranslatorFactory
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
9/05/2010 02:02:00 PM org.hibernate.impl.SessionFactoryImpl
INFO: building session factory
9/05/2010 02:02:01 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance

INFO: Not binding factory to JNDI, no JNDI name configured
9/05/2010 02:02:01 PM org.hibernate.util.JDBCExceptionReporter logExceptions
ADVERTENCIA: SQL Error: 1044, SQLState: 42000
9/05/2010 02:02:01 PM org.hibernate.util.JDBCExceptionReporter logExceptions
GRAVE: Access denied for user 'resuser'@'localhost' to database 'reservaciones'

Muchas gracias por todo

Saludos

Imagen de checotaku

Acceso denegado a usuario reuser

Asumiendo que el esquema de base de datos completo para este programa ya este creado en mysql, lo que te indica el el mensaje

Could not obtain connection metadata
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'resuser'@'localhost' to database 'reservaciones'

Access denied for user 'resuser'@'localhost' to database 'reservaciones'

Es que el usuario resuser no tiene privilegos sobre la base de datos reservaciones. Primero necesitas crear este usuario y luego darle privilegios, esto lo puedes hacer desde el cliente de mysql

mysql> CREATE USER 'reuser'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON reservaciones.* TO 'reuser'@'localhost'

De momento no tengo un mysql a la mano para confirmartelo,pero creo que eso deberia funcionar.
Saludos

Ya quedo

Gracias por tu ayuda ya quedo todo

saludos