Go Down

Topic: "An error occurred while starting the application"... Arduino acts weird! HELP! (Read 3 times) previous topic - next topic

sarkar

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! :|

1955jql

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


tpirman1982

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

dashcammer

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.

kd7eir

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

tpirman1982

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\

kd7eir


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

tpirman1982


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.

dashcammer

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.

tpirman1982

In this video...
http://www.youtube.com/watch?v=fCxzA9_kg6s
...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?

kd7eir

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

tpirman1982

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;

kd7eir

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

Code: [Select]
int ledPin = 13;

void setup()
{
//initialize pins as outputs
pinMode(ledPin, OUTPUT);
}

void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}

tpirman1982

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: [Select]
int ledPin = 13;

void setup()
{
//initialize pins as outputs
pinMode(ledPin, OUTPUT);
}

void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}


kd7eir


Go Up