[MOD] Arduino Enhanced Release 1.0.5 for Windows (installer, drivers, etc) +SRC

Hi.

There are 21 pages of stuff.

I just quickly downloaded the file, installed the .Net 4 stuff and tried.

Real useful popup just happened.

"An error ocurred while starting the application."

lost_and_confused:
Hi.

There are 21 pages of stuff.

My heart bleeds for you. It really does.

Are you sitting comfortably? Then I shall read it all to you...

That would nearly constitute Australian humour.

I am having no end of trouble getting the sketches to flash and am just giving it a go.

I was hoping for a quick and easy set up so I can find out what is going on.

If it can't load, for now it is wasting my time.

Yes, what I posted wasn't exactly nice.

But so much for people helping each other.

Can you capture the screen with the error? does it pops after the installation? Can you describe your machine? Windows version, what happens with the official one that drove you to try this mod, etc

Yes, the error is after installation.

Before I did it, I got/downloaded .Net 4 and installed it.
(Fun - NOT!)

Then installed the IDE.

This is the error:

(Cropped screen grab)

IDE error.jpg

Are you launching the IDE from the start menu? or launching the previous version?

What version did you installed? the FULL or the one that says no-java ?

I know installing .Net is not fun, but it is usually already installed by Windows Update and it makes the development of certain enhancements much easier.

Well, I have 1.0.1 and 1.0.2 installed.

These are the "official" versions.

Then I tried yours.

I also have that "Maria Mole" installed.

As this one comes as a .exe I ran the install and let it do its thing.
It starts to load then simply puts that message on the screen.

The IDE is being launched from a shortcut - which it generated.
The version is the one at the start of this thread - which says no java.

Download the first link, the package should be 35 mb or so. That one will solve your problem.

You mean this one:

http://arduino-erw.googlecode.com/files/setup_Arduino_ERW_1.0.3_20121213.zip

That is the one I have.
(That is the first link I can find.)

Yes, the error message is because there is something wrong with java. The other thing you can try is installing java, and downloading the version without java. But your problem is very strange.

I just checked and I have the latest Java.

So I hope that is good.

I am downloading the "no-java" version now.

(Cute how they go in program files\arduino...... rather than just in program files..... how I have the other two.)
Took a bit of finding.

Installed the NON-JAVA version. Same problem.
It just gives up on me. Same error.
(I put in in a similar path but appended NO JAVA to the end, so I have both versions installed.)

That isn't a problem is it?

No, no issues. There is a last thing to do: http://screencast.com/t/LLlm4QraF

And paste that log here.

As requested:

CmdLine: C:\Program Files\Arduino\Arduino ERW 1.0.3\arduino.exe --l4j-debug
WOW64: no
Working dir: C:\Program Files\Arduino\Arduino ERW 1.0.3.
Bundled JRE: java
Check launcher: C:\Program Files\Arduino\Arduino ERW 1.0.3\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:\Program Files\Arduino\Arduino ERW 1.0.3\java\bin\javaw.exe
Launcher args: -Xms256m -Xmx512m -classpath "lib;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length: 120/32768 chars

Everything seems right, it is very weird. It should work. Maybe you can track the problem with Process Monitor, looking for locked files that Arduino.exe may fail to load.

That was fun.

I was overwhelmed by the log.

Alas there seems to be too many other things going on and gee it is hard to try and find out where the stuff to do with this is happening.

Click filter... Process name equals: arduino.exe

By the way, you need to research something by yourself if you want to eventually solve the problem. If you have another XP you can compare the activity between the two logs. It is time consuming at first, but I personally can assure you, you can track any issue just with process monitor and process explorer.

lost_and_confused:
This is the error:

(Cropped screen grab)

I had the same error when I tried to use Arduino IDE 1.5R2. It turned out for me, that my files for the ATTiny series chips was causing the problems. It was folder called "Hardware" that contained the ATTiny files.

Well, thanks.

I think I have narrowed down the problem:

See picture.

I shall ask Mr Google but there seems to be a missing DLL file.

Reading what I see, this "DWMAPI" is supposed to be standard with windows.

I have only recently upgraded to SP3 on this machine as I have only just got internet access on this machine.
Until them SP2 was good enough.

Reading the things, the DLL is supposed to be in just about any windows update.
Weird, I have just had a swag of them done, and none of them "installed" it or found it missing and replaced it.

The article also warns about downloading it from places, as it is supposed to be there already.

I'm kinda stuck with what to do now.

Arduino error reason.jpg

Windows will check several paths (defined in the Environment variables) so a FILE NOT FOUND is not always bad, the same as other operations, for example saving a txt file in notepad creates the file first, then deletes, then creates an empty one, etc.

Try to filter by Access denied, or something specific for arduino. I can try to fix your problem remotely via teamviewer if you are not able to find the root in a couple of days.

Nice work on all this!

I've been looking at adapting some of your improvements to work in Teensyduino. For the menu scrolling, I had to edit the code since the hard-coded 22 pixel menu item height doesn't work for Linux and Mac.

Here's the modified code:

  private static int getMaximumItems(JPopupMenu menu) {
        JMenuItem test = new JMenuItem("test");
        ButtonUI ui = test.getUI();
        Dimension d = ui.getPreferredSize(test);
        double item_height = d.getHeight();
        JMenuItem up = new JMenuItem(MenuIcon.UP);
        ui = up.getUI();
        d = ui.getPreferredSize(up);
        double icon_height = d.getHeight();
        double menu_border_height = 8.0; // kludge - how to detect this?
        double screen_height = java.awt.Toolkit.getDefaultToolkit().getScreenSize().getHeight();
        int n = (int)((screen_height - icon_height * 2 - menu_border_height) / item_height);
        return n;
  }

Maybe this doesn't matter, since 22 probably always works fine on Windows. But I wanted to share this, in case you're interested in using it?