简体   繁体   中英

Error when i import java.util.Arrays

When I import java.util.Arrays , Eclipse IDE says:

Arrays cannot be resolved

I've also tried to manually import the Java file. Still am getting the same issue.

Check the below directory

C:\Program Files\Java\j2re1.4.2_12\lib

In there, you should see files like rt.jar which contains the core Java classes and charsets.jar which contains many of the extended encoding support for EBCDIC and the CJK languages.

na parallel bin directory are the executables for Java and related utilities.

If you've installed the Java Development Kit (JDK), in the directory above where you find the libs you will probably find a src.ja r file. This can be unpacked either with the jar.exe utility, or with a standard zip-style tool, and contains the Java sources to the standard class library.

Some of Java, such as the virtual machine itself, is machine-specific, and will be part of some of the DLL's or EXE's present.

May be you haven't configured Java with your project in IDE.

Please check build path of your project and find whether you have configured JRE/JDK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM