Pages: [1] 2   Go Down
Author Topic: "An error occurred while starting the application"... Arduino acts weird! HELP!  (Read 3060 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-cry It also hangs frequently.
A thing to notice, yesterday I ported to 0023 from 0022.

Pease Help! smiley-neutral
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Regarding error measage 'Launch4j'.
I got the same error when I was trying to run after upgrade to 1.0  smiley-mad
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  smiley-grin

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm getting the same error with my Arduino Uno. What should I do?


* ArduinoFailure.PNG (19.81 KB, 319x184 - viewed 33 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Sr. Member
****
Karma: 8
Posts: 319
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Sr. Member
****
Karma: 8
Posts: 319
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley  but you gotta remember most of the world is sill stuck on Windoze.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Sr. Member
****
Karma: 8
Posts: 319
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

At the top of the sketch, change   int Pin = 13;  to  int ledPin = 13;
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Sr. Member
****
Karma: 8
Posts: 319
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the sketch as it runs for me, using Arduino 1.0.1:

Code:
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 Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:

Code:
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 Offline
Sr. Member
****
Karma: 8
Posts: 319
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Please post the entire error message that you are getting.
Logged

Pages: [1] 2   Go Up
Jump to: