zoukankan      html  css  js  c++  java
  • attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using

    关于eclipse运行出现,attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using错误的解决方案“

    Incorrect path to your JDK

    When you install the Java JDK from Oracle (1.6 or 1.7), by default, it installs both the JDK and the JRE. If it installs the JRE, Eclipse will point to javaw.exe in C:WindowsSystem32, which is where Oracle installs it by default. Some Android apps will build with this setup, but New Relic Mobile requires libraries that are only in the JDK.

    Here is the best way to fix this:

    1. Create a shortcut to your eclipse.exe.
    2. Right-click on the shortcut and select Properties.
    3. In the Target area, add -vm "Path ojdkin" to the end of eclipse.exe (with a space after eclipse.exe), where Path is where your JDK is installed. For example, if you have JDK 1.6.0_45 installed in the default directory, add
      -vm "C:Program FilesJavajdk1.6.0_45in".
    4. Select OK, and launch Eclipse.
    screen eclipse vm.png
    Running Eclipse with -vm argument: Here is an example of the -vm argument for the default installation of JDK 1.6.0_45.
     
     

    ADT 22 errors

    After upgrading to ADT 22, you may see "java.lang.NoClassDefFoundError" when attempting to run your project. This is because sometimes, when upgrading to ADT 22, the new Android Private Libraries is not checked in the Order and Export of your Java Build Path.

    To fix this:

    1. In Eclipse, select your project.
    2. Select File > Properties.
    3. Select Java Build Path > Order and Export.
    4. Check the box for Android Private Libraries, and select OK.
    5. Clean your project by selecting Project > Clean.
    screen java build path.png
    Add Android Private Libraries to Order and Export: In your project properties, under Java Build Path > Order and Export, check the box for Android Private Libraries.

    For more help

    Additional documentation resources include:

    If you need additional help, get support at support.newrelic.com  .

  • 相关阅读:
    codeforces 261B Maxim and Restaurant(概率DP)
    洛谷P3066 [USACO12DEC]逃跑的Barn (线段树合并)
    洛谷P1600 天天爱跑步(线段树合并)
    AtCoder
    SPOJ10606 BALNUM
    洛谷P3567[POI2014]KUR-Couriers(主席树+二分)
    洛谷P2633 Count on a tree(主席树上树)
    【.Net边角料系列】1-单例模式(我真不是你想的那样)
    生成二维码的开源工具对比(附源码了呀!)
    你所不知道的linq(二)
  • 原文地址:https://www.cnblogs.com/spring87/p/4439365.html
Copyright © 2011-2022 走看看