Results 1 to 7 of 7

Thread: Java JDK problem

  1. #1
    Join Date
    Apr 2010
    Posts
    77

    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.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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).

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  6. #6
    Join Date
    Feb 2010
    Posts
    766

    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.

  7. #7
    Join Date
    Jul 2010
    Posts
    4

    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.

Similar Threads

  1. Problem with IE7 after upgrade to Java 1.6
    By matchbox44471 in forum Windows Software
    Replies: 9
    Last Post: 09-06-2010, 12:49 AM
  2. Problem in java.io.IOException
    By GlassFish in forum Software Development
    Replies: 4
    Last Post: 25-02-2010, 03:31 AM
  3. Java Problem
    By suhjonathan in forum Windows Software
    Replies: 5
    Last Post: 12-11-2009, 09:48 AM
  4. Java keylistener problem
    By ANSEL in forum Software Development
    Replies: 3
    Last Post: 26-08-2009, 09:13 PM
  5. Problem With Java
    By Kusagra in forum Software Development
    Replies: 2
    Last Post: 17-03-2009, 11:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,040,224.21710 seconds with 16 queries