Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/04/2011, 22:05
danielagogomez
 
Fecha de Ingreso: marzo-2011
Mensajes: 97
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: Problema con instalador en java

Pues he estado revisando y creo que el problema era jsmooth que no creaba bien el exe, descarge el programa Jar2Exe, puede crea bien mi .exe y crearle su instalador, pero como le mencione al principio solo era un pequeño ejemplo y pense que ya estaba resuelto mi problema, pero a la hora de hacerlo ya con mi proyecto no puedo crear el jar no se si sea por que mi proyecto usa conexion con base de datos, estoy usando netbeans y le doy en clean and build proyect, y me aparece esto:
init:
deps-clean:
Updating property file: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build\buil t-clean.properties
Deleting directory C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build
Updating property file: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build\buil t-jar.properties
Created dir: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build\clas ses
Created dir: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build\empt y
Compiling 19 source files to C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\build\clas ses
Note: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\src\Prueba Boton.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile:
Created dir: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\dist
C:\Users\Chio\Desktop\mysql-connector-java-5.1.12-bin.jar is a directory or can't be read. Not copying the libraries.
Building jar: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\dist\Prueb aBoton.jar
Not copying the libraries.
To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\PruebaBoton\dist\Prueb aBoton.jar"
jar:
BUILD SUCCESSFUL (total time: 1 minute 0 seconds)
y si me crea el .jar pero cuando intento abrirlo no pasa nada y donde me creo el jar hay un archivo que dice README, y al abrirlo me dice esto:
========================
BUILD OUTPUT DESCRIPTION
========================

When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).

To run the project from the command line, go to the dist folder and
type the following:

java -jar "PruebaBoton.jar"

To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.

Notes:

* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, none of the
classpath elements are copied to the lib folder. In such a case,
you need to copy the classpath elements to the lib folder manually after the build.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
Despues intente buscar el manifest abriendo mi arcchivo .jar pero no viene solo vienen las clases de mi proyecto, alguein sabe a que se deba eso que no pueda ejecutar mi .jar, disculpen por poner todo pero esuqe deverdad que no se que hacer espero y me puedan ayudar saludoss. :(