Results 1 to 2 of 2
- 09-10-2009, 06:11 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 1
- Rep Power
- 0
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.
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).Java Code:AvailabilityServlet.java:301: cannot find symbol symbol : class ServletContext location: class org.opennms.web.availability.AvailabilityServlet ServletContext context = getServletConfig().getServletContext();
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 :)
- 09-10-2009, 06:45 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
FYI: Ant-Netbean Dependency Issues & The Fix
By angryboy in forum Advanced JavaReplies: 0Last Post: 06-05-2009, 09:53 PM -
What is the difference between Semantic Errors and Logical Errors?
By tlau3128 in forum New To JavaReplies: 3Last Post: 03-08-2009, 01:51 AM -
Help with Compile time errors
By bri1547 in forum New To JavaReplies: 2Last Post: 08-24-2008, 11:22 PM -
Dependency Analyzer 1.0.3-rc0
By levent in forum Java SoftwareReplies: 0Last Post: 07-30-2007, 04:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks