Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Enviroment variables problem

20 Nov 2010   #1

Windows 7
Enviroment variables problem

I am having this problem in the image:

even if in the path displayed is correct and exists. I tryed anyway to change this variable and the files in `C:\\Program Files\Java\apache-maven-2.2.1` or `C:\\Program Files\Java\apache-maven-2.2.1\bin` or `C:\\Program Files\apache-maven-2.2.1\bin` as I read in different forums.

My enviroment variables are set up as follow:

Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowe rShell\v1.0\; %ROO_HOME%\bin; %M2_HOME%\bin;

M2_HOME=C:\Program Files\apache-maven-2.2.1

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18


Must I do something extra?

Thanks in advance

Attached Thumbnails
Enviroment variables problem-error.jpg  
My System SpecsSystem Spec
20 Nov 2010   #2

Windows 10 Pro X64

Open a Command Prompt, type set and press Enter. Paste the results here please.
My System SpecsSystem Spec
20 Nov 2010   #3

Windows 7

APPDATA=C:\Users\mujer esponja\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
HOMEPATH=\Users\mujer esponja
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
LOCALAPPDATA=C:\Users\mujer esponja\AppData\Local
M2_HOME=C:\Program Files\apache-maven-2.2.1
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\spring-roo-1.1.0.RC1\bin;%PATH%;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\apache-maven-2.2.1\bin
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
ProgramFiles=C:\Program Files
USERNAME=mujer esponja
USERPROFILE=C:\Users\mujer esponja
My System SpecsSystem Spec

20 Nov 2010   #4

Windows 7x64 Home Premium SP1

environmental variables look set as instructed

Instead of "Program Files"
If running 64 bit OS
you may mean "Program Files (x86)"

that's where the java subdirectory/folder lives.
My System SpecsSystem Spec
21 Nov 2010   #5

Windows 7

But how to change that?? I think I don't understand properly your answer.
If you mean change my enviromenta variables like, for instance:
JAVA_HOME= C:\Program Files (x86)\Java\jdk1.6.0_18

and so on, it doesn't work either:

ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = C:\Program Files (x86)\Java\jdk1.6.0_18
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
My System SpecsSystem Spec
21 Nov 2010   #6

Windows 7x64 Home Premium SP1

On looking again at your environmental variable set list, it looks like you're running a 32 bit system. In which case the advice I gave is not your solution.
We run a 64 bit system & that's where my son stored his java stuff under (x86).

It looks like you downloaded material from the Apache Maven Project and the error clearly states it doesn't like the directory path you have nominated.

Maybe check the installation documentation again and check where the installation is actually located.
eg. what's in:
C:\Program Files\apache-maven-2.2.1\bin

Someone may come along with better advice.

PS: Fill in your computer specs more fully.
My System SpecsSystem Spec
21 Nov 2010   #7

Windows 10 Pro X64

The Apache-Maven FAQ has some good info and links to places to look for and ask questions.

Getting help
My System SpecsSystem Spec
21 Nov 2010   #8

Windows 7

Thanks, I asked already there.
Maybe is a bug to solve...
My System SpecsSystem Spec

 Enviroment variables problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Environment Variables
Hi I set up a User defined Enviro. Var. called GomFolder to be C:\Users|Damo\MyDocuments\NinjaTrader 7 See the attached clip 2015-01-23_1242 - Judge101010's library My understanding is that this should set up a folder called GomFolder in the NinjaTrader 7 folder. Is this correct? If...
General Discussion
Windows 7 easy transfer wizard in a domain enviroment
I am installing some new PC's running Windows 7 pro 64bit. I will be needing to transfer some PCs that are currently in a domain and save everything to the server. Has any one ever used the easy transfer wizard to do this before. I would really appreciate your input. By reading some google...
Backup and Restore
Can someone help with system variables?
I accidently edited my CLASSPATH and PATH under system variables and now my java isnt working... How do I edit these two so my java is working properly?
General Discussion
System Variables Help
I installed the Android SDK and Java that was needed with it and had to make changes to System/System Properties/Environment Variables/System Variables/Path. I think i deleted what was in there by default. A lot of my programs wont open, I get .dll not found errors. Anyone have a Gateway FX...
Performance & Maintenance
changing some system variables?
hi I'm new to Windows OS, and I've just installed Windows 7 (64bit, ultimate if that matters) on my hardrive. My disk is partitioned like that: C: 30Gb D: 80GB E: 400GB all those partitions are formatted in NTFS. I would like to change default installation directories (from C:/Program...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:05.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App