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

    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 offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    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
    The Netherlands
    Rep Power


    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, 11: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, 03:25 PM
  5. hi every member here
    By ali obeed in forum Java Applets
    Replies: 0
    Last Post: 03-03-2008, 11: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