2013年12月1日星期日

[ Java-version ] If the JDK is installed correctly

If the JDK is installed correctly, the normal reaction under cmd command what is ?

first install their own JDK, enter the path of his own , for fear of doing something wrong ......

probably did not even do anything on the spot . .

Because Listed below are three Error, I do not know how to do , as follows :

Error: opening registry key 'Software \ JavaSoft \ Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

Then how can I do ?


------ Solution - -------------------------------------------
first point, you can install multiple jdk computer in different directories , but be sure to configure the environment variable you want to use this path , where you installed on the E drive, you should configure the E disk jdk directory path inside.


jdk jre directory there is a directory , jre can be installed separately , flush with jdk directory called public jre, when you install jdk, jdk installed by default in the following directory jre called private jre, you first correction your environment variables , the second question should not exist after the correction .
jre problems are behind the problem, modify your path environment variable references , configure the e tray below , remember to introduce to jdk1.7 directory inside, and then the rest of the problem should it have been resolved. If there are problems , then paste the path to your environment variables and issues an error message came up .
------ Solution ---------------------------------------- ----
F: \ TestCode \ TestEQ> java-version
java version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
------ Solution ------- under -------------------------------------
jdk directory comes jre, as shown below

In the console run java then run java-version, to ensure that the environment variable configuration is successful , no problem

------ Solution ------------------------------------ --------

after you install public jre nothing can be configured to run java-version, when installing jre, copies java.exe / javaw.exe to% SYSTEMROOT% \ System32 directory.

edit environment variables using RapidEE

------ Solution ------- -------------------------------------
if jdk installed correctly, enter javac at the dos the reaction is
input java reaction was

------ Solution ------- -------------------------------------

anthracene my argument indeed defective, through the installation files, install jdk, java.exe will be copied directly to the system directory. edited by rapidEE
But this is where the environment variable to edit it, please express large cattle
------ Solution - ------------------------------------------- when you install java
All defaults are OK . For jdk6, after installation also need to set an environment variable can be accessed in cmd, if it is JDK7, after you installed by default in cmd it can be accessed.

for java development , it is best to set up their own environment variables JAVA_HOME and PATH.
------ Solution ---------------------------------------- ----

rapidee need to download

------ Solution ------- -------------------------------------
 do not see what the problem ah , I feel all right, the next reboot the computer, then try again again.
------ For reference only -------------------------------------- -
added:
I made ​​reference to this post : http://bbs.csdn.net/topics/120079565
changed when the default installation directory , placed under the E drive, this time setting the path I would not understand ,
because I see my C: \ Program Files \ Java jdk1.7.0 folder under there , so I put JAVA_HOME is set here , and not in
next time I had to install JDK E drive that their new folder ( do not know if this right ) , because I used to put in the root directory of the program under the E drive ......

------ For reference As said here only ---------------------------------------
question :
http://stackoverflow.com/questions/8644992/error-registry-key-software-javasoft-java-runtime-environment-currentversion
I was surprised to find that there is not even under my JavaSoft Java Runtime Environment that only such a Java Development Kit folder
------ For reference only ------ ---------------------------------
may have been generated . class
but could not run the java command ......
given as follows:
C: \ Users \ lenovo> java HelloWorld
Error: opening registry key 'Software \ JavaSoft \ Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.


------ For reference I installed only ---------------------------------------
compared with others look, re-install , the default path selection
found under JDK do you say there is no global jre, this seems to be a need for a separate download and install the right ,
This should be the system Java SE Runtime Environment can not find the reason for it?
------ For reference only -------------------------------------- -


ah , but I always have a problem, do not know the jre in the end is how to engage ......
------ For reference only ------------- --------------------------
running jdk, find C: \ program files \ java \ jdk folder under only
contrast to others found to be less a jre folder, and then download jre run ,
tips have been installed , asking whether to re- install option is - > repeat asked whether reinstalled - > again choice is - > Installation failed !
check their registry , does not have Java Runtime Environment, but since I do not know this can not be added by hand , there is no manual changes.
so hard in parallel position jdk jre built a folder , copy the files into the relevant stresses , coupled with the horse after the path of God - > still still being given !
and still does not change the registry

how to do ?


------ For reference only ---------------------------------------


JDK7 is not set up their own path to it?
really is this ? ? ? ! !
My partner and my little children who stunned.
------ For reference only -------------------------------------- -
or step by step to set environment variables to access it, the landlord did not solve the problem it
------ For reference only ----------------- ----------------------
or step by step to set environment variables to access it, the landlord does not solve the problem  

Not yet, no matter how I set the path , I found that there has been no change in the system registry .
reference to another machine so I edited the registry yourself , you can respond to such a command java-version , but found that the system does not recognize javac commands ......

In other words , it does not compile , but you can run from eclipse to ......
still do not know why , javac.exe in JDK in it , how I could not find it
path has been configured to the bin under the ah ? ?


------ For reference only ---------------------------------------
registry 's Java Runtime ; Environment I did this folder is completely manual editing of other machines ,
parallel with JDK folder that jre7 also taken from elsewhere [ past frustration ( online ), and install the software to run on a prompt jre already installed , and can not choose to reinstall , I can only do so 】

But, but ...... Why have not run the javac ......


------ For reference only ---------------------------------------
my little summed up , how think I changed the path of God those horses seemed no change to the registry pinched ?

is not what my computer set up , making the registry can only edit their own ? ? ! ! Good horror .


------ For reference only ---------------------------------------
see my office on the 9th floor of the Reply to see the next jdk jre directory directory there , if there is no need to install , and then configure the environment variables should be on it.
------ For reference only -------------------------------------- -

rapidee need to download   
    

This has now regedit difference? Or what are the advantages and strengths regedit reach it?


------ For reference only ---------------------------------------


indeed , also in the path of the jre bin, I Tieshanglai it:
classpath:;.% JavaHome% \ lib \ tools.jar;% javaHome% \ lib \ dt.jar;

JavaHome: C: \ Program Files \ Java \ jdk1.7.0_45 \
path part of the increase :;% JavaHome% \ bin;% JavaHome% \ jre \ bin;

like that.

jre from the Internet and then I placed parallel position with jdk1.7.0_45 ,
registry Java Runtime Environment to add an entirely his own and edit.



edit content as follows :

1.7 1.7.0_45 and content that is completely the same as
follows


------ For reference only ---------------------------------- -----

restart it , like ......
feeling this thing is really tricky, how can this happen ! ! !

------ For reference only ---------------------------------------

------ For reference only ------ ---------------------------------

  
JDK7 is not set up their own path to it?      
really is this ? ? ? ! !   
My partner and my little children who stunned.  

pro, I mean, do not set the path ? I mean installed JDK7, under cmd can java-version of the . You just make me really shocked.
------ For reference only -------------------------------------- -

    
JDK7 is not set up their own path to it?          
really is this ? ? ? ! !     
My partner and my little children who stunned.          
  
pro, I mean, do not set the path ? I mean installed JDK7, under cmd can java-version of the . You just make me really shocked.  

Although java developer should be to set environment variables, but with the IDE , it did not much matter.
------ For reference only -------------------------------------- -

    
JDK7 is not set up their own path to it?          
really is this ? ? ? ! !     
My partner and my little children who stunned.          
  
pro, I mean, do not set the path ? I mean installed JDK7, under cmd can java-version of the . You just make me really shocked.  

So this is
although not very clear, but the conclusion is that even after I restart the computer can be used.
really do not understand the registry, like the principle of the path , everything is done according to the online tutorials to follow .

没有评论:

发表评论