[Solved, more or less] Problem with 0022 IDE ( 'permission denied')

I tried to reboot XP in safe modus, then the 'verify' stage is OK, but I can not upload because the comports are not available...

Also it seems that my Java was broken, reinstalled it but to no avail...

Any hints please??

Hold down shift where clicking the verify button in normal mode. then post the whole output here.

smeezekitty:
Hold down shift where clicking the verify button in normal mode. then post the whole output here.

Ok. Tried to verify the 'Blink' sketch:

C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Blink.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Blink.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\pins_arduino.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\pins_arduino.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WInterrupts.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WInterrupts.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_analog.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_analog.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_digital.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_digital.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_pulse.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_pulse.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_shift.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_shift.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\HardwareSerial.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\HardwareSerial.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\main.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\main.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\Print.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Print.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\Tone.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Tone.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WMath.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WMath.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WString.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WString.cpp.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\pins_arduino.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WInterrupts.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_analog.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_digital.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_pulse.c.o 
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar: C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a: Permission denied

Click start -> run and enter "C:\DOCUME~1\BARTPR~1\LOCALS~1" into the box.
Now locate the folder called temp and right click and select properties. Make sure Read Only isn't checked and check the permissions on the "Security" tab if present. Although probably not such a good idea on a normal basis, try right clicking the Arduino icon and select "Run as administrator" or if that is not present, select "Run as" and select "Administrator" at the popup.

smeezekitty:
Click start -> run and enter "C:\DOCUME~1\BARTPR~1\LOCALS~1" into the box.
Now locate the folder called temp and right click and select properties. Make sure Read Only isn't checked and check the permissions on the "Security" tab if present. Although probably not such a good idea on a normal basis, try right clicking the Arduino icon and select "Run as administrator" or if that is not present, select "Run as" and select "Administrator" at the popup.

I've checked the readonly, which is not checked (it indicates there are inherited rights). The logged on user has administrator rights (bad habit, I admit), but I tried to run as administrator anyway. The results are the same with the error described in the opening post.

Tomorrow I will try at work to get things working to check if the problem is in my home computer. (which I suspect as I can build without any problems in safe mode...)

Try this.
Open a command prompt and navigate to the Arduino installation directory.
Type the following commands:

mkdir atemp
set TEMP=.\atemp
set TMP=%TEMP%
@start arduino

This should start the Arduino program with a different temp directory. Retry compiling or uploading.

bartprins:
Tomorrow I will try at work to get things working to check if the problem is in my home computer. (which I suspect as I can build without any problems in safe mode...)

I just tried it on my work-computer which compiles and uploads OK, so the Uno-board itself seems ok.

Will try with different TMP dir, but still have problems with Java which can not be unstalled or reinstalled (some strange error occurs) :0

smeezekitty:
Try this.
Open a command prompt and navigate to the Arduino installation directory.
Type the following commands:

mkdir atemp

set TEMP=.\atemp
set TMP=%TEMP%
@start arduino



This should start the Arduino program with a different temp directory. Retry compiling or uploading.

=( no =(

The compiling takes a LOT LONGER to do compared to my work computer... (which is a bit newer I might say).
But the same error occurs.

I will now focus on removing Java to get a clean install of JRE6.26

After updating the windows installer and removing any reference to java I succeeded in reinstalling Java without errors.

The arduino.exe still can't build (same error), even after moving the program outside "program files" and even after moving the whole lot inside the %temp% directory...

Getting a bit sad now... Anyone??

Do you NEED windows? If not, get rid of it. And if it is only for gaming, why not dual boot or add another disk with a more useful OS.

In the bad old days of Win9x I would've suggested "format c:", but I'm not sure that would still 'work' :wink:

Have you tried to wipe your tmp folder completely?

I agree use Linux. The last time windows was my main os was win 95. I had a dual boot up to about ten years ago. I completely dumped windows and haven't regretted a thing. The Linux os is much better but the big thing is when I have some issue like you are having finding out why is easy. With windows it's like trying to put a complicated machine together blindfolded with boxing gloves on.

I know it's a big step to drop what you are familiar with and use something you know nothing about. So you can either add a hard drive to your computer and setup a dual boot system or, if your hard drive is big enough, you can repartition the drive to get space back and install Linux on the new space then dual boot. Feel free to send me a PM and I will help you all I can. It's well worth the effort.

My wife used to work as a teacher for AOL. She used my Linux box once and asked me if I could put Linux on her computer. She used it once and saw how much better it was. Yes you do have to learn different things. You are going into a Unix type world. It is different then windows but not that much different. There is only one windows but there are many types, called distros, for Linux. You can start out by taking a look at distrowatch.com . The number of distros will make your head swim. To give you an idea I have 11 computers in my house. I don't have cable TV but I do have a computer that is attached to my TV. On that one I run OpenSuse. On that one I get videos from the internet like Pbs, Hulu and YouTube. As well as downloading a LOT of old movies from the archives. The laptop I use the most is a Debian Linux machine as is my main desktop. I use Slackware for the server that runs both the wired and wireless branches of my network. My daughter does a lot of Music and uses Debian for the Midi and audio programs. My son is 12 and likes to play games on line and uses OpenSuse. My wife uses Ubuntu. Ubuntu was made from debian. I don't like it. It has taken away alot of what makes a Unix like system so powerful but it is easy to maintain if you want your system to be controlled by the wishes of someone else. In the end it's all about freedom. Free as in speech and Free as in beer.

joseph_m:
I agree use Linux.

[...]

Free as in speech and Free as in beer.

Free beer is never a bad thing. But for this computer I'll stick to windows. I'm trying to find some cheap netbook and will run it with linux.
For now I will try to 'repair' WXP with the installation disk.

The Chinese have an expression of the 8 incurable diseases. The one that come to mind is when the patient won't take the medicine.

One terrible hack-a-round would be try to upload using Linux in VirtualBox with the serial port linked.

smeezekitty:
One terrible hack-a-round would be try to upload using Linux in VirtualBox with the serial port linked.

Which IS actually something I am thinking about... In my struggle to find the problem I broke down my Windows installation, took me all day yesterday to repair is. Thank God for backups...

Now the last update are running from Microsoft, then I will try one more time. After that, next stop will be some virtual Linux installation

I gave up on trying to solve the problem. The computer or the xp is fubar. Even VirtualBox didn't work.

Found a cheap used netbook with 7-Starter on it, works flawless! Now saving money to replace the old laptop with a real one (the netbook is nice but it ís a toy...)

If it is FUBAR'ed, then it will not hurt anything to install Linux. Linux usually uses much less RAM and CPU and will run faster on an old computer. Main disadvantage is there isn't as much software available. Fortunately, some windows software can be run in WINE. There is also a reasonable amount of open source software available. Package managers suck though (always FUBAR the system :wink: )

smeezekitty:
If it is FUBAR'ed, then it will not hurt anything to install Linux. Linux usually uses much less RAM and CPU and will run faster on an old computer. Main disadvantage is there isn't as much software available. Fortunately, some windows software can be run in WINE. There is also a reasonable amount of open source software available. Package managers suck though (always FUBAR the system :wink: )

This WILL be the next step once I've got a replacement W7. I do not live very close to my work and sometime need to solve problems from home. The software needed for this is Win-only and I don't want to risk discovering WINE doesn't do the job at 4am...

Install linux.

If it works, install VirtualBox and run windows in there. Unless you require games / 3D applications to run, it will serve you well.