🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1682

No funciona jar construido con NetBeans

#1682
From: Francisco F. Artese
Date: Sat, 20 Aug 2005 05:33
192 lines
10443 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Al compilar por ejemplo una de la demos que trae NetBeans, en el IDE la
aplicaci�n funciona
pero al ir al directorio /dist  y hacer java -jar demo.jar, esta ya no
funciona.

Este es el debug que arroja
-
-----------------------------------------------------------------------------------------------------------------
Detected Java version: 1.4 in: /usr/java/j2sdk1.4.2_06/jre
Detected OS: Linux
parsing buildfile
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
parsing buildfile
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
with URI =
jar:file:/home/frank/netbeans-4.1/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
parsing buildfile /home/frank/Pruebas/Java/AnagramGame/build.xml with
URI = file:///home/frank/Pruebas/Java/AnagramGame/build.xml
Project base dir set to: /home/frank/Pruebas/Java/AnagramGame
Importing file nbproject/build-impl.xml from
/home/frank/Pruebas/Java/AnagramGame/build.xml
parsing buildfile
/home/frank/Pruebas/Java/AnagramGame/nbproject/build-impl.xml with URI =
file:///home/frank/Pruebas/Java/AnagramGame/nbproject/build-impl.xml
Build sequence for target `jar' is [-pre-init, -init-private,
- -init-user, -init-project, -init-macrodef-property, -do-init,
- -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit,
- -init-macrodef-nbjpda, -init-macrodef-debug, -init-macrodef-java,
- -init-presetdef-jar, init, deps-jar, -pre-pre-compile, -pre-compile,
- -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar,
- -do-jar-with-manifest, -do-jar-without-manifest, -do-jar-with-mainclass,
- -post-jar, jar]
Complete build sequence is [-pre-init, -init-private, -init-user,
- -init-project, -init-macrodef-property, -do-init, -post-init,
- -init-check, -init-macrodef-javac, -init-macrodef-junit,
- -init-macrodef-nbjpda, -init-macrodef-debug, -init-macrodef-java,
- -init-presetdef-jar, init, deps-jar, -pre-pre-compile, -pre-compile,
- -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar,
- -do-jar-with-manifest, -do-jar-without-manifest, -do-jar-with-mainclass,
- -post-jar, jar, -pre-compile-single, -do-compile-single,
- -post-compile-single, compile-single, -debug-start-debugger,
- -debug-start-debuggee-applet, debug-applet, -post-compile-test-single,
- -pre-test-run, run-single, -pre-pre-compile-test, -pre-compile-test,
- -do-compile-test, -post-compile-test, compile-test,
- -debug-start-debuggee, debug, -debug-start-debugger-test,
- -debug-start-debuggee-test, debug-test, -do-test-run,
- -debug-start-debuggee-single, debug-single, test-report, -javadoc-build,
- -pre-test-run-single, -post-test-run, -test-browse, test,
- -javadoc-browse, javadoc, default, -pre-compile-test-single,
- -do-compile-test-single, compile-test-single, -do-test-run-single,
- -debug-start-debugger-stepinto, -post-test-run-single, deps-clean,
- -do-clean, -post-clean, clean, -pre-debug-fix, -do-debug-fix, debug-fix,
debug-stepinto, -do-debug-fix-test, run, debug-fix-test, test-single,
run-applet, ]
- -pre-init:
- -init-private:
Loading
/home/frank/Pruebas/Java/AnagramGame/nbproject/private/private.properties
- -init-user:
Loading /home/frank/.netbeans/4.1/build.properties
Property ${j2ee.platform.classpath} has not been set
Override ignored for property default.javac.source
Override ignored for property default.javac.target
- -init-project:
Loading /home/frank/Pruebas/Java/AnagramGame/nbproject/project.properties
Override ignored for property javac.debug
- -init-macrodef-property:
- -do-init:
Property ${manifest.file} has not been set
Unable to find ${manifest.file} to set property manifest.available
Found: test
Override ignored for property run.jvmargs
Override ignored for property javac.compilerargs
Property ${no.dependencies} has not been set
- -post-init:
- -init-check:
- -init-macrodef-javac:
- -init-macrodef-junit:
- -init-macrodef-nbjpda:
- -init-macrodef-debug:
- -init-macrodef-java:
- -init-presetdef-jar:
init:
deps-jar:
- -pre-pre-compile:
- -pre-compile:
- -do-compile:
com/toy/anagrams/lib/WordLibrary.java omitted as
com/toy/anagrams/lib/WordLibrary.class is up to date.
com/toy/anagrams/ui/About.form skipped - don't know how to handle it
com/toy/anagrams/ui/About.java omitted as
com/toy/anagrams/ui/About.class is up to date.
com/toy/anagrams/ui/Anagrams.form skipped - don't know how to handle it
com/toy/anagrams/ui/Anagrams.java omitted as
com/toy/anagrams/ui/Anagrams.class is up to date.
 omitted as  is up to date.
com omitted as com is up to date.
com/toy omitted as com/toy is up to date.
com/toy/anagrams omitted as com/toy/anagrams is up to date.
com/toy/anagrams/lib omitted as com/toy/anagrams/lib is up to date.
com/toy/anagrams/ui omitted as com/toy/anagrams/ui is up to date.
- -post-compile:
compile:
- -pre-jar:
- -pre-pre-jar:
- -do-jar-with-manifest:
Skipped because property 'manifest.available' not set.
- -do-jar-without-manifest:
com/toy/anagrams/lib/WordLibrary.class omitted as
com/toy/anagrams/lib/WordLibrary.class is up to date.
com/toy/anagrams/ui/About$1.class omitted as
com/toy/anagrams/ui/About$1.class is up to date.
com/toy/anagrams/ui/About.class omitted as
com/toy/anagrams/ui/About.class is up to date.
com/toy/anagrams/ui/Anagrams$1.class omitted as
com/toy/anagrams/ui/Anagrams$1.class is up to date.
com/toy/anagrams/ui/Anagrams$2.class omitted as
com/toy/anagrams/ui/Anagrams$2.class is up to date.
com/toy/anagrams/ui/Anagrams$3.class omitted as
com/toy/anagrams/ui/Anagrams$3.class is up to date.
com/toy/anagrams/ui/Anagrams$4.class omitted as
com/toy/anagrams/ui/Anagrams$4.class is up to date.
com/toy/anagrams/ui/Anagrams$5.class omitted as
com/toy/anagrams/ui/Anagrams$5.class is up to date.
com/toy/anagrams/ui/Anagrams.class omitted as
com/toy/anagrams/ui/Anagrams.class is up to date.
- -do-jar-with-mainclass:
Skipped because property 'manifest.available+main.class' not set.
- -post-jar:
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
-
----------------------------------------------------------------------------------------------------------------

Que estoy haciendo mal ? acaso esta mal configurado Netbeans y por eso
no genera un jar adecuado.
estoy liado con el classPath quiesas pueda ser eso ?

Uso:
 Netbeans IDE 4.1
/usr/java/j2sdk1.4.2_06
/usr/java/j2re1.4.2_09

Gracias por interesarse en mi post !!!

Saludos

- --
 Dime y lo olvido, ens��ame y lo recuerdo, invol�crame y lo aprendo.
            --Confucio (551-479 a. C.); fil�sofo chino.
======================================================
Francisco F. Artese Linux user #174223 Mandriva 2005
OpenPGP hkp://pgp.escomposlinux.org
Buenos Aires - Argentina - 11 Cib 14 Yaxkin 12 19 12 9 16
======================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDBsClq0XEodxw2lkRArkgAJ9Q+mXh3BDY5LZqTiSLO1IsrLhfyQCfQ5xc
xqGMoDvxaAmR357YvbxLTGc=
=8OG+
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <6urit2-cub.ln1@artese.com.ar>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!appleseed.escomposlinux.org!escomposlinux.org!appleseed.escomposlinux.org!artese.com.ar!news

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,f2df0118c06157fa,start
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!appleseed.escomposlinux.org!escomposlinux.org!appleseed.escomposlinux.org!artese.com.ar!news
From: "Francisco F. Artese" <webmasterNOSPAM@artese.com.ar>
Newsgroups: es.comp.os.linux.programacion
Subject: No funciona jar construido con NetBeans
Date: Sat, 20 Aug 2005 02:33:26 -0300
Organization: Servidor Appleseed de Ecolnet
Lines: 192
Message-ID: <6urit2-cub.ln1@artese.com.ar>
NNTP-Posting-Host: 201.255.228.225
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: appleseed.escomposlinux.org 1124516019 20631 201.255.228.225 (20 Aug 2005 05:33:39 GMT)
X-Complaints-To: news@appleseed.escomposlinux.org
NNTP-Posting-Date: Sat, 20 Aug 2005 05:33:39 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.6-1mdk (X11/20050322)
X-Accept-Language: en-us, en
X-Enigmail-Version: 0.91.0.0