Beta2 is rebuilt
By lukas on Nov 23, 2005
It happend when we wanted to fix problem with locked files on windows for our user after Beta1. We workarounded this "lock" problem by copying jar and jad to system's default temporary directory and using it from this location instead of direct using jar/jad from dist directory. This caused another problem that we didn't expected - the name of the TEMP directory is in this location C:\\Documents and Settings\\[user_name]\\Local Settings\\Temp\\in English windows. The name of the directory is same in Czech windows too (that's the reason why I had no chance to find it ) Unfortunatelly the "Local Settings" part of the directory is translated in Spanish, Swedish and other languagues and the directory contains non-ascii characters then. WTK2.2 cannot run jar/jad where there are non-ascii characters in path (it's known bug noticed in MP5.0 Release Notes). This was the main reason why our users started complain about Beta2 quality. Instead of running emulator they received exception.
Running with storage root DefaultColorPhone java.io.IOException: storageOpen(): No such file or directory, C:\\Documents and Settings\\Alejandro\\Configuraci?n local\\Temp\\nbrun17087\\SMSTest.jad at com.sun.midp.io.j2me.storage.RandomAccessStream.connect (RandomAccessStream.java:90) at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:169) at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:91) at com.sun.midp.main.Main.runLocalClass (Main.java:453) at com.sun.midp.main.Main.main(Main.java:126) Execution completed.
There was big discussion about possible solutions. Starting with ignoring it, providing a patch for affected users and even recommending crazy workaround to change path to TEMP directory in Environment Variables.
Finally we decided to do the best for our users. The best thing is to re-spin the Beta2 build with the bugfix of this issue. The fix is easy - the jar and jad will be still copied to a temporary location but it won't be system's default temporary directory anymore. It will be copied to an temporary directory that is created in the dist directory of your project. This directory will be automatically deleted when you'll finish emulator's session.
Who Is Affected?
Users with localized windows installations. If you cannot run any MIDlet in emulator then you should re-install your Mobility Pack with re-builded Beta2 build. There is no need to re-install NetBeans only the Mobility Pack. You don;t have to un-install it before installation this will be done as part of new installation. The installer will ask you if you want to un-install existing Mobility Pack Beta2 during installation steps.
Download Re-builded Beta2
The new re-builded Beta2 build of Mobility Pack 5.0 can be downloaded from the same location as the "old" Beta2 build. We replaced the "old" build with "new" one.