Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to access ojspc.jar file

Priyam Srivastava
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am compiling a jsp file using ojspc.bat file in Oracle Application Server.
Since the default path to ojspc.bat is:


So I have set the path for the ojspc.bat file as:
D:\OraHome_2\j2ee\home>set path=D:\OraHome_2\jdk\bin;d:\OraHome_2\j2ee\home\jsp\bin

The jsp file that I need to compile is at location D:\OraHome_2\j2ee\CorpServer\applications\netbanking\Corporate

Hence while compiling I am giving the command:

D:\OraHome_2\j2ee\home>ojspc -appRoot d:\OraHome_2\j2ee\CorpServer\applications\netbanking\Corporate\CorpLogin.jsp

I am getting an error like::

Unable to access ojspc.jar file

So I even set the classpath as::

D:\OraHome_2\j2ee\home>set classpath=d:\OraHome_2\j2ee\home;.;d:\OraHome_2\j2ee\home\ojspc.jar

as the ojscp.jar file can be found in \orahome\j2ee\home (in my case it is orahome_2)

but still I am getting Unable to access jar file \j2ee\home\ojspc.jar

What am I missing here???

(PS: I HAVE to compile JSPs using ojspc)

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic