It could be a tie indeed...
As far as the KNIL was concerned, I think the real difference would have had to start with the Contenental Dutch government of the early 1930s committing to a real, well planned, and lavishly funded military buildup.
In this, we see a buildup of the Dutch defense industry, especially in aero and armor,artillerie production. In saying a strengthening of the aero industry, I mean aircraft engines as well.
If the Dutch govt would have shown this military buildup as the new national policy, then firms such as Koolhaven and Fokker would have attained the subcontract relations with suppliers in order to drastically increase the numbers of aircraft that could be produced. And so we must understand that the term "full production capability" is dependant upon what the Dutch govt was trying to do here with regards to Dutch military aviation in the 1930s.
The FK-58s, G-1s, and the DXX1s never really reahced thier potential as the money for R&D, and purchase orders were so stingily disbursed by the Dutch government. So we cannot judge thier real history performance with the possibilities of what might have been achieved in a different scenario.
Same goes with the Dutch ground units. Heavy metals shops could have been set up to produce AT and AA artillery and the armor could have been purchased from firms such as Vickers. The 6-ton tank (in larger numbers) would have helped in Java quite a lot, if sufficient air cover were available.
This brings up the idea of bases. Aerodromes, training and maintenence facilities, base defenses, infantry battalions and garrisons to defend these rear area bases become important. Large, numerous, and well defended aerodromes in Java (built in the 1930s) could have given the ground defenders the flexibility and capability to resist any landing on the island of Java.
And what does that do to the IJN's efforts to ship oil from the other places of the NEI that they might have captured?
Lets see sub-pens built on Java, with a couple of dozen subs stationed there when the war breaks out. Japanese shipping would have taken a heavy beating.
And so, if the Dutch govt had taken some pretty drastic steps in the 1930s to rearm, then we might see a much different strategic map in 1942 than we did historically.
And...the Dutch could have abandoned the old Steyer straight pull rifles in thier oddball cal and adopted home built versions of the SMLE, or maybe even the pattern 14 in cal .303. Converting to Brens, or original Lewis guns, everything to .303 to ensure ammo compatibility with the UK would be nice too. Setting up of a small arsenal in the early 1930s to build these weapons (and some jungle carbines, maybe .38 special) would also do a lot to help things along.
For that matter, the Dutch navy would have enjoyed from this buildup as well. If home shipyards couldnt keep up with demand for the navy, contracts could have been let out to the US, France, Uk, etc. Heck, Dutch officials could probably even purchased the old battleships "Minas Gerais" and "Sao Paulo", towed them to Newport News to be rebuilt, and had them in service as cruiser killers by 1940. They would be slow, but suitable for hunting German raiders, escorting convoys, shore bombardment. Thier 12 in guns would be enough for that.
A naval buildup means a re-arming of many of the Dutch units from 5.9 to another common caliber. The Dutch had a bad habbit of buying thier guns where they could be got on the cheap. This was bad. Also, some of thier cruisers were simply too large to still be using what was a destroyer caliber gun (5.9). So, these things would need to be fixed, read $$$. But, hey, the 5.9 being removed and swapped for other calibers on the cruisers means more coastal batteries have guns.
And scrapping the ancient warships would be a must too!
We must also look to the Dutch Antillies and Suriname. Here, naval air patrols and ASW units would be needed, as well as more colonial troops. Building an arsenal on Curacao, or Suriname helps the colonial employment issue (Suriname more needful than Curacao..Aruba busy growing Aloe) and helps to equip the colonial troops with reasonably priced weapons which will be suppliable with ammo from the UK or USA.
And the douse of it is that I think the Dutch govt could have funded it all, with a big marketing and sell off of the many colonial resources on hand. Indonesia has a wealth of gemstones available, as well as tropical woods, etc. Now if a really clever marketting scheme to sell these goods around the world in a store chain ( revamped and resurrected West India Company) with special emphasis on the Germany market...
Giving that as a prerequisite, then I think the KNIL can hold Java in 1942, and thus make it a shorter war.
Heck, it might even deter Kido Butai altogether.
And with Java holding strong, there might be a chance to evacuate more Americans from the Phillipeans, or re-supply them. Convoys from Java to the Phillipeans might enjoy meaningful air cover for at least part of the journey. The IJN would probably want to meet the allied convoys closer to the Phillipeans. Now what could the allies do with that scenario (read Cactus Air Force).
So, if the Dutch would have done these things in the 1930s (and made it legal to send Contenental troops abroad) then we see the possibility for a real disaster for Japan. In short, I dont think the Japanese would have done Kido as we know it.
So we can suppose that if Java is to hold in '42, then the seeds of victory must be sewn in the 1930s. There must be a unified and well planned Dutch rearming in order to ensure that the Java garrison has what it needs. And that very much included naval power, and air forces that could at least dispute the air superiority issue so that niether side really controlls the air in/over Java and the sea out to the range of Dutch aviation. Here, the new cruisers and destroyers of the Dutch navy can at least have a chance. This keeps the Kawanishi flying boats at bay, and thus an advantage to the Dutch in the counter recon department. But it all depends on Holland starting early with rearming.
How much would it have cost? Well, what ever it would have costed for the Dutch to swing such a re-armament program, it would have been cheaper than what they did suffer by not doing it! They paid for it in the long run.
All the Dutch needed was
A...some leadership with vision, and
B...leadership with some guts.
Just some thoughts??? Just for fun.