Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

'java' is not recognized as an internal or external command

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am new to java coding. I have installed jdk-6u25-windows-i586 in my machine. on executing it i am able to save two folders in my C drive
a)
  • C:\Program Files\Java\jdk1.6.0_25

  • b)
  • C:\Program Files\Java\jre6


  • I have configured a new variable under user variables of Environment variables as Path : C:\Program Files\Java\jdk1.6.0_25\jre\lib;C:\Program Files\Java\jdk1.6.0_25;.;
    Also i have configured some System variables under Environment variables:

    1) CLASSPATH = C:\Program Files\Java\jdk1.6.0_25\jre\lib;C:\Program Files\Java\jdk1.6.0_25;.;
    2) JAVA HOME = C:\Program Files\Java\jdk1.6.0_25\bin
    3) PATH = "C:\Program Files\Java\jdk1.6.0_25\bin;C:\Program Files\Android\android-sdk\platform-tools;C:\Program Files\RSA SecurID Token Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;"

    When i write a small program in notepad with .javaextension and when i try to execute it by giving command javac <filename>.javai am getting warning as ''javac' is not recognized as an internal or external command,operable program or batch file.'

    when i try to execute any command, the same warning is shown with the particular prefix of what ever command i try to execute.

    Please help me out as early as possible.

    Thank you all in advance.
     
    Sheriff
    Posts: 22649
    126
    Eclipse IDE Spring VI Editor Chrome Java Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Remove the quotes in your PATH variable. They are not necessary there, and by wrapping the entire content in one single pair of quotes probably messes up more than it fixes.

    Oh, and your other variables aren't right either. JAVA_HOME should be set to C:\Program Files\Java\jdk1.6.0_25, without the bin folder. The CLASSPATH can be removed as these two folders should definitely not be on it.
     
    cybage cybagec
    Greenhorn
    Posts: 2
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thank you. Now i am able to execute it properly.
     
    This tiny ad is guaranteed to be gluten free.
    Free, earth friendly heat - from the CodeRanch trailboss
    https://www.kickstarter.com/projects/paulwheaton/free-heat
    reply
      Bookmark Topic Watch Topic
    • New Topic