Ant Javac and Commandline Javac give different results

后端 未结 2 1929
深忆病人
深忆病人 2021-01-26 19:37

I have a class that imports some servlet libraries. When I compile it from command-line it is fine.

When I use the ant compile task to compile it, it gives the errors t

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 19:55

    It's a common occurrence if you don't specify the servlet libraries properly in the classpath for the javac task... I suspect that's the problem. If you post the task which fails and the command line which works, we'll be able to help more.

提交回复
热议问题