Results 1 to 8 of 8
  1. #1
    EhhChris is offline N00b
    Join Date
    Mar 2012
    Location
    Planet Earth
    Posts
    3
    Rep Power
    0

    Question Before I step in early.

    Hey everyone on this forum, or rather just the ones reading this post!
    So, heres the deal and I hope someone may be able to help me here: I want to start learning Java for self coding purposes, and I will be taking a Java class senior year, but I want to start early. I had an interesting idea for an application, but I need to know first if maybe Java isn't the right choice. Would an application built in Java be able to theoretically delete the contents of a folder placed anywhere on a computer by simply being pointed to such file, and also on a timed basis? This part is only a section of the application I want to build, but I saw somewhere while googling for some self learning sites that Java is not able to point to directories... Maybe I was misinformed? Now I can't cite this source, cause I already lost it while jumping site to site picking up small details about the language... But hopefully someone here can set me straight? Thanks in advance!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,251
    Rep Power
    19

    Default Re: Before I step in early.

    A Java Applet (which resides on a server, and runs on a web page in a browser in the client computer) can't access the local filesystem unless signed/trusted.

    A Java application which resides on the same computer on which it is run, has no such limitations.

    Would an application built in Java be able to theoretically delete the contents of a folder placed anywhere on a computer by simply being pointed to such file, and also on a timed basis?
    Yes.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    EhhChris is offline N00b
    Join Date
    Mar 2012
    Location
    Planet Earth
    Posts
    3
    Rep Power
    0

    Default Re: Before I step in early.

    Okay, so creating a Java application, the application would be able to do what I want.. but after building this application I could just distribute the program via a download and have the application work as intended?
    (Sorry if this sounds stupid, I realize the question is probably a common "duh", just making sure :D)

  4. #4
    MonkeyMan is offline Member
    Join Date
    Jan 2012
    Posts
    45
    Rep Power
    0

    Default Re: Before I step in early.

    Yes, yes you could. However be mindful of the obvious. Assuming the data you wish to delete is contained in the same directory path can cause issues with different operating systems, even between different versions of Windows.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: Before I step in early.

    Quote Originally Posted by DarrylBurke View Post
    A Java Applet (which resides on a server, and runs on a web page in a browser in the client computer) can't access the local filesystem unless signed/trusted.

    A Java application which resides on the same computer on which it is run, has no such limitations.
    <pedant>Well, a Web Start application is a desktop app that has the same restrictions as an Applet.</pedant>
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,251
    Rep Power
    19

    Default Re: Before I step in early.

    Quote Originally Posted by Tolls View Post
    <pedant>Well, a Web Start application is a desktop app that has the same restrictions as an Applet.</pedant>
    :)
    I did say
    which resides on the same computer on which it is run
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    EhhChris is offline N00b
    Join Date
    Mar 2012
    Location
    Planet Earth
    Posts
    3
    Rep Power
    0

    Default Re: Before I step in early.

    Mkay, thanks for the help everyone, looks like I'm gonna stick to Java after-all :D
    Probably gonna keep using this forum for help along the way as well ^___^

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: Before I step in early.

    Quote Originally Posted by DarrylBurke View Post
    I did say


    db
    <double-pedant>It does reside on the client...in the web start cache...</pedant>

    Sorry.
    It's Monday.
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Installing WebSphere Application Server step by step
    By manideep.d132 in forum Reviews / Advertising
    Replies: 0
    Last Post: 01-23-2012, 07:35 PM
  2. Replies: 1
    Last Post: 08-18-2011, 07:47 PM
  3. Step-by-Step Billing system in Web Services
    By oneofthelions in forum Web Frameworks
    Replies: 2
    Last Post: 12-18-2009, 10:28 AM
  4. EJB3 Message driven beans step-by-step guide
    By nix123456 in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 09-28-2009, 01:29 PM
  5. Step-by-Step Tutorial: Achieve RAD with Seam+Eclipse+Tomcat
    By Techieexchange in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 11-13-2007, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •