|
rgrds,
Khushhal
Errors:C:\Servlets\Beer-v1\src>javac com/example/web/BeerSelect.java
com\example\web\BeerSelect.java:17: cannot access com.example.web.BeerExpert
bad class file: .\com\example\web\BeerExpert.java
rgrds,
Khushhal
C:\jakarta-tomcat-5.0.28\webapps\Testing\WEB-INF\src>javac com/example/web/BeerSelect.java
Note: .\com\example\model\BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
C:\jakarta-tomcat-5.0.28\webapps\Testing\WEB-INF\src>
rgrds,
Khushhal
Go to this destination C:\Servlets\Beer-v1\src> in your command prompt.
Now execute the command
javac com/example/web/BeerSelect.java
Or the best way is to create a classes directory inside your src directory and then executing this command from the same destination.
javac -d classes com/example/web/BeerSelect.java
rgrds,
Khushhal
rgrds,
Khushhal
rgrds,
Khushhal
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|