0
Offline
Newbie
Karma: 0
Posts: 32
Arduino rocks
|
 |
« on: November 23, 2011, 05:51:27 am » |
Arduino IDE was working properly in my pc. Today while starting IDE, it took looong time and gave me the error "An error occurred while starting the application", error box had title "Launch4j". After that the application started, compiled my program without effort... but while uploading to board, it gave lots of java exception and stopped.  It also hangs frequently. A thing to notice, yesterday I ported to 0023 from 0022. Pease Help! 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #1 on: February 10, 2012, 01:52:35 pm » |
Regarding error measage 'Launch4j'. I got the same error when I was trying to run after upgrade to 1.0  I traced it to preferences file located in C:\Documents and Settings\'me as user'\Application Data\Arduino preference.txt I just deleted it - and system the runs 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #2 on: July 11, 2012, 05:33:31 pm » |
I'm getting the same error with my Arduino Uno. What should I do?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #3 on: July 11, 2012, 06:14:30 pm » |
I get the same error on my Win 7 Enterprise 64 bit machine.Lenovo laptop. WHy ???? Tried other version including the older 22 version but still error.
|
|
|
|
|
Logged
|
|
|
|
|
Tucson, AZ
Offline
Sr. Member
Karma: 4
Posts: 269
|
 |
« Reply #4 on: July 11, 2012, 06:24:30 pm » |
Delete the preferences file: Windows XP: C:\Documents and Settings\USER_NAME\Application Data\Arduino preferences.txt
Windows 7: C:\Users\USER_NAME\AppData\Roaming\Arduino\preferences.txt
|
|
|
|
« Last Edit: July 11, 2012, 07:45:38 pm by kd7eir »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #5 on: July 11, 2012, 06:27:27 pm » |
My Windows 7 operating system does not go: C:\Documents and Settings\USER_NAME\Application Data\ That's Windows XP
Windows 7 goes: C:\Users\USER_NAME\
|
|
|
|
« Last Edit: July 11, 2012, 06:29:17 pm by tpirman1982 »
|
Logged
|
|
|
|
|
Tucson, AZ
Offline
Sr. Member
Karma: 4
Posts: 269
|
 |
« Reply #6 on: July 11, 2012, 07:45:04 pm » |
My Windows 7 operating system does not go: C:\Documents and Settings\USER_NAME\Application Data\ That's Windows XP
Windows 7 goes: C:\Users\USER_NAME\
Then: Windows 7: C:\Users\USER_NAME\AppData\Roaming\Arduino\Preferences.txt
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #7 on: July 11, 2012, 08:33:38 pm » |
Then:
Windows 7: C:\Users\USER_NAME\AppData\Roaming\Arduino\Preferences.txt
Uh, nope, nope. That did not work either. Nope, nope. The preferences.txt file keeps coming back every time I try to start it up.
|
|
|
|
« Last Edit: July 12, 2012, 07:23:58 am by tpirman1982 »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #8 on: July 13, 2012, 11:24:40 am » |
Try to use older versions of the Arduino software, this worked for me. 2 out of 3 laptops that I own running windows 7 didn't work for me - looks like windows 7 compatibility is piss poor but then perhaps it's my Lenovo machines??? Of course this wouldn't happen on Macs or linux machines  but you gotta remember most of the world is sill stuck on Windoze.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #9 on: July 14, 2012, 10:59:53 am » |
In this video... ...I was told: int Pin = 13; void setup() { //initialize pins as outputs pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); } When I tried to upload that to my Arduino, I got an error which as follows: In function `loop': error: `ledPin' undeclared (first use in this function) What should I do to correct this?
|
|
|
|
« Last Edit: July 14, 2012, 12:18:05 pm by tpirman1982 »
|
Logged
|
|
|
|
|
Tucson, AZ
Offline
Sr. Member
Karma: 4
Posts: 269
|
 |
« Reply #10 on: July 14, 2012, 03:42:48 pm » |
At the top of the sketch, change int Pin = 13; to int ledPin = 13;
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #11 on: July 14, 2012, 04:35:42 pm » |
Ok. I've corrected that, but another error I've found is: ledPin(pinMode, OUTPUT); In function `setup': error: called object is not a function What'd I write incorrectly there? At the top of the sketch, change int Pin = 13; to int ledPin = 13;
|
|
|
|
|
Logged
|
|
|
|
|
Tucson, AZ
Offline
Sr. Member
Karma: 4
Posts: 269
|
 |
« Reply #12 on: July 14, 2012, 04:50:40 pm » |
This is the sketch as it runs for me, using Arduino 1.0.1: int ledPin = 13;
void setup() { //initialize pins as outputs pinMode(ledPin, OUTPUT); }
void loop() { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); }
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 19
|
 |
« Reply #13 on: July 14, 2012, 05:15:01 pm » |
Well, it's not accepting it on mine when I click upload. This is the sketch as it runs for me, using Arduino 1.0.1: int ledPin = 13;
void setup() { //initialize pins as outputs pinMode(ledPin, OUTPUT); }
void loop() { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); }
|
|
|
|
|
Logged
|
|
|
|
|
Tucson, AZ
Offline
Sr. Member
Karma: 4
Posts: 269
|
 |
« Reply #14 on: July 14, 2012, 05:24:38 pm » |
Please post the entire error message that you are getting.
|
|
|
|
|
Logged
|
|
|
|
|
|