0

After my project is done I click F11 (build button).

Successful bild to: C:\Users***\Documents\NetBeansProjects\twitter1\dist\twitterapitest.jar

And the .jar works perfectly when its left at this location, even if I convert it to an EXE it works in this location.

What do I do to be able to move this file to lets say, desktop? Or even to my laptop?

My build includes twitter4j for twitter web API purposes, does this have something to do with it?

Thanks in advance!

user3650211
  • 3
  • 1
  • 7

1 Answers1

0

Usually, Netbeans also generates a dist/lib folder that contains the Java dependencies. To run the JAR file, the dependencies must be in place. So you should be able to copy your dist/twiterapitest.jar to a different directory, as long as you include the dist/lib folder. If this does not work, please provide more error details.

Robin Krahl
  • 5,268
  • 19
  • 32
  • Yes, that works perfectly. Problem is, is there any way I can make this work with only an EXE or JAR? Independantly from the lib map – user3650211 May 18 '14 at 17:16