Exe file and bin folder are not created in dist folder and jar files cannot be executed outside the

Like every developer i want to deploy the amazing game i have created, but did not succeed to do that either with jar nor with exe files.



Yes i read all the troubleshooting. the jar file is associated with the JRE + the -jar and all the command line.

and yes i read many (not all) of forum posts,

and yes I marked the create windows exe file.

and yes i cleaned and build thousand of times.



but still didn’t get the jar to work or got the exe file +lib folder in dist folder.



have i missed something ?

any ideas.



TNX,

Vertilka

How should we be able to tell?

i hoped that someone already encountered this problem.

or someone will tell me to check this or that.



:frowning:

I guess many people “didn’t get the jar to work” at some point, I doubt the solutions will help you though. Maybe you give some more information, like what you do, what error messages you get etc.

Check out this link, it gives some information on how to help people help you: http://www.mikeash.com/getting_answers.html

@vertilka said:
Like every developer i want to deploy the amazing game i have created, but did not succeed to do that either with jar nor with exe files.

Yes i read all the troubleshooting. the jar file is associated with the JRE + the -jar and all the command line.
and yes i read many (not all) of forum posts,
and yes I marked the create windows exe file.
and yes i cleaned and build thousand of times.

but still didn't get the jar to work or got the exe file +lib folder in dist folder.

have i missed something ?
any ideas.

TNX,
Vertilka


So since we kind of lack any useful information in the above to help solve your problem, I will ask some specific questions.

When you unzip the .zip file into a directory and try to run the .exe what happens? What error do you get?

If you unzip the .zip file into a directory and try to run the .exe directly from the command line with java -jar MyGame.exe what happens? What error do you get?

"didn't get the jar to work" has any of a million different meanings and each one has its own ways of trouble shooting further.

Thanks for the replies,

you are great.



What i did is:

  1. compile the game. build succeeded.
  2. run the game in the IDE. its amazing game. run and doing what i wanted.
  3. compiled with the “create windows exe file” selected, build succeeded.
  4. got no compilation error.
  5. opened the dist folder.
  6. no exe
  7. only the jar file
  8. as i understand i should also find a lib folder. got no lib folder.
  9. double click the jar file. got no error message nor dialog box.



    In other words:

    As i said above, no exe was created after compilation, in the directory nor the lib folder. so didn’t even deploy the game. i tried to run the game locally outside the IDE. so no zip or unzip.



    In (more) other words:

    The question has to parts:
  10. cannot compile to exe. got no exe file in dist folder. got no lib folder.
  11. cannot run the jar file by it self (using double click). got no error message or dialog.



    System:
  12. I have new fresh windows XP installation.
  13. 4 GB of memory
  14. 250 GB free disk space.
  15. java updated to the last version
  16. all application are legal (including windows).
  17. no viruses in the last scan.
  18. compiled with jME3 netbeans.

    (:

    (:



    Hope that helps.



    Tnx in advance,

    Vertilka

Please post the output of the build process after enabling desktop deployment. Also please run the jar from command line using “java -jar MyGame.jar” in the dist folder, then post the output here too. Better yet, if you spot the issue in the output logs, solve it :wink:

Here it is:



after compiling with desktop deployment “Create windows exe file”:



[java]ant -f C:/Projects/Tests clean jar

init:

deps-clean:

Updating property file: C:/Projects/Tests/build/built-clean.properties

Deleting directory C:/Projects/Tests/build

clean:

init:

deps-jar:

Created dir: C:/Projects/Tests/build

Updating property file: C:/Projects/Tests/build/built-jar.properties

Created dir: C:/Projects/Tests/build/classes

Created dir: C:/Projects/Tests/build/empty

Compiling 217 source files to C:/Projects/Tests/build/classes

warning: [options] bootstrap class path not set in conjunction with -source 1.5

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 warning

Copying 9 files to C:/Projects/Tests/build/classes

compile:

Created dir: C:/Projects/Tests/dist

Building jar: C:/Projects/Tests/dist/MyGame.jar

jar:

BUILD SUCCESSFUL (total time: 3 seconds)[/java]





after run from command line with java -jar C:/Projects/Tests/dist/MyGame.jar:





[java]no main manifest attribute, in C:/Projects/Tests/dist/MyGame.jar[/java]



Tnx,

Vertilka

It’s acting like you don’t have any of these options checked:

Yeah, you sure you have the right project selected there? Maybe you build another one? Could be the JmeTests project from how it looks.

that’s exactly what is strange here !!!

and yes all the check boxes (i even checked each one separately) were checked.



i already checked what was compiled:

  1. i cleaned (manually) the dist folder
  2. i right click my project and “clean and build” it
  3. after compilation saw that only the jar file exists there.
  4. i did a search for exe file from parent folder → no exe !!!



    :cry:



    also tried to compile the JmeTests → same results.



    suggestion:

    can someone install jME3 on fresh windows (not on developer computer, where everything always working) and maybe the bug will come out.



    ps.

    what is that warning is the compilation output ? is it related ?



    Tnx,

    V.

No, I don’t get this on windows. I never get any of the windows issues people report.

@vertilka said:
4) i did a search for exe file from parent folder -> no exe !!!


Just a note, though, you will never have an exe, only a zip containing an exe. The exe is deleted during build when the project is properly working.

Yeah, but still… The project that is being built in your log is in “C:\Projects\Tests”… Are you sure that is the project you mean? The JmeTests project is not a normal game project, you have to use the “BasicGame” template.

Haaaaaaaaaa!

This might be the point,

Indeed i used the JmeTests as a template project, cleaned every thing and started to work.



I will try to create new game project tonight.



Tnx, meanwhile…

V.

Reading the manual really helps, this is not supposed to be an offense.

2 Likes