r/programmingbydoing • • Jul 08 '14

I can't even get started.

I keep getting unexpected token ':' in powershell.

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/yeahiamfat Jul 08 '14

::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files (x86)\Java\jdk1.7.0_25\bin", "User")

1

u/holyteach Jul 08 '14

You omitted the part in square brackets.

[Environment]

must be in front of the two colons. Also, did you really download version 7u25 of the JDK? You probably got 8u5, which means the path will be different. Look in C:Program Files (x86) and find out the path of the actual jdk bin folder.