first, the error phenomenon.
The Java Project displays red, and a red error is reported in the reference package in the class, and the following error message is displayed below eclipse
Second, the cause of the error.
It is clear from the literal meaning that the Java version is incorrect.
Third, the solution.
3.1 Right-click Project "Properties" on
First: install and configure the Java Runtime Environment
First download JDKInstalling JDK is to install a Java Virtual Machine on your local machine. It provides the core environment for compiling and running the Java program you have compiled (to be honest, this is a copy, but you can understand it)Find the JDK on the sun homepage.Http://java.sun.com/javase/do
Javac compilation times "invalid forward reference" and the defects of the Java compiler that comes with Eclipse
When compiling the following classes, if you change the value assignment method of WARNING_LEVEL to "= StatusDef. WARNING", javac reports "invalid forward reference ". The compiler that comes with
A lot of Android developers like me, with the IDE may be from Google's Android Web download ADT bundle Eclipse Bar, it is really convenient, the decompression is directly available. But some time ago encountered a problem, was intended to use a butterknife this injection framework, but not just throw the jar bag into the Project Libs folder is finished, but also required in the project right key preference find Ja
developer.public enum Forwardreference {c0000_1 (forwardreference.normal_level), c0000_2 (Forwardreference.warning_level); public static final Short normal_level = 0x32;//Toggles the following comment lines to generate an "illegal forward reference error" under Javac//public static final Short warning_level = Statusdef.warning;public static final Short warning_level = 0x08;private final short statuslevel;public short Getstatusle Vel () {return statuslevel;} Private Forwardreference (short statu
The project developed in Eclipse has a JDK that can be configured in Java build path, and a Java compiler can be configured with compiler level, which is different, Java compiler The JD
Installation EnvironmentSystem: Win7 SystemSoftware: Eclipse (mars.2 Release (4.5.2))Installation steps1. Open the Eclipse software and click on the Help-->install New software in the menu bar 2. In the pop-up installation window, click the Add button and enter the SVN install address: http://subclipse.tigris.org/update_1.10.x, click OK
3, tick the options you want to install, then click Next, the
Always look forward to having an online eclipse website that wants to see a jar package that does not need to download this jar package locally and import Eclipse to see the source code of this jar. One day colleagues introduced a website www.grepcode.com really feel good, not only can see the source code of this jar, click on the association of class or method,
platform based on the different starting points provided by the platform tool API. In the scope of quantification, most quantization Platforms provide online compilation of policy code in Python and Java, and provide related APIs for users to complete quantitative policy development.
As common scenarios are common, there are also many mature examples related to development and setup. This article will not
There is always such a problem, that is, the newly downloaded Eclipse open a project with the enum keyword, there is always a situation where you do not know enum.
It is observed that the JRE system library of the project has already been set to 1.5 or 1.6. In theory, the enum keyword should be supported.
I was puzzled and found that the JRE configuration is actually used, not the compiler configuration
platform based on the different starting points provided by the platform tool API. In the scope of quantification, most quantization Platforms provide online compilation of policy code in Python and Java, and provide related APIs for users to complete quantitative policy development.
As common scenarios are common, there are also many mature examples related to development and setup. This article will not
1.eclipse Background color settings:Window->preferences->general->editors->text Editors->backgroud ColorsCancel the system default setting to: RGB (204,232,207).2. Font Size setting:Java fonts:Menu Windows>prefenrence>general appearance>colors and Fonts select java> Java Editor Text Font in the menu on the rightSimilar to the other languages of
. The general practice is to put it in the top-level directory of the project. This will keep the project concise and clear. The following is a typical project hierarchy.(1) src deposit file.(2) class holds the compiled file.(3) Lib holds third-party jar packages.(4) Dist Storage package, post code.Learn more about Ant and you can search by yourself.2. Install Ant(1) Download ant, I downloaded the apache-ant-1.9.4-bin.zip (address: http://ant.apache.org/bindownload.cgi)(2) Extract to a specific
Bug prompt
Unable to locate the javac compiler in:C: \ Program Files \ Java \ jre1.6.0 _ 07 \ .. \ Lib \ tools. JarPlease ensure you are using JDK 1.4 or above andNot a JRE (the com. Sun. Tools. javac. Main class is required ).In most cases you can change the location of your JavaInstallation by setting the java_home environment variable.
From abovePlease ensure you are using JDK 1.4 or above andNot a J
Just installing the latest Maven 3.2.5, using MAVEN's run As->maven install in Eclipse, always prompts:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (Default-compile) on project Testweb1:compilation failureWorkaround:Add the plugin here:Maven Compiler PluginIn eclipse->window->perfer
build errors for spider; Org.apache.maven.lifecycle.LifecycleExecutionException:Failed to execute goal org.apache.maven.plugins: Maven-compiler-plugin:2.3.2:compile (Default-compile) on project spider:compilation failureUnable to locate the Javac Compiler in:C:\Program files\java\jre6\. \lib\tools.jarPlease ensure your are using JDK 1.4 or above andNot a JRE (the
The compiler compliance setting tells the compiler to pretend it ' s a different version of Java.The Java 8 compiler would produce class files in the Java 8 version of the class file format, and accept Java 8 source file S. JRE 6
Support ECLIPSE3.2M3 and ECLIPSE3.2M4.Download Jadclipse_3.2.2.jar version, support ECLIPSE3.2M5 above.
(2) jad1.5.8e compiler programDownload Address Http://www.kpdus.com/jad.html#downloadUnzip after downloading. After decompression, copy the Jad.exe to the JRE bin directory, such as \java\jre1.5.0_06\bin
2. Load plugin:If the plug-in package is: Net.sf.jadclipse_3.2.4.jar(1) directly into the
Complete and comprehensive Java resource library (including construction, operation, code analysis, compiler, database, community, etc.) and java resource libraryBuild
The tools used to build applications are collected here.
Apache Maven: Maven uses declarations for building and dependency management. It prefers to use conventions instead of configurations for
Complete and comprehensive Java resource library (including construction, operation, code analysis, compiler, database, community, etc.) and java resource libraryBuild
The tools used to build applications are collected here.
Apache Maven: Maven uses declarations for building and dependency management. It prefers to use conventions instead of configurations fo
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.