attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using
2015-04-19 16:27
405 查看
关于eclipse运行出现,attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using错误的解决方案“
Here is the best way to fix this:
Create a shortcut to your eclipse.exe.
Right-click on the shortcut and select Properties.
In the Target area, add
Select OK, and launch Eclipse.
Running Eclipse with -vm argument: Here is an example of the -vm argument for the default installation of JDK 1.6.0_45.
To fix this:
In Eclipse, select your project.
Select File > Properties.
Select Java Build Path > Order and Export.
Check the box for Android Private Libraries, and select OK.
Clean your project by selecting Project > Clean.
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.
Installing Android apps with Eclipse (standard installation, configuration, and upgrade procedures to install your Android app with Eclipse)
Customizing your mobile app settings (Settings tab options to view your mobile app's application token, rename it, or install New Relic Mobile updates)
If you need additional help, get support at support.newrelic.com .
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:\Windows\System32, 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:
Create a shortcut to your eclipse.exe.
Right-click on the shortcut and select Properties.
In the Target area, add
-vm "Path\to\jdk\bin"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 Files\Java\jdk1.6.0_45\bin".
Select OK, and launch Eclipse.
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:
In Eclipse, select your project.
Select File > Properties.
Select Java Build Path > Order and Export.
Check the box for Android Private Libraries, and select OK.
Clean your project by selecting Project > Clean.
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:Installing Android apps with Eclipse (standard installation, configuration, and upgrade procedures to install your Android app with Eclipse)
Customizing your mobile app settings (Settings tab options to view your mobile app's application token, rename it, or install New Relic Mobile updates)
If you need additional help, get support at support.newrelic.com .
相关文章推荐
- 如何解决It's likely you're attempting to run Eclipse using the JRE instead of the JDK
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command f
- Using Dispatch Semaphores to Regulate the Use of Finite Resources
- Is it possible to use a checkbox in a split button list instead of the gear icon?
- Windows下启动eclipse出现JRE or JDK must be available in order to run Eclipse.No Java virtual machine was
- Eclipse打war包(maven项目)错误To see the full stack trace of the errors, re-run Maven with the -e switch
- How to enable the use of 'Ad Hoc Distributed Queries' by using sp_configure
- sqldeveloper启动时报 Unable to create an instance of the Java Virtual Machine Located at path: ../../jdk/jre/bin/client/jvm.dll 错误
- niagara编译错误:using type arguments to access generic types requires the use of "-source 1.5"
- 2016.6.20 eclipse安装完毕后打开失败,显示a JDK or a JRE must be avaliable in order to run Eclispe
- How to set the enviroment variables of JDK & Eclipse!
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined ;At least one of these environment variable is needed to run this program
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. ......
- 普通用户操作tomcat项目时报:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
- Eclipse打war包(maven项目)错误To see the full stack trace of the errors, re-run Maven with the -e switch