Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 338033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:23:30+00:00 2026-05-12T10:23:30+00:00

I am using a machine where I do not have administrator privileges and I

  • 0

I am using a machine where I do not have administrator privileges and I need to set the e.g. JAVA_HOME each time I boot.

Thus, I’d like to write a script that sets the desired classpath automatically.
How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:23:30+00:00Added an answer on May 12, 2026 at 10:23 am

    You surely can set the environment variables with a batch file each time you need them, but bear in mind that this will only work for the current process (i. e. the cmd instance you’re invoking the batch from) and processes spawned from there. I think you’d rather want persistent environment variables.

    Now, in the UNIX world you’d just put them into your shell startup script. In Windows … not exactly that way.

    1. Right click on “My Computer”, select “Properties”.
    2. There, go to the “Advanced” tab
    3. Click the button labeled “Environment variables”
    4. You can set JAVA_HOME and GRAILS_HOME under “User variables” there.

    You would only need administrator access for changing the system environment variables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not using github. We have git setup on our machine. I created
I have installed VSTFS on a machine using the local admin. Now the machine
I have compiled my application on Linux (Intel) machine using this command gcc –g
I have this membership site setup on my local machine using the ASP.NET membership
I am currently using windows server 2008 machine. I have active directory and sharepoint
Uploadify works for Visual Studio but not for IIS 7 (same machines), using Forms
i want to run some command on several machine using ssh. I know it
When I load jQueryUI on a Windows XP machine using Firefox 3.6.3, I get
i want to create a simple state machine using C but all the events
I wish to send an email from my localhost machine (using PHPs mail function)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.