Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to add/update an environment variable without Eclipse restart?
How to add/update an environment variable without Eclipse restart? [message #1867479] Wed, 26 June 2024 15:57 Go to next message
Yurii Kartsev is currently offline Yurii KartsevFriend
Messages: 5
Registered: July 2009
Junior Member
I am currently struggling with setting up environment variable for Eclipse in macOS. Is there a standard/recommended way to do so? Ideally, to set it without restarting Eclipse itself. The only way I know is to use "Info.plist", but that would need Eclipse restart. Are there any other ways?

Bonus points question: is there a way to set up environment variable for Eclipse, that is a result of a bash command? I need it for setting my authorization token for AWS code artifact:
export CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token ...)

The reason behind it is that that token expires every 24 hours...

Forgot to mention that I have also tried "Environment Variables Preference Page" Eclipse plugin, but it does not seem to work.

Thank you in advance!

UPDATE: I posted the same question on Stack Overflow.

[Updated on: Thu, 25 July 2024 04:16]

Report message to a moderator

Re: How to add/update an environment variable without Eclipse restart? [message #1871196 is a reply to message #1867479] Wed, 18 September 2024 02:39 Go to previous messageGo to next message
rewgas rewgas is currently offline rewgas rewgasFriend
Messages: 1
Registered: September 2024
Junior Member
My issue is the same. Anyone find any solution??

Re: How to add/update an environment variable without Eclipse restart? [message #1871859 is a reply to message #1871196] Mon, 14 October 2024 07:32 Go to previous messageGo to next message
Ethan Finn is currently offline Ethan FinnFriend
Messages: 1
Registered: October 2024
Junior Member
Have you tried using the "Run Configurations" option in Eclipse to set environment variables?
Re: How to add/update an environment variable without Eclipse restart? [message #1872258 is a reply to message #1871859] Fri, 25 October 2024 19:16 Go to previous messageGo to next message
roumaissa hamidi is currently offline roumaissa hamidiFriend
Messages: 1
Registered: September 2024
Junior Member
I have tried all the reflections but I still have the same problem , any solution? I see that many of us have the same problem but no solution yet
I will try to see a youtube tutorial maybe I will find a result.

Tutuapp

[Updated on: Thu, 21 November 2024 22:41]

Report message to a moderator

Re: How to add/update an environment variable without Eclipse restart? [message #1872791 is a reply to message #1872258] Wed, 20 November 2024 04:24 Go to previous message
davis Davidjohn34 is currently offline davis Davidjohn34Friend
Messages: 1
Registered: July 2022
Junior Member
My problem is similar, has anyone found a solution?
Previous Topic:m2eclipse (Maven Integration): how to see actual Maven output or customize builds?
Next Topic:Server DTLS X509, client certificate no trust
Goto Forum:
  


Current Time: Mon Jan 13 00:52:25 GMT 2025

Powered by FUDForum. Page generated in 0.03155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top