Go Down

Topic: Problem Opening Arduino (Read 2308 times) previous topic - next topic

Hi all, I am new to these forums but have  been using arduino for about a year.  Most of the work I do Is on the lab computers at my university.  I recently tried to install arduino on my laptop so that I could work on my next project from home.  After downloading the file I tried to open the arduino.exe file.  The program acted like it was going to open up  but it stayed frozen on the blue arduino loading screen until a launch4j error message came up saying "an error occurred while starting the application".  I'm running windows 64 bit vista.  Is arduino not compatible with 64 bit vista or is something else going on?

Louis Davis

Here is a link to a thread that discusses the same symptoms you are seeing:
http://arduino.cc/forum/index.php/topic,95016.msg713629.html#msg713629

It seems like there are several different causes for this issue, so I would suggest following the troubleshooting steps suggested in the thread to narrow down the cause for your particular issue.

Post back to this thread will any of your results and log files, so we can help solve your problem.

Thanks for the reply.  Well I tried updating java and that did not fix the problem.   I tried finding the preferences folder but I do not have an arduino file under appdata.  When i downloaded arduino i just extracted the whole  file to my desktop.

Louis Davis

There are several other troubleshooting steps to perform from that thread...

Quote
If that does not work, from a command line, launch arduino.exe with the following command:

arduino.exe --l4j-debug

Then send us the launch4j.log file in the Arduino folder to see if that tells us anything.


You can also try running the arduino.exe as an administrator. That worked for some other people.
Move the Arduino folder to the root directory; C:\Arduino\ for example.

I set up the folder in my c drive.  Now arduino is under the directory C:\Arduino\arduino-1.0  I right clicked on the exe file and hit run as administrator and I had the same results. 

I would like to try the command line thing but I do not know how to launch it through command line.

Louis Davis

1. Press the Windows key + R
2. The Run dialog should pop up.
3. Enter or copy and paste the following text into the Open line:
    C:\Arduino\arduino-1.0\arduino.exe --l4j-debug
4. Select the OK button.
5. Now browse to the Arduino folder and send the launch4j.log file in that folder.

Thanks I learned something new today.

Ok this is what the file says


CmdLine:   C:\Arduino\arduino-1.0\arduino.exe --l4j-debug
WOW64:      yes
Working dir:   C:\Arduino\arduino-1.0\.
Bundled JRE:   java
Check launcher:   C:\Arduino\arduino-1.0\java\bin\javaw.exe (OK)
Add classpath:   lib\pde.jar
Add classpath:   lib\core.jar
Add classpath:   lib\jna.jar
Add classpath:   lib\ecj.jar
Add classpath:   lib\RXTXcomm.jar
Launcher:   C:\Arduino\arduino-1.0\java\bin\javaw.exe
Launcher args:   -Xms128m -Xmx128m -classpath "lib;C:\Arduino\arduino-1.0\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length:   162/32768 chars

I ran it again and it came up with a new error at the end.

CmdLine:   C:\Arduino\arduino-1.0\arduino.exe --l4j-debug
WOW64:      yes
Working dir:   C:\Arduino\arduino-1.0\.
Bundled JRE:   java
Check launcher:   C:\Arduino\arduino-1.0\java\bin\javaw.exe (OK)
Add classpath:   lib\pde.jar
Add classpath:   lib\core.jar
Add classpath:   lib\jna.jar
Add classpath:   lib\ecj.jar
Add classpath:   lib\RXTXcomm.jar
Launcher:   C:\Arduino\arduino-1.0\java\bin\javaw.exe
Launcher args:   -Xms128m -Xmx128m -classpath "lib;C:\Arduino\arduino-1.0\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length:   162/32768 chars
Error:      Invalid window handle.

Louis Davis

Try launching with one of these commands, to see if this solves the problem.

C:\Arduino\arduino-1.0\arduino.exe --l4j-no-splash
C:\Arduino\arduino-1.0\arduino.exe --l4j-no-splash-err

Tried both and nothing happened.  Not even an error message.

Louis Davis

Now try executing this command: (this is one continuous command line entry)

C:\Arduino\arduino-1.0\java\bin\javaw.exe -Xms128m -Xmx128m -classpath "lib;C:\Arduino\arduino-1.0\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base

This is the command that the launcher executes in the background. This will help determine if the problem is with the launcher or with the Java application.

Thanks again for the  quick reply.  Just ran it and got a java virtual machine launcher error "could not find the main class: processing.app.Base. Program will exit."

Louis Davis

That was my mistake. You need to execute that command within the Arduino directory.

1. Windows key + R.
2. Enter: cmd.exe
3. Press OK button.
4. Now type: cd \arduino\arduino-1.0
5. Press Enter key
6. You should see a command prompt that looks like this: C:\arduino\arduino-1.0>
7. Copy this command to the clip board: C:\Arduino\arduino-1.0\java\bin\javaw.exe -Xms128m -Xmx128m -classpath "lib;C:\Arduino\arduino-1.0\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
8. Now click the C:\ icon in the upper left corner of the command prompt window. You should get a menu.
9. Select the Edit -> Paste menu option to paste the command you copied to the command prompt.
10. Now press Enter.



I did all of that and nothing happened

Louis Davis

Replace the following command with step 7:
C:\Arduino\arduino-1.0\java\bin\java.exe -verbose -Xms128m -Xmx128m -classpath "lib;C:\Arduino\arduino-1.0\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base > output.txt

This will send all the verbose Java output to the file output.txt

Reply with the output.txt as an attachment. Hopefully this will indicate the problem.

Go Up