How to move the Netbeans project to a . jar file?

Asked

Viewed 1,017 times

0

I just did a project in Netbeans and would like to turn it into a app to run on PC, so I want to turn it into .jar. How to do this?

  • Just export the jar.

  • I can’t export the jar

  • F11 or goes in Run -> Build project

  • When I go to "export project", only the option to ZIP appears

  • You tried what I said in the last comment?

  • I tried, but nothing happens, if it happened I don’t know where he built the project

  • In the DIST folder within your project

  • Where I find the DIST folder

  • See the answer below.

Show 4 more comments

1 answer

1


In netbeans, just press F11 with the selected project or right-click on the desired project, and click on Build or Clean and Bluid:

inserir a descrição da imagem aqui

Netbeans will create a file jar within a subfolder in the directory of your project called dist.

  • Thank you diegofm, sorry for the stupidity, I started using netbeans today.

  • @Guilhermepassos without any problems :)

  • @Guilhermesteps if the answer helped you, you can mark it as accepted by clicking on v to the left. See how the site works in [tour]

  • 1

    I’ll take it, I’m just waiting for the minimum time for it

  • i managed to turn into . jar, but he’s not running, has some suggestion of what to do?

  • @Guilhermepassos ai is another problem, and quite complicated to suggest something because it may have N causes. Try running the jar via command line and see if errors appear. Open a prompt window in the dist folder and type: java -jar arquivoJar.jar

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.