• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

.jar file

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic