Results 1 to 2 of 2
  1. #1
    Geoffrey is offline Member
    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    0

    Question compile ignoring dependency errors

    Hello,

    I have the network monitoringsystem OpenNMS installed and I would like to add some extra code to one single servlet.

    So I have donwloaded the whole source from the SVN-repo, and opened the java source-file of this servlet. I added the code I wanted, but now I can't compile the source file. The problem is that I get more than 50 errors, f.ex.

    Java Code:
    AvailabilityServlet.java:301: cannot find symbol
    symbol  : class ServletContext
    location: class org.opennms.web.availability.AvailabilityServlet
            ServletContext      context  = getServletConfig().getServletContext();
    I would like to compile this single java file ignoring these errors (as I know the new class will work when I replace it with the existing one).

    I tried to import the whole project in Netbeans (which crashes all the time) and Eclipse (which shows me the same errors as the javac compiler).

    I heard that it would be possible to compile source ignoring errors with the eclipse compiler, but I even can't find an option to compile my file using eclipse.

    It's very frustrating... I just want to compile this single java file to a class file, without having to deal with errors.

    Could somebody please help me with this issue? A good java compiler with an option to ignore errors would be wonderful!

    Thanks a lot.

    Kind regards,

    Geoffrey :)

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    You can't just "ignore" the errors. You are going to have properly setup the classpath in order to compile it properly.

Similar Threads

  1. FYI: Ant-Netbean Dependency Issues & The Fix
    By angryboy in forum Advanced Java
    Replies: 0
    Last Post: 06-05-2009, 09:53 PM
  2. Replies: 3
    Last Post: 03-08-2009, 01:51 AM
  3. Help with Compile time errors
    By bri1547 in forum New To Java
    Replies: 2
    Last Post: 08-24-2008, 11:22 PM
  4. Dependency Analyzer 1.0.3-rc0
    By levent in forum Java Software
    Replies: 0
    Last Post: 07-30-2007, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •