• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jar initialization

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the topic in my assignment ( about Class functionality) is activation of the class that packaged in jar file when it inserted in the resident directory( as i understood of
some initial program that already working, but i am not sure so far). I.e. drag and drop jar in the directory and that will run the program. For me it sounds quite mistical. I was told that some scripting(?) and ZipStream might be involved...
I really don't know what begin from. Any help will be appreciated.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Way to scattered a description. It just possible sounds like you might be trying to run an application on a MAC???
 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That what i said at first
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know basically NOTHING about Mac's, but here is a thread on JBindery.
http://www.javaranch.com/ubb/Forum33/HTML/002032.html
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vladimir found his own answer!!!
This is what he sent me:

Hi Cindy!
You only person that interested in my question about jar initialization in about 5 places where i put my question. May be it would be interested for you to know the answer.
(http://www.javaranch.com/ubb/Forum1/HTML/001272.html)
So it works. You should use UPLClassLoader to initialize the Jar.
Program works that way:
Thread reading from current directory using FilenameFilter, when Jar copied into directory it filtered by .jar extension and running jar.
If you still wonna more details the code is available.
Vlady
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic