• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

java classpath problem  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac: file not found: src/com/example/web/BeerSelect.java
its showing me this error. I tries. a lot of sites for suggestion but could nit find anything.please help
Screen-Shot-2017-07-03-at-3.40.13-PM.png
[Thumbnail for Screen-Shot-2017-07-03-at-3.40.13-PM.png]
 
Saloon Keeper
Posts: 4837
117
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Describe the layout of all involved dircetories and files, which command you're entering, and which directory you're in when entering that command.
 
Mudra desai
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in Beer-vi directory and I command is:
javac -classpath downloads/apache-tomcat-8.5.15\common\lib\servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java

error:
javac: file not found: src/com/example/web/BeerSelect.java
Usage: javac <options> <source files>
use -help for a list of possible options
Screen-Shot-2017-07-03-at-3.39.55-PM.png
[Thumbnail for Screen-Shot-2017-07-03-at-3.39.55-PM.png]
 
Ranch Hand
Posts: 202
1
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

It seems BeerSelect.java has been misplaced under web-apps\Beer-v1\src\com\..\BeerSelect.java instead Java Resources\src\com\example\web\BeerSelect.java  Place try moving the java file to Java Resources /src. Refer below image.

Kindest Regards
JavaRanch.png
[Thumbnail for JavaRanch.png]
JavaRanch
 
Mudra desai
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!