[TIP] Repair WTK after reinstallation of JDK
By lukas on Feb 10, 2006
You see a message like the one below when you run a project using the broken WTK as the platform emulator in the NetBeans Mobility Pack.
run: Starting emulator in execution mode \\nbproject\\build-impl.xml:295: Execution failed with error code 1. BUILD FAILED (total time: 1 second)You cannot run the emulator even from command line.
Fixing the Broken WTK Installation
You can easily recover from this situation if you change the JDK path in the WTK scripts for existing JDK installation directory. You will have to change the path at least in these three files in bin directory in the WTK installation directory:
This TIP describes how to fix it on windows platform. The process is almost the same on linux. There is
javapathtowtkdefined in those three files. Change it to the new installed jdk.
This article has been published even on netbeans.org. You can find more details there - http://www.netbeans.org/kb/articles/fix-toolkit-installation.html.
More tutorials about Mobility Pack - link