Salve a tutti,
ho letto tutti i post riguardanti la creazione di un exe, partendo dalle pillole: ho provato i vari metodi e mi pare che quello più semplice sia Jsmooth (Jelude sembra pure semplice, ma non riesco a farlo funzionare).
Jsmooth riesco a farlo quasi funzionare, dico quasi perchè quando lancio l'applicazione mi compare una shell di dos con scritto
Extracting properties from resource:
- <arguments> == <>
- <mainclassname> == <mio>
- <jvmsearch> == <>
- <minversion> == <>
- <maxversion> == <>
- <currentdir> == <>
- <embedjar> == <true>
- <classpath> == <>
- <skel_Message> == <Java has not been found on your computer. Do you want to
download it?>
- <skel_URL> == <http://www.java.com>
- <skel_SingleProcess> == <0>
- <skel_Debug> == <0>
- <javapropertiescount> == <0>
- < > == <>
ResourceManager resource configuration:
- Resource category: JAVA
- Current directory:
- Property count: 14
- Property: =
- Property: arguments=
- Property: classpath=
- Property: currentdir=
- Property: embedjar=true
- Property: javapropertiescount=0
- Property: jvmsearch=
- Property: mainclassname=mio
- Property: maxversion=
- Property: minversion=
- Property: skel_Debug=0
- Property: skel_Message=Java has not been found on your computer. Do you want
to download it?
- Property: skel_SingleProcess=0
- Property: skel_URL=http://www.java.com
Main class: mio
Currentdir: C:\Documents and Settings\dave\javafiles\pr
Now searching the JVM installed on the system...
JVM Lookup: found VM (V(1)(6)(0)) in registry.
JVM Lookup: found VM (V(1)(6)(0)) in registry.
JVM Lookup: found VM (V(1)(6)(0)) in registry.
JVM Lookup: found VM (V(1)(6)(0)) in registry.
JVM Lookup: Env-Var JAVA_HOME not defined on this system.
JVM Lookup: Env-Var JRE_HOME not defined on this system.
JVM Lookup: Env-Var JDK_HOME not defined on this system.
Current directory is
JSmooth will now try to use the VM in the following order: registry;jdkpath;jrep
ath;javahome;jview;exepath
------------------------------
Trying to use a JVM defined in the registry (4 available)
VM will be tried in the following order: 1.6.0;1.6.0;1.6.0;1.6.0;
- Trying registry: <C:\Programmi\Java\jre1.6.0_01><C:\Programmi\Java\ jre1.6.0_01
\bin\client\jvm.dll><1.6.0>
trying "C:\Programmi\Java\jre1.6.0_01\bin\java.exe"
Running process registry ... 0.0.0 <= 1.6.0<= 0.0.0
Version of VM checked... OK
Running new proc for "C:\Programmi\Java\jre1.6.0_01\bin\javaw.exe"
Created temporary filename to hold the jar (C:\DOCUME~1\dave\IMPOST~1\Temp\temp0
.jar)
Embedded jar saved at C:\DOCUME~1\dave\IMPOST~1\Temp\temp0.jar
CLASSNAME = <mio>
---------------------------------------------------
COMMAND LINE: "C:\Programmi\Java\jre1.6.0_01\bin\javaw.exe" -classpath "C:\DOCU
ME~1\dave\IMPOST~1\Temp\temp0.jar;" mio
RESULT: 1
WAITING: 1
WAIT ENDED
DELETING C:\DOCUME~1\dave\IMPOST~1\Temp\temp0.jar
NORMAL EXIT
--PRESS A KEY--
Ma non compare il semplice messaggio di output che il mio programma in java
realizza.
Dopo aver premuto "A KEY" la finestra si chiude, altrimenti rimane lì con tutta la pappardella di cui sopra.
Ho seguito esattamente i passi che sono indicati qui:
http://forum.html.it/forum/showthrea...hlight=Jsmooth
Sapete aiutarmi?
Grazie
Davide