• Post Reply Bookmark Topic Watch Topic
  • New Topic

.jar file  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i create a jar file, it includes all my classes, yes?

but if i have files the classes read from, will the jar file still work,

if i have the .txt files in the same folder as the .jar file?

Justin
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Justin Fox:
when i create a jar file, it includes all my classes, yes?


If you put them there, yes.

Originally posted by Justin Fox:
but if i have files the classes read from, will the jar file still work,

if i have the .txt files in the same folder as the .jar file?


If the files are included and you're accessing them in a way that will find them such as getResource() then yes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!