Document directory
1. How to query the local Java version?
2. Where is the Java Control Panel on Mac?
3. solve the problem that the source code cannot be found in eclipse. the JAR file/system/.../classes. Jar has no sourece attachment.
4. Modify the source code bound to eclipse
Brief Introduction
1. Mac
Download jdk1.7 for Mac at http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html.
Next, double-click DMG to open ,. The installation directory will not be selected until the installation is complete...
Change the JVM preference order, search for [Java Preferences] in Spotlight (the Chinese version should be the
While the official version of Java 8 has been released for more than two years, the current flagship version of Java Enterprise Applications is Java 6 and Java 7, and even worse, some of the company's early projects have to be run under Java 5, and I want to experience the n
/jdk1.8.0_25.jdk/contents/macos/libjli.dylib is architecture: x86_64clearly shows the architecture:x86_64, and the real source is found because Eclipse is 32-bit, andOracleJDK7.0 and 8.0 are64 Guests, the problem solved is simple, download Eclipse 64-bit for MAC OS x. because the result of/library/java/javavirtualmachi
/jdk1.8.0_25.jdk/contents/macos/libjli.dylib is architecture: x86_64clearly shows the architecture:x86_64, and thus, the real source is found, because Eclipse is 32-bit, andOracleJDK7.0 and 8.0 are64 Guests, solve the problem very easy, download eclipse 64 bit for Mac OS X can. as the result of the/library/java/javavir
/javavirtualmachines/jdk1.8.0_25.jdk/contents/macos/libjli.dylib is architecture: x86_64clearly show architecture:x86_64, so the real source is found, because Eclipse is 32-bit, and Oracle JDK 7.0 and 8.0 are 64-bit, the problem is simple, download Eclipse 64-bit for MACOS x. because the result of/library/java/javavirtualmachines/jdk1.8.0_25.
My Mac system version is OS X 10.10.2 Yosemite, which installs JDK 1.7 for Android development with Eclipse, but if you want to use the IntelliJ IDE for Android, you need to install jdk1.6, So in accordance with the official guidelines installed jdk1.6, but run the java-version command, the actual system
The problem is also very silent, yesterday reinstall Mac OS X, and then install the JDK, do not want to install JDK 8, and then start the experiment, the results are similar to the following exception:Org.aspectj.apache.bcel.classfile.ClassFormatException:File: ' Java.util.Comparator ': Invalid byte tag in constant Poo
Edit $ECLIPSE _home/Eclipse. app/contents/MacOs/eclipse.ini file, right or CTRL + click on the eclipse application in the Finder, then click "Show Package Contents" and go to directory contents/macos/to findby ls-ltr/library/Java/javaVirtualmachines/lists the installed individualJDKversionpath, and then specify it in the Eclipse.ini file, for example:-VM/library/java/javavirtualmachines/jdk1.8.0_25.
Start tossing Mac Pro, find some information on the Internet, I also tried a bit, special here to do a summary.
The location of the JDK in your Mac
OSX default JDK/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/HomeThis is actually a symbolic link, which points to:/System/Library/
First of all, my environment, easy to reference.System version 10.9.4No pre-replacement JDK is version 1.7The target version of the replacement is JDK 1.6Because Oracle does not provide a Mac version of JDK 1.61) so go to Apple website to download Http://support.apple.com/kb/DL1572?viewlocale=en_US2) After installation
Operating System: MacOS X 10.6.8 snow leopard
JDK in Mac does not contain source code, so it cannot be viewed in eclipse.
Need to download Java from http://connect.apple.comFor Mac OS X 10.6 update 6 developer package. After downloading, install the package first, and then e
Go to the command line and start doing the following:
CD ~touch.bash_profile
VI. bash_profile
Enter the contents of the JDK variable configuration:
Export Java_home=/library/java/javavirtualmachines/jdk1.7.0_45.jdk/contents/home
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $
If you have more than one Java JDK version installed in your system, you may be able to switch back and forth depending on the project or the compilation environment, and there are two very handy ways to choose between them.I have Java 7 and Java 8 on my machine, and you are modifying it according to your own
Found the default version is 1.6, want to change to 1.8 after several practices1, according to Baidu out of the results, the normal addition of operations:Idea can specify a different version of the JDK for each project and requires the developer to manually configure the version of the JDK used by the project. The configuration method is as follows:(1) Click File | Project Structure menu item, open Project
Intellij idea by default, the version of the JDK used is 1.6, and when the idea is first launched, if the JDK is not installed on the system, the system will automatically download the JDK installation file on the Apple website. If your system is already installed with jdk1.7 or higher, you will be asked to install the Apple website jdk1.6 when you first open ide
Mac OS X Java-based programs (such as IntelliJ idea, jEdit, etc.) will appear invalid Chinese punctuation input, in the Chinese input method state, you can enter the Chinese characters, but the input punctuation at the end of the English punctuation. Read the relevant information, originally this is Java's own bug. This bug has occurred since the
How to Set up a Java Development Environment under Mac OS and configure Java environment variables, osjava1. Open the terminal and search in the finder (This MAC) to find the Terminal 2. In cdlouiedeAir :~ Cdlouie $ (cdlouie is my computer user name) and enter sudo vim/etc/p
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.