• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Compilation problem

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
I am having a weird problem .I am using windows NT ,while comiling the java files I am getting the following error

C:\>javac Hello.java
C:\> The name specified is not recognized as an internal or external command, operable programe or batch file
However I am able to run the class files which are allready compiled like
C:\> java Hello
C:\>Hello
Can't understand what is the problem...If any one help
Thanks in advance
Aamir
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is your PATH?
What is your CLASSPATH?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the path statement in the startup files. It should include the path of java directory. You can also give the statement on the dos prompt and then try to compile the program
e.g. path=%PATH%;c:\jdk1.3\bin
Check your drive letter and directory name of java (c:\jdk1.3) . It may vary.
Reply if it worked
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic