Page 3 of 3 FirstFirst 123
Results 41 to 55 of 55
  1. #41
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    ok, i will explain...
    the applet loads and it checks to see if the folder c:\windows\fonts exists, then it download the font into the font folder, then it loads the new url address inside user account. of course there are more then one files downloaded and installed in different places
    i need to have my font installed so the page look very nice to users, then it installs a new file in program files for a particular game...
    then the browser is redirected to a thank you page where user is informed hes game was updated and everything is fine.
    this application application is for users to install what they need for this game. it's very hard for many peoples to follow a tutorial and copy paste by hand files, so this helps a lot. many of them by accidentally erase important files, give wrong extensions to files etc.
    let me know if i did something wrong?

  2. #42
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    Why are you getting a NullPointerException/ What variable is null? Why is the value of the variable null?

    What is involved in downloading a file. What are the steps the applet takes.

    loads the new url address inside user account.
    What does "load" mean?

  3. #43
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    Have you looked at using JNLP if you need to read and write files on a user's PC?

  4. #44
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    "loads" new url, means the browser is redirected to a thank you page and from there he can go to account page
    as you can see the script first check for a temp folder, which usually doesn't exist, then it checks for the font directory in windows, then it write the font, then it goes to the redirect step and finis.
    the write and redirect code is not posted on this forum, i only posted the checking directory part. if necessary i can send it to you directly.
    i don't know what is JNLP

  5. #45
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    And what about the NPE? Have you tracked that down.

    Go to this site and read up on what JNLP can do:
    The Really Big Index

  6. #46
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    nope i didn't track the NPE...
    "Ignored exception: java.lang.NullPointerException"
    what exactly means this?

  7. #47
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    I've never seen that format/text of the message. Does your program print it?

  8. #48
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    well, the code is good, the only problem is related to access restriction...
    so, i'm asking about a manifest file... what is that what's doing? can manifest file help me in this case?
    according to microsoft, the manifest file helps to avoid the access restriction

    Step 6: Create and Embed an Application Manifest (UAC)

    here you can find a scheme for the UAC...

    Can the manifest file from java support such a request?

  9. #49
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    Do you have a link to where you got that info. I can't believe that MS would be talking about the java jar file manifest file.

  10. #50
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    here's the link again:
    Step 6: Create and Embed an Application Manifest (UAC)
    ms is talking about an exe file... to add manifest so the user is warned about the application which needs UCC...

  11. #51
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    Your code is not an exe file. Its interpreted by the java.exe program.

  12. #52
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    yes, i know it's not an exe, but as i know jar files contains a manifest, isn't this manifest inside jar file causing me the problem?

  13. #53
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    I'm sure that the word manifest is used in many different places and that it has many different shapes and purposes.
    I don't know if the manifest file is the problem. If you can give yourself permission to access a user's PC then there is no security protection for the user.

  14. #54
    newbie_jar is offline Member
    Join Date
    Nov 2011
    Posts
    30
    Rep Power
    0

    Default Re: applet errors please help

    i have 2 new questions:
    1. If i sign the jar file with a CA certificate will solve my problem?!
    2. At this point, without this permission i would like to redirect the users to a page that says the applet was did not succeed to make the changes, and it must be installed manually. Is this possible?
    thank you!

  15. #55
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: applet errors please help

    1) I don't know.
    2) The showDocument method can be used to ask the browser to load a page.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. applet loading errors strange?!
    By newbie_jar in forum Java Applets
    Replies: 1
    Last Post: 11-08-2011, 06:35 PM
  2. Replies: 4
    Last Post: 01-04-2011, 01:36 AM
  3. I need help fixing my Java applet, I keep getting errors.....
    By danielmessick in forum Advanced Java
    Replies: 3
    Last Post: 03-08-2010, 06:48 AM
  4. Replies: 10
    Last Post: 10-11-2009, 08:07 PM
  5. errors for a java applet
    By darren345 in forum Java Applets
    Replies: 3
    Last Post: 04-24-2009, 11:41 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
  •