facebook

How to set global libraries

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #275455 Reply

    oliosien
    Member

    Hi,
    I have a problem with classpath of my projects.
    I have to download some project from a commons repository and then I
    have to change the classpath because projects need some jars.

    I setted a global variables with the files.jar which projects need but I
    have to change the classpath always.

    Is it possible set global variables which are inserted automatically by Myeclipse Ide
    in each .classpath file?

    Thanks, Enrico.

    #275495

    Riyad Kalla
    Member

    Enrico,
    … this isn’t encouraged but I think you *could* edit the JRE you are using under window > prefs > Java > Installed JREs, and add your library there, that way every project that used that JRE would have the library.

    NOTE: That’s not a great idea and will likely lead to confusion in the future however.

    #275578

    oliosien
    Member

    Thanks for your answer.

    Since this isn’t encouraged I set a variable and I import it in each project.
    This is the TOMCAT variable and I have to set it beacuse I have a compiling
    problem if I don’t do this like this:

    “The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly
    referenced from required .class files”

    I set the TOMCAT global variable to remove this problem and I put libreries ‘servlet.api.jar’
    and ‘jsp-api.jar’ in the java build path in each projects (these jars are in commons\lib
    in the tomcat-home directoy).

    But during startup of tomcat I have this warning:

    14-set-2007 9.07.11 org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\nameApp\WEB-INF\lib\servlet-api.jar) – jar not loaded.
    See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

    because the server libraries are in WEB-INF\lib of each project also.

    Can I remove this warning?

    Thanks a lot, Enrico

    #275685

    Riyad Kalla
    Member

    This message has not been recovered.

    #275968

    oliosien
    Member

    This message has not been recovered.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to set global libraries

You must be logged in to post in the forum log in