Results 1 to 3 of 3
  1. #1
    Shyam Singh is offline Member
    Join Date
    Jun 2008
    Posts
    48
    Rep Power
    0

    Default Can any body help me ?

    I want to run my java code from any of the folder i want ..->

    1. What to write in Environment variable ?

    2. who to create .bat file & where to store ?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,580
    Rep Power
    25

    Default

    1.Look for posts on how to set your PATH (if on Windows)
    2.Use an editor to create a .bat file. Put it in a folder that is on the PATH.

  3. #3
    Rooneyz is offline Member
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    25
    Rep Power
    0

    Default

    Java doesn't depend on any platform, the user directory can be found by in the system properties. Look at system.getProperty(String property) on how to do this.

    You can make the bat-file in this directory from within your project.
    Last edited by Rooneyz; 08-22-2008 at 12:05 AM. Reason: typo

Similar Threads

  1. Hello Every Body
    By Hassan Hafez in forum Introductions
    Replies: 2
    Last Post: 06-29-2008, 05:40 AM
  2. Reading Body Content
    By muhfak in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 06-24-2008, 11:44 AM
  3. HTML mail body
    By Sudha in forum Java Servlet
    Replies: 0
    Last Post: 03-21-2008, 10:58 PM
  4. Retreiving of mail body using mail number
    By chandu.v09 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-13-2008, 02:25 PM
  5. hi every body...new member here
    By ali obeed in forum Java Applets
    Replies: 0
    Last Post: 03-03-2008, 10: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
  •