[HELP] Launch4j - An error occurred while starting the application.

paul-y then it's best if you ask some friend a hand on this. once you know what prompt is and how it works, it's super easy, but if you don't know it, you can mess up things a lot

Hi Frederico,
I did what you asked, starting arduino_debug.exe from the command line. It took on my Laptop about 2 minutes to start, but it started (Win7-64, quad core i7, 8Gb, SSD). While loading, the command Windows showed no Output whatoever.
That seems to me quite a long loading time and is is repeatable.

Sometimes I get the "launch4j"-error also and I don't have a Clou.
The Problem started definitely with 1.6.0. I have a Standard Arduino Installation and also Java-JRE installed. Renaming the original Java or the Arduino supplied Java doesn't make a difference.

Any hint?
Regards
karl

We've recently fixed a windows+launch4j+java issue. It will be released with 1.6.1 but it's already available as a nightly build http://arduino.cc/en/Main/Software#nightly
Try giving it a spin

I updated to 1.6.1
The lanch4j-error is still there.

Can you run it from the command line using arduino_debug.exe and paste the error message here?

G'Day All

Go here and try this. No more error LaunchJ4.

Hope this helps

Michael

We have updated bundled java as alselectro did. It's available in the latest nightly and will be part of 1.6.1 http://arduino.cc/en/Main/Software#nightly

When I run arduino_debug.exe in cmd,it report a exception :jnidispatch(....jna/win32-amd64/...) not found in resource path. I locate jna.jar,the path(win32-amd64) not found.So I download the newest version jna.4.0.1.jar and replace lib/jna.jar,the exception has disappeared.

Run arduino.exe ,the dialog is not come,But the IDE is not opened.No exceptions no Logs and no IDE,only a splash form.

Windows 8.1 pro X64

On my other computers,use the same old jna.jar,also in Windows 8.1 pro X64, was all right.....

IDE 1.6.0 and 1.6.1 have the same problem..

[solved]

1.Update jna.jar to newest version.

2.Download astyle source code,compile it with X64 profile.

3.Install vcredist_x64.exe to support your new astylej.dll (X64).

My problem is java X86 cant run in my windows pro 8.1 WOW64,so i have to install java X64,becasue arduino IDE is 32bit,and some of its lib is 32bit,cant run in x64 env. So replace 32bit lib to 64bit version can solve this problem.

Wish arduino can publish 64bit IDE.....

menxin this is news to me: thought windows could run 32 bit binaries with no issues. We'll schedule the release of a 64 bit windows ide

Your issue is being tracked here Windows 64 bit cannot run 32 bit binaries: need a 64 bit windows ide · Issue #2763 · arduino/Arduino · GitHub

Exactly which version of Windows is this?

A windows pro 8.1 WOW64
What's even more strange is that even the toolchain is 32bit, so the IDE should not even compile a sketch

chfakht:
@jknutter : in the subfolder Libraries , i have not found any subfolders called Libraries nested off each other.

SO WHAT IS THE SOLUTION !!!

I don't know if this has been the case for others, but what appears to have led to my 44 deep nested libraries folder (before I caught it, it probably would have continued), 18GB in size, was that I inadvertently attempted to Import Library/Add Library on the root library folder. What a mess!

I'm not even going to try to replicate this mess.

smokin_cannon:
per http://www.ultratechnet.com/2013/01/arduino-problem-invalid-window-handle.html

"SOLUTION:
All you have to do is rename/delete(whatever you prefer) the "java" folder in the Arduino package and copy-paste the java runtime environment located in the program files folder. This is pretty simple hack which came to my mind while just trying to fix the problem. I hope this "technique" works with you.

Active Bluetooth device also seemed to be a probable cause for the problem, also responsible for slow behavior of the arduino IDE. Turn off the bluetooth device of your laptop, i.e disable the network and try again launching the application."

Worked for me.

Yes. This worked for me:-)

How-To:

  1. Goto to your Arduino install directory and rename the C:\Program Files (x86)\Arduino"java" folder to "java.bak".
  2. Copy the java folder (C:\Program Files (x86)\Java\jre7) to your Arduino install directory (C:\Program Files (x86)\Arduino\jre7) and rename it to C:\Program Files (x86)\Arduino"java".

Windows 8.1 Enterprise 64bit
Arduino IDE 1.6.1
Java SE Runetime Environment 7

2 years old and should be fixed with 1.6.1. Can you please run arduino_debug from the command prompt and past the output?

Exactly same problem here with 1.6.x

Bonjour à tous ... problème au démarrage de arduino suite à des chargement de nouvelle librairies. Arduino 1.6 . lors du lancement du programme j'ai eu un temps assez long d'attente puis le msg "en error occured while.."
Je me suis rendu compte que dans le dossier où sont rangé les sketch :
bibliothèque\Documents\Arduino Le dossier arduino était rempli de sous dossier "librairie\librairie\librairie..." j'ai donc renommé le dossier Arduino qui contient tous ces dossiers en "Arduino1" et j'ai recréé un autre dossier Arduino dans Documents et tout fonctionne.

Si ça peut aider :slight_smile:

I have problem: Arduino IDE v.1.6.1 (and v.1.6.2) not start! My OS - Windows 8.1 Pro 64-bit.

But solution very easy:

  • install Java Update 7 55 - jdk-7u55-windows-i586 (i586 - for 32bit)
  • rename folder "C:\Program Files (x86)\Arduino*java*" -> "C:\Program Files (x86)\Arduino*java-OLD*"
  • create folder "C:\Program Files (x86)\Arduino*java*" again
  • copy all files from "C:\Program Files (x86)\Java*jre7*" to "C:\Program Files (x86)\Arduino*java*"
  • rename file "C:\Program Files (x86)\Arduino\lib*jna.jar*" - > "C:\Program Files (x86)\Arduino\lib*jna-OLD.jar*"
  • copy file "jna-4.1.0.jar" (view previous pages this forum) to folder "C:\Program Files (x86)\Arduino\lib" and rename to "jna.jar"

That's all!

After this manupations Arduino IDE v.1.6.2 will start successfully!