title: Upgrade to phonegap 3.3.0
body: <p>I Am upgrading my phonegap project(s) from phonegap 2.9.0 to the latest one, phonegap 3.3.0.
  Because it has a lot of big improvements.</p>
  
  <p>It's about an android project, but soon to be ios as well</p>
  
  <p>However, I Am struggling with it a few days, and still no working code.</p>
  
  <p>I have done this:</p>
  
  <p>Installed phonegap and creted a new project like the the manual: <a href="http://phonegap.com/install/" rel="nofollow noreferrer">http://phonegap.com/install/</a></p>
  
  <p>After this I slowly inserted my old code into the www folder and installed the plugins on the new 3.0 way.</p>
  
  <p>But whatever I do... I get this annoying: </p>
  
  <blockquote>
    <p>Error initializing Cordova: Class not found</p>
  </blockquote>
  
  <p>Because I used to run it in eclipse and use this debugging console (And did not find out how tot get the debuging from the cli to work... some more investigation to do there), I tried to get it working in eclipse.</p>
  
  <p>But there, it does not have the cordova jar, and I can't find it anywhere.
  I used to add the cordova-2.9.0.jar to the build path, but there is no cordova-3.3.0.jar.
  I saw an answer abouyt creating it yourselve: but this was later remarked as not the proper way (ans since in no phonegap documentation this is mentioned... i cannot imagine that's the way)</p>
  
  <p>In eclipse, this is causing the error: import org.apache.cordova.*;</p>
  
  <p>So like I said... no cordova jar... hwo do you resolve this?</p>
  
  <p><strong>So a few questions all at once...</strong></p>
  
  <ol>
  <li>To get better debugging: how do i get this working in eclipse </li>
  <li>Why do I get this error... class not found (probably related with
  the missing jar)</li>
  </ol>
  
  <p>None of the related questions gave a solution for me...</p>
  
  <p><strong>Edit</strong>
  I was just going add, the steps in more detail, like I floowed this step:
  <a href="http://docs.phonegap.com/en/3.3.0/guide_cli_index.md.html#The%20Command-Line%20Interface" rel="nofollow noreferrer">http://docs.phonegap.com/en/3.3.0/guide_cli_index.md.html#The%20Command-Line%20Interface</a></p>
  
  <p>but than I noticed... this command: </p>
  
  <blockquote>
    <p>sudo npm install -g cordova</p>
  </blockquote>
  
  <p>which I thought I had done, but I had done: </p>
  
  <blockquote>
    <p>sudo npm install -g phonegap</p>
  </blockquote>
  
  <p>But this does not make any difference.</p>
  
  <p>Running it with: `</p>
  
  <blockquote>
    <p>phonegap run android -V --device</p>
  </blockquote>
  
  <p>`Gives:</p>
  
  <pre><code>[phonegap] detecting Android SDK environment...
  [phonegap] using the local environment
  [phonegap] compiling Android...
  [phonegap] Generating config.xml from defaults for platform "android"
  [phonegap] Compiling app on platform "android" via command "/Path to my app/platforms/android/cordova/build" 
  [phonegap] Platform "android" compiled successfully.
  [phonegap] successfully compiled Android app
  [phonegap] installing app onto device
  [phonegap] Generating config.xml from defaults for platform "android"
  [phonegap] Running app on platform "android" via command "/Path to my app/platforms/android/cordova/run" --device
  [phonegap] Platform "android" ran successfully
  </code></pre>
  
  <p>but still gives the error as before.
  And in eclipse still need to add the cordova jar, which is nowhere to be found..</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I created a new project, just to see what happened when adding this to eclipse.. and it seemed to work. So I removed the project from ecplise... and added it (floowing the phonegap docs for thsi: new android project; Add from existing code). And now it creates a new jar named - cordova-lib.jar in the folder platforms/CordovaLib/bin</p>
  
  <p>and this seems to work for eclipse... still the same error in the cli run command. But now I can try to run it from eclipse and find out more... (I will post it as soon as I find out what is the error)</p>
  
  <p><strong>Edit 3</strong></p>
  
  <p>running it in eclipse shows the error (weird that this is not shown in the -V mode of phonegap):</p>
  
  <pre><code>01-05 09:04:16.557: D/CordovaLog(698): file:///android_asset/www/phonegap.js: Line 1544 : Could not find cordova.js script tag. Plugin loading may fail.
  01-05 09:04:16.567: I/Web Console(698): Could not find cordova.js script tag. Plugin loading may fail. at file:///android_asset/www/phonegap.js:1544
  </code></pre>
  
  <p>But why isn't this js file there....</p>
  
  <p><strong>EDIT 16-jan-2014</strong></p>
  
  <p>This is becoming a popular question too look at. So I am not the only one struggling with phonegap 3.x And here is another yet unsolved question: <a href="https://stackoverflow.com/questions/20953653">https://stackoverflow.com/questions/20953653/config-xml-phonegap-3-3-0-ignores-name-and-description</a></p>
  
  <p><strong>EDIT 21-jan-2014</strong>
  Important note (see a lot of questions about this): the config.xml in the blueprint www folderis not the same as described in the phonegap docs. It has another schema, and is the blueprint for both the config.xml per platform, as a lot of other things and files (androoid manifest xml files, icons etc.). Unfortunately I have not found a proper description (besides the schema) of this config.xml file (only a good descrition of the platform dependent targets config.xml file) in the phonegap docs yet. And it is very confusing they choose the same name for a very different file...</p>
  
  <p><strong>EDIT 12-feb-2014</strong>
  This might be helpfull... since I still cannot find a proper description of this so called blueprint config.xml on the phonegap pages: <a href="https://github.com/phonegap/phonegap-start/blob/master/www/config.xml" rel="nofollow noreferrer">https://github.com/phonegap/phonegap-start/blob/master/www/config.xml</a></p>
  
  <p><strong>Edit 5 may 2014</strong></p>
  
  <p>Due to all problems in phonegap, the benefits of the principle behind phonegap has gone for me. (I still believe in potential phonegap can be the solution... but for now it's to premature). So I Am sorry i have to leave the phonegap path. I let this answer open for the ones still searching for answers... but do not expect any answers or the 'acceptance of the right answer' from me.</p>