Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Help regarding scwcd java

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written a java code . Before that i even set the class path variable in the my computer environment variables as below
class path = C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;
java_home=C:\JAVA\j2sdk1.4.2
.;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip

counter.java is the name of the java file

i am getting an error cannot read java file when i am trying to compile the java file using the command javac counter.java

error:cannot read : counter.java
1 error

please can anyone provide me the initial setup

 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the full error message, as well as the command you're using to compile.

And please refrain from posting entirely in colored fonts; that's bad for legibility.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

counter.java


In Java, you're supposed to name classes with a capital letter.
 
get schwifty. tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic