Tomcat---------This question is quite common. The main is. Java_home should point-a JDK not a JRE Baidu a bit, found there are many solutions. Some of them can be done. Vary.Here to say, think more effective way. ----------Java_home should point to a JDK not a JREThe first thought relates to the java_home. So cmd. Inputif not exist "%jre_home%\bin\java.exe" Echo no JRE javaReturn result: No
Many friends may be like me, have been using Java development for a long time, but the JDK,JRE,JVM of these three links and differences, has always been vague.
Today's close-up of this article, to organize the next three relations.
Jdk:java Development ToolKit (Java Developer Toolkit). The JDK is the core of the entire Java system, including the Java Runtime Environment (Java Runtime envirnment), a stack of Java tools (Javac/java/jdb, and so on) and
This problem occurs when I installed two versions of eclipse on ubuntu1004: galieo + Helios. After I uninstalled the former, I found that eclipse cannot be started. If I found it online, I can solve it as follows:
Eclipse 3.6 has a strange phenomenon in Ubuntu 10.04. I have not passed the test and cannot determine whether it is caused by Ubuntu 10.04, JDK, or eclipse. This phenomenon is:
You can start eclipse on the terminal, but double-click it, or use the starter to start eclipse as follow
Compiler: generate EXE directly
Script interpreter: such as Ruby, Python, JavaScript,CodeIs executed row by row
JRE/CLR: Java Runtime Environment/Common Language Runtime. These are essentially not much different from the script interpreter, but there is a compilation process in the middle, however, it is not compiled as the local code, but as the bytecode that can be executed by their runtime environment.
I still feel incredible about Microsoft's c
My tomcat version is Apache-Tomcat-6.0.18 (the decompress package is used). The decompress path is E: \ apache-Tomcat-6.0.18 \ apache-Tomcat-6.0.18 \, if I deploy it in myeclipse, it can be started normally. Of course, I can also access my project, but if I start startup directly in the Tomcat source file bin. if BAT is used, it will be shown to me:
The java_home environment variable is not defined correctlythis environment variable is needed to run this programnb: java_home shocould point to a
Tags: Java re Ar c SoftwareWhen configuring the myeclipse environment today, I confused the differences between JDK and JRE, so I found the answer on the Internet:JDK is the Java Development Kit. In short, JDK is an SDK for developers. It provides the Java development environment and runtime environment. The SDK is a software development kit. It generally refers to a software development kit, which can include function libraries and compiled programs.
1 Java SE, Java ee, and Java MeThese three are the standards of Java. Java SE is fundamental, and Java EE is built on Java SE for server. Java me is a subset of Java SE for use in terminal applications.2 JDKThe JDK is a Java three standard implementation. Java SE, Java ee, and Java me all have their own SDKs.3 SpringSpring, like Java EE, is used for server-side programming, and it is also built on the JDK of Java SE.Composition of 41 JDK4.1 Series of development toolssuch as Java, Jar, Javac, jd
1, if the environment has been configured variable, then directly open cmd, input java-version, press ENTER can be viewed to the installed Java version;
2, if the environment variable is not configured, you cannot directly execute the command, open the JRE installation directory;
3, into the Bin folder, to find Java.exe;
4, hold down the SHIFT key may, right click Java.exe, select "Open Command Window Here";
5, and then
Maven encountered an error compiling the project with the following message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testcompile (Default-testcompile) on Project springside-core:compilation failure [ERROR] No compiler is provided to this environment. Perhaps you are running on a JRE rather than a JDK?[ERROR]-> [Help 1][ERROR][ERROR] To the "full stack" trace of the errors, re-run Maven with THE-E switch.[ERROR
Tags: images res eclips file Rt.jar ref picture Alt statichttp://yhjhappy234.blog.163.com/blog/static/31632832201302195511390/Workaround:This is a setup issue for Eclipse, which by default sets these access-restricted APIs to error, so you just put the deprecated and in the windows-preferences-java-complicer-errors/warnings Forbidden references (access rules) in the Restricted API is selected as warning and can be compiled and passed. Image:Access restriction:the type JPEGImageEncoder isn't acce
In Linux, JRE does not display Chinese solutions-general Linux technology-Linux programming and kernel information. For details, refer to the following section. When JRE is installed in windows, Chinese characters are displayed without configuration, but not in linux. Many characters are often displayed as small squares. The following method can be used to solve this problem, so that the
instructions translated into the corresponding machine code instructions, side translation side ExecutionJava file----->java compiler----->.class file----->java interpreter------> platform (OS and hardware)II. JREThe JRE means the Java Runtime environment, including the Java class Library, the JVM, and some configuration filesis the JRE file in the installation directory, and the JDK file is the software D
Comparison of JRE versions with Java
Many programs adopt JDK Development of Higher versions. These programs may use higher versions.
The features of the JDK version cannot be run on the JDK of a lower version or are displayed properly.
To determine the JRE version in the current system
This section provides a version judgment class.
Versionchecker. Java Import java. util. stringtokenizer;
Public class vers
Jre:java runtime Environment/java Run-time environmentTarget User: Only the user who wants to run the Java programThe JRE contains: Deployment,user Interface toolkits,integration libraries,other base Libraries,lang and util base Libraries, Java V Irtual machine (Jvm,java VM).Jdk:java Development Kit/java Development KitTarget User: Java development programmerThe JDK is the developer kit that programmers need to write Java programs in the Java language
Today the computer changed the system, installed the JDK, accidentally put the directory under the JRE to delete the ...Reinstall, but just don't play out the JRE installation ... Tapping Java on the command line says the directory for the JRE could not be found.Since a tangle for a long time, the last way to find is: Find a more than you installed JSK version of
Translated from jingyan.baidu.com/article/c85b7a6464d8be003bac95fb.html(Linux I directly follow the second step, error resolution)When you run Maven install with Eclipse,[ERROR] Unable to locate the Javac Compiler In:d:\program files\java\jre6\. \lib\tools.jar ensure you be using JDK 1.4 or above and not a JRE (the Com.sun.tools.javac.Main class is required) . In most cases you can change the location of your Java installation by setting the JAVA_HOME
Install JDK in Ubuntu server10.10, run the following command: sudo apt-Get install sun-java6-jre, and then there is the following prompt:
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
There is no available package sun-java6-jre now, but it is referenced by other packages.
This may mean that the missing software
Recently, a small project, using Java, made an application, but the user does not understand Java at all. It is impossible for the user to install JRE and set the environment variables. Therefore, the JRE is put together into the software, the method is as follows:
Create a directory as a packaging directory, such as the ring directory. Create a Java directory in this directory and copy bin and Lib under t
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.