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 using a machine on which I do not have root access and
I'm accessing an Ubuntu machine using PuTTY, and using gcc. The default LANG environment
When I log into a remote machine using ssh X11 forwarding, Vista pops up
I've been testing an application using my machine as a server, and everything's going
I'm using this article to start a process on a remote machine using WMI.
Is it possible to clone a virtual machine using VMware Fusion on Mac OS
I'm developing on a Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5
Can any data exchanged on a local machine using the loopback IP 127.0.0.1 (localhost)
I'm trying to check if a service exists on a remote machine using the
I'm using an Ubuntu 8.04 (x86_64) machine to connect to my employer's Cisco VPN.

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.