Thread: Slight issue with Jar

Results 1 to 5 of 5
  1. #1 Slight issue with Jar 
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    This is a client issue but, I'll post it in here for faster responses. Anyways, thanks to my friend he helped me successfully jar my client and get it to run, but, it won't load for other people. I'm assuming the issue is this ->

    private String cacheDir = "C:/";

    It works for me when it's

    private String cacheDir = "C:/Users/cory/" ; (obviously)

    But, I need to make it so it works for everyone, so how can I make it so it's

    private String cacheDir = "C:/Users/Theirname/";


    What I tried to do is I tried to make an auto-cache downloader. The source is running on a VPS and currently, if you delete the cache and then run the client, it says "making directory", and it downloads and unzips the file, but it doesn't download everything. It's missing a lot of folders like animations, sprites etc.

    Any help is greatly appreciated and will be rewarded with a rep++

    Thanks again.

    Reply With Quote  
     

  2. #2  
    mush

    Danny's Avatar
    Join Date
    Sep 2013
    Posts
    1,221
    Thanks given
    38
    Thanks received
    316
    Rep Power
    551
    Does it automatically download the cache?
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    It's definitely a cache related issue. Look up some auto cache downloading threads and you'll find your answer there (:
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Quote Originally Posted by -Danny View Post
    Does it automatically download the cache?
    Yes, but for some odd reason it doesn't download the whole .zip file
    Quote Originally Posted by Recursion View Post
    It's definitely a cache related issue. Look up some auto cache downloading threads and you'll find your answer there (:
    I tried to make an auto cache downloader, but now it's not downloading the whole cache.

    Reply With Quote  
     

  5. #5  
    Registered Member Mr Jason's Avatar
    Join Date
    Dec 2013
    Posts
    384
    Thanks given
    37
    Thanks received
    113
    Rep Power
    0
    Try something like:

    Code:
    int Location = (new File(System.getProperty("user.home"))).exists();
    and then you could declare your string as:
    Code:
    private String cacheDir = Location;
    if that doesn't work send me a private message and i'll try to help you out



    'Our greatest glory is not in never failing, but in rising up every time we fail', ~Ralph Waldo Emerson.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Making a Silab webclient with jar?
    By dang3r in forum Help
    Replies: 0
    Last Post: 09-12-2009, 04:02 AM
  2. Replies: 0
    Last Post: 06-23-2009, 02:19 PM
  3. Slight problem with spells
    By `Davis in forum Help
    Replies: 1
    Last Post: 03-17-2009, 02:25 AM
  4. Having issues with stalls.
    By Demetri in forum Help
    Replies: 3
    Last Post: 02-28-2009, 06:14 AM
  5. Issue with models on webclient
    By bazinger in forum Help
    Replies: 0
    Last Post: 12-05-2008, 11:25 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •