Java under Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a problem compiling a Java servlet program under Fedora-20.
I'm not sure if the problem arises from my ignorance -
I haven't used Java for several years, and never with servlets -
or if the issue is the Java setup under Fedora,
or thirdly, if there has been a change in the organisation of Java,
and in particular in the configuration of the CLASSPATH.

In any case, I have been trying to compile the servlet HelloWorld.java
from <http://www.tutorialspoint.com/servlets/servlets-first-example.htm>

When I run "javac HelloWorld.java" I get a number of errors like
  HelloWorld.java:12: error: cannot find symbol
    public class HelloWorld extends HttpServlet {

I see that this class is in /usr/share/java/tomcat-servlet-api.jar
and if I expand this jar file in the current directory
then the compilation succeeds.
But it is not sufficient to copy the jar file to the current directory
(or to put a link to it in /usr/lib/java/ .)

My question is: what should I do to ensure that javac sees this jar file
without expanding it in this way?


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
School of Mathematics, Trinity College, Dublin 2, Ireland


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux