Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with my weblogic 7.0 1

Status
Not open for further replies.

sanna231

Programmer
Jul 7, 2007
1
US
hello
can any one please help me to figure out the problem i am facing with my weblogic 7.0.
i wrote a sample servet and placed the file in class .i have made changes in web.xml files also but when i try to run servlet
java filename.java , it is given me error as below

C:\bea\nidhi\user_projects\nidhidomain\applications\DefaultWebApp\WEB-INF\classes>javac LoginServer.java
error: cannot read: LoginServer.java
1 error

however i have setenv also and when i tried to start weblogic by command startwls it starts running but as told above i can't compile the files .After setting env the classpath that i get is:

C:\bea\nidhi\user_projects\nidhidomain\setenv
CLASSPATH=C:\bea\nidhi\jdk131_03\lib\tools.jar;C:\bea\nidhi\weblogic700\server\l
ib\weblogic_sp.jar;C:\bea\nidhi\weblogic700\server\lib\weblogic.jar;C:\bea\nidhi
\weblogic700\server\lib\webservices.jar;C:\Program
Files\Java\jdk1.6.0_01\bin

PATH=C:\bea\nidhi\weblogic700\server\bin;C:\bea\nidhi\jdk131_03\bin;C:\oracle\or
a92\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program
Files\Oracle\jre\1.1.8bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem\Roxio
Shared\DLLShar
ed\;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program
Files\Java\jdk1.6.0_01\libtools.jar;C:\oracle\ora92\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program F
iles\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe
m\Roxio Shared\DLLShared\;C:\Program
Files\Java\jdk1.6.0_01\bin;C:\Program Files
\Java\jdk1.6.0_01\lib\tools.jar;C:\PROGRA~1\COMMON~1\MUVEET~1\030625

Your environment has been set.
C:\bea\nidhi\user_projects\nidhidomain>

can any one please tell me what i am doing wrong ?

thanks in advance
 
When you use javac, you have to specify the path to the .java file.

javac

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top