In Eclipse/myeclipse
When compiling with Maven, fail, prompt:
Please be ensure the using JDK 1.4 or above and not a JRE (the Com.sun.tools.javac.Main class is required).
Cause of the problem:
Eclipse/myeclipse default is to use the JRE as the operating environment, and MAVEN compilation requires the JDK as the operating environment;
Workaround:
Set the JRE
Due to license, the Ubuntu release version does not contain Oracle (Sun) java6. instead, it is replaced by OpenJDK, which is the default java version of Ubuntu and the easiest to install. However, some applications specifically emphasize that they cannot use OpenJDK, but must use standard JDK or JRE... due to license, the Ubuntu release version does not contain Oracle (Sun) Java 6 and is replaced by OpenJDK. this is the default java version of Ubuntu
this hanging JVM exists in the Java Runtime Environment JRE(Java runtime enviroment), the JVM is a subset of the JRE, With this JRE you can run the Java program, a friend who has played my world should know to download a JRE before playing my world, because my world is written in Java code, this
After Maven is refreshed, jdk becomes jre, and maven refreshes jdkjre.
There are two ways to set jdk in maven: setting. xml or pom. xml, and pom.
Set setting. xml to a global variable. Add the following profile element under the profiles element in the setting. xml file.
If you set it in the pom. xml file of your project, it is a local variable.
And
You can specify the jdk version above.
But another problem is that after maven specifies jdk, it
In some versions of Ubuntu, such as 10.10, the following strange problems occur:1. Installing the JDKThe JDK i downloaded is in bin format, run unzip directly and get a folder.This folder is used as the JDK's installation directory and can be copied to any directory.Then configure the environment variable ~/.BASHRC, added at the end:Export JAVA_HOME=Export Jre_home= $JAVA _home/jreExport path= $JAVA _home/bin: $JRE _home/bin: $PATHRestart the machine.
1) JRE (Java runtime Environment,java Runtime Environment)including Java virtual machines (JVM Java) and the core class libraries required by Java programs, if you want to run an already developed Java program, you only need to install the JRE on your computer.2) JDK (Java Development Kit,java Development Kit)The JDK is available to Java developers, which includes Java development tools and the
application byte code directly from the class file.
Appletviewer: Applet browser, a Java browser that executes Java applets on HTML files.
Javadoc: Generates HTML documents from Java source and description statements.
Jdb:java the debugger, you can execute the program line by row, set breakpoints, and check variables.
Javah: Produces a C procedure that can invoke a Java procedure, or a header file that can be invoked by a Java program.
Javap:java the disassembler, showing the accessibility
The problem with a public JRE on the crazy Java P9 is described in this way:
The public JRE is a stand-alone JRE system that is installed separately under other paths in the system. The public JRE registers the Java Runtime environment with the IE browser and the system. In this way, the public
, and then select the jar package in the main class with the main function of the class. Also here you can set the JVM allow parameters, as well as the program to run the local library and so on, if the program references to other jar packages should also be imported here
6. Set the required JRE version, if there is no maximum version limit to keep it empty.
The point is that if we want to ensure that the released program can run on a machine that
I opened eclipse yesterday and there was a java\jdk1.6.0_23\bin\ that could not be found. \jre\bin\client\jvm.dll error, do not know so, then go under this path, hair jvm.dll is presentThen suspected is the JRE and JDK version conflict problem, because the machine installed not a system, there are 32 also have 64, and the first two days also appeared in Chrome under the situation of Java support, let me ins
This article is not original, transferred from http://liguoliang.com/2010/eclipse-is-running-in-a-jre-but-a-jdk-is-required/A warning message appears every time you install Maven:Eclipse is running in a JRE, but a JDK was requiredsome Maven plugins may isn't work when importing projects or updating sour Ce folders.Solve the problem in two steps:1. Check the JRE t
Click the start → Run command to enter "RunDll32 advpack.dll,launchinfsection Java.inf,uninstall" In the Run dialog box, and the system will open "Microsoft VM UnInstall" after carriage return dialog box, click the "Yes (Y)" button, the system will begin uninstalling the Microsoft Java Virtual Machine, after the uninstall is completed, you need to reboot the system.
Next, delete "%systemroot%" (that is, the Windows installation directory, the Windows 2000 system is the Winnt directory, Windows
Differences and connections between JVM, JRE, and JDK
JVM: javavirtualmachine (Java Virtual Machine ). The so-called "Virtual Machine", as its name implies, is something simulated. It is like watching TV on a computer, but the computer does not have the same hardware support as in the TV, but we can still accept TV programs from the computer. That's because we have compiled a software program that can simulate the television hardware and run it on
JVM (Java Virtual Machine)It can be understood as a virtual computer with basic computing methods,It is mainly responsible for interpreting bytecode files generated by java programs as machine commands on specific system platforms.Let specific platforms such as Windows run these Java programs.JRE (Java Runtime Environment)Including the core class libraries required by Java Virtual Machine (JVM Java Virtual Machine) and Java programs,To run a developed Java program, you only need to install
The JDK (Java Development Kit) is the core of the entire Java , including the Java Runtime Environment, Java tools, and the Java base Class library. JDK as a Java development environment, whether it is to do Java development or do Android development, you must install the JDK on the computer.I am XP system, download the JDK on the Internet can not be used, said the system is too low, so had to uninstall, re-find the 32-bit XP in the context of the JDK download.The
1.JDK Relationship to the JREJdk:javadevelopmentkit (Java Development Kit)Jre:javaruntimeenvironment (Java Runtime Environment)DescriptionJDK = JRE + Development toolset (e.g. JAVAC compilation tools, etc.)JRE = JVM + Java SE standard class Library2. Directory Structure for JDK 8DescriptionThe bin directory contains command-line development and debugging tools such as Javac,jar and Javadoc.The Include direc
When JDK/JRE is installed, the default Java program may display a box in Chinese when reading the Chinese catalog. The main reason is the lack of fonts, not Java does not support Chinese.
The workaround is to add the font of the system to Java.
Java fonts are generally below the/jre/lib/fonts directory. When you add a font, you need to create a fallback directory under that directory and place a link to t
An analysis of the concept of jdk,jre,ide
1.JDK is what. There's something inside.JDK, the English full name is Java Development Kit (Java Development Kit). It is a collection of tool programs and documents. There are Java worker (. exe executables such as Javac.exe,java.exe,debuger.exe,jar.exe,javadoc.exe) and Java base class libraries (jar packages such as Java.io,java.sql, Java.lang,java.util, etc.). It is intended for developers.
2. What is in th
1. Download JRETo download the corresponding version of the JRE on the official website, click on the EXE executable to complete the installation process.2. JRE environment variable ConfigurationAdd the Java_home, PATH, and CLASSPATH variables to the system variables of the environment variable, and here I have added the jre_home variable, because when I click on Startup.bat to run Tomcat, I just flashed th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.