2013年12月1日星期日

JDK7 CLASSPATH environment variable is not set yet

If that, after I manually put inside the jar package path CLASSPATH deleted , you can still compile and run the cmd inside , is not jdk7 CLASSPATH environment variable is not set up yet ?
------ Solution ------ --------------------------------------
after 1.6 do not have to configure classpath , and only need to configure the path and java_home.
------ Solution ---------------------------------------- ----
1.7 do not have to configure the classpath default , as long as the configuration path java_home
------ For reference only ------------------ ---------------------
system default path so you have nothing to die deleted .
------ For reference only -------------------------------------- -

default path is not already included in addition to all of the current directory jdk jar package ?
------ For reference only -------------------------------------- -

I think it is such a system jdk jar package is % JAVA_HOME% \ jre \ lib \ rt.jar, do not specify the classpath in JDK7 before .
just JDK7 even " ; ." This does not need to specify the current directory .

However, when the introduction of other classes ( such as database-driven , etc. ) , or to specify the classpath .

------ For reference only ---------------------------------- -----
but when you are in a program which calls the package will be different pull .
------ For reference only -------------------------------------- -
not need to configure
------ For reference only ------------------------------- --------
understand.

没有评论:

发表评论