0

I am using netbeans to developed javafx application. But i can't deploy to single jar file (standalone). In Oracle's web site there is a documentation but its complicated. And also i tried some others programs like launch4j, innosetup etc. Is there a video or picture tutorial for this? Is there a trick or easy way to do this.

note: in project folder there exist sqlite database, jdbc libraries and some pictures, not only java and fxml classes.

projectname-->db-->database.sqlite

projectname-->pic-->image.png

projectname-->lib-->jdbc-sqlite.jar

C.T
  • 151
  • 2
  • 9

1 Answers1

1

"in project folder there exist sqlite database, jdbc libraries and some pictures, not only java and fxml classes." - There's an issue!

  • Put pictures in some java package and load them as a resources. See this question.
  • You cannot pack sqlite db in jar. However, you can alter your application to create database on first start up (if database doesn't exist). See this question.
  • Necessary libraries should be packed in jar if you are using something like Eclipse IDE's to Runnable JAR wizard.
Community
  • 1
  • 1
Branislav Lazic
  • 14,388
  • 8
  • 60
  • 85