-
Java JDK problem
I tried to install netbeans is the official website but can not install it because I have not the right JDK. Can someone give me a link to a recent super version because I found nothing that matches. Please give the information of install a virtual machine and how to install the Java Development Kit from Sun. These issues will be addressed in a Windows environment. Thank you in advance.
-
Re: Java JDK problem
The control windows are often called " DOS window ". To start a command window , go to the menu "Start / Programs / Accessories "and click on " Command Prompt "or " MSDOS " next version of Windows that is used . To avoid having to navigate to the working directory java, it is possible to copy the shortcut to any folder . For the working directory of the command window is by default the current directory , you must right click on the shortcut and edit its properties. It must then clear the value contained in the input box " Start in " and confirm by clicking "OK " . Orders "DOS "will not be detailed here to access the description of each of them , then type the command " help " , possibly followed by the name of the command ( except in certain versions of Windows 98 or using n Is not always provided).
-
Re: Java JDK problem
If the message "java is not recognized as internal command " is displayed , it is necessary to choose , each time writing the full path to the java executable to run the command , or an additional variable environment "path "so that the java command is recognized as an internal control . If the first solution is feasible in cases where scripts are used, the second solution is preferable to using the command java daily . To change the variable "path ", refer to paragraph 5 and then resume diligence.
-
Re: Java JDK problem
You must change the file " autoexec.bat "located in the root directory of the hard disk . It must complement the value of the environment variable "Path "by adding the following line at the end of the file : set path = c: \ repertoire_installation_j2sdk \ bin; % path %; The installation directory of the J2SDK , being the directory where the J2SDK was installed . ( ex: jdk1.3.1 ) . The file " autoexec.bat " is comparatively large for the launch of Windows it would be better to make a backup of this file before you edit it and create a reboot disk that would restore the original file in case of trouble . (Create a copy of " autoexec2.bat " file " autoexec.bat " . Where to start, boot to DOS using a boot disk , delete the file " autoexec.bat "and rename " autoexec2 . bat " in " autoexec.bat ") For the changes to take effect , it is necessary to restart the computer . Resume then pre-audits to validate the changes.
-
Re: Java JDK problem
When compiling or running a program using Java , it is necessary to specify the location of libraries used . For this, he must inform the option " classpath " of " java "and " javac ". It is often tedious to input every time this value , partly because of the way that writing is often a source of errors and secondly , because it can be long depending on the number of libraries to import . There is a possibility not systematically inform the field that is to define an environment variable " classpath " which contains the path for all libraries . Thus , if the '- classpath 'is not used , the value used by the J2SDK default is the value of the environment variable " classpath "if it is defined, or alternatively, the current directory.
-
Re: Java JDK problem
You should be noted here that if the environment variable " classpath " is defined, it must include the address of the current directory , ie the symbol " . ". In Sun's specifications , it says that if the "- classpath "is used , its value is to substitute the value of the environment variable " classpath " . However , in practice , this behavior has been established only recently. Indeed , the virtual machine a little older concatenate the string contained in the environment variable " classpath "to the string contained in the "- classpath " parameter passed in the JDK tools . To avoid confusion in this setting , it is strongly recommended, as suggested by Sun , not to define the environment variable " classpath ", contrary to what can be said in the voluminous literature on this subject.
-
Re: Java JDK problem
Java is a very difficult programming language so many create a problem in Java JDK thus this problem are as under .
1) download JAVA Jdk in a websites
2) setup from a terminal
3) set java program in it.
Page generated in 1,751,009,234.06505 seconds with 10 queries