• 周六. 7 月 13th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Eclipse Error: "org.apache cannot be resolved" – Java From 5gw.org

King Wang

4 月 9, 2022

xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”en”>
Eclipse Error: "org.apache cannot be resolved" – Java
/**
* Bytes CSS
* Style: ‘bytes.answers’; Style ID: 18
*/
@import url(“/clientscript/vbulletin_css/style-12635a82-00018.css”);

 
 
470,370 Members | 1,610 Online

Eclipse Error: "org.apache cannot be resolved"

61

Hi guys,

I am doing JSP stuff in eclipse and when I open my file, i get a red cross on the line:

Expand|Select|Wrap|Line Numbers
  1. <%@page import="org.apache.xml.serialize.*"%>
  2.  

When i move my mouse over it says:

Multiple annotations found at this line:
– The import org.apache cannot be
resolved
– The import org.apache cannot be
resolved

It seem it cant find the classes needed.

Also if i scroll down my code, eclipse give red underline on all classes coming in from that org.apache.xml.serialise like "OutputFormat" and "XmlSerializer" etc.Its a big code which is why I didn’t paste it but code is fine, its with import statement and eclipse being unable to link with the needed libraries.

I downloaded Xerces, extracted the Jar files and put them in my WEB-INF directory so the classes needed are in /WEB-INF/org/apache/xml/Serialise

That didnt work. Any suggestions anyone? Thanks heaps for looking at it. I attached screenshot of my Eclipse below

Attached Images
File Type: bmp error.bmp (24.9 KB, 744 views)
File Type: bmp error2.bmp (25.5 KB, 457 views)

Sep 12 ’09
#1

1 13567


(adsbygoogle = window.adsbygoogle || []).push({});

r035198x

13,262
8TB

Don’t extract the class files. Just add the jar file to your class path.
You should also not be writing Java code inside JSPs anyway.

Sep 12 ’09
#2


Message
 
Cancel Changes

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics


2 posts

views

Thread by Andreas Poller |
last post: by


1 post

views

Thread by marknewbery |
last post: by


reply

views

Thread by perto1 |
last post: by

By using this site, you agree to our Privacy Policy and Terms of Use.


(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-90111-7’, ‘bytes.com’);
ga(‘send’, ‘pageview’);

loadBytesTracking()

//0){location.replace(‘https://bytes.com/showthread.php?p=’+cpostno);};} }

if(typeof window.orig_onload == “function”) window.orig_onload();
}

//]]>

发表回复