Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Displaying location with java?

Options
  • 03-01-2005 5:00pm
    #1
    Registered Users Posts: 4,276 ✭✭✭


    Hey

    I'm trying to make a client / server type application using java applets. I want to display where the applet is being run from (File path on server)

    Can someone tell me how I would go about doing it ? I've no idea


Comments

  • Closed Accounts Posts: 1,502 ✭✭✭MrPinK


    Not quite the same, but you can get the current working directory (and some other useful info) with System.getProperty("user.dir")

    EDIT: link updated


  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    Thanks :)

    Not exactly what I was looking for but gave me the right location to look in :)

    System.getProperty("java.class.path",".");
    :D

    By the way does anyone know some sort of search for the java api? Like to tell you about classes and what they can do. No search function with it. Would be handy :D


  • Closed Accounts Posts: 1,152 ✭✭✭sound_wave


    the api on http://www.java.sun.com covers everything no?


  • Closed Accounts Posts: 1,502 ✭✭✭MrPinK


    damnyanks wrote:
    Not exactly what I was looking for but gave me the right location to look in :)
    Sorry, the link was supposed to be directly to the list of system properties. I'm losing my ability to copy and paste :)


  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    sound_wave wrote:
    the api on http://www.java.sun.com covers everything no?


    Was thinking something more along the lines of what microsoft have with MSDN


  • Advertisement
  • Registered Users Posts: 597 ✭✭✭bambam


    If you're a windows user, something I find really useful is the Java SDK docs as windows help files. These of course include a good index and search ability:
    http://java.sun.com/docs/windows_format.html


Advertisement