The import org.springframework.stereotype cannot be resolved [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
此问题The import org.springframework.stereotype cannot be resolved如何解决
Spring Web Flow 中的一个例子jsf-booking中的ReferenceData.java中的<em>import</em> <em>org</em>.<em>springframework</em>.<em>stereotype</em>.Service;出现错误提示为<em>The</em> <em>import</em> <em>org</em>.<em>springframework</em>.<em>stereotype</em> cannot be <em>resolved</em>,请问如何解决!
The import org.eclipse cannot be resolved
[code=Java]rn<em>import</em> <em>org</em>.eclipse.jface.action.StatusLineManager;rn<em>import</em> <em>org</em>.eclipse.jface.action.ToolBarManager;rn<em>import</em> <em>org</em>.eclipse.jface.window.ApplicationWindow;rn<em>import</em> <em>org</em>.eclipse.swt.SWT;rn<em>import</em> <em>org</em>.eclipse.swt.events.SelectionAdapter;rn<em>import</em> <em>org</em>.eclipse.swt.events.SelectionEvent;rn<em>import</em> <em>org</em>.eclipse.swt.graphics.Point;rn<em>import</em> <em>org</em>.eclipse.swt.widgets.Button;rn<em>import</em> <em>org</em>.eclipse.swt.widgets.Composite;rn[/code]rnrn错误提示:rn<em>The</em> <em>import</em> <em>org</em>.eclipse cannot be <em>resolved</em>rnrn我只是装了jdk和eclipse ide for j2ee developersrn我是不是缺了什么没装好啊,所以会有那个错误?
The import cannot be resolved 问题
rn//rn<em>import</em> java.io.*;rn<em>import</em> javax.bluetooth.*;rn<em>import</em> javax.microedition.io.*;rnrnpublic class ConnHandler extends Thread rn private Server owner = null;rn public ConnHandler (Server owner)rn super();rn this.owner = owner;rn rn//rn//rn<em>import</em> java.awt.*;rn<em>import</em> javax.swing.*;rnrnpublic class Server extends JFrame rn public Server () rn super();rn ......rn ......rn ConnHandler handler = new ConnHandler(this);rn handler.start();rn rn//rnrn 以上两个类ConnHandler, Server之间有关联,所以打算放在同一个工程的同一个包里rnrn 但是,当我建立的工程是普通的Java 工程的时候,ConnHandler中的<em>import</em> 语句就提rn示错误:<em>import</em> javax.bluetooth.*;rn <em>import</em> javax.microedition.io.*;rn 这两句提示<em>The</em> <em>import</em> cannot be <em>resolved</em>rn此时Server中无错误。rnrn 而当我建立的工程是J2ME MIDlet Suite,也就是 J2ME MIDlet 工程时,情况就反过来rn了:Server中的<em>import</em>语句有错:<em>import</em> java.awt.*;rn <em>import</em> javax.swing.*;rn 这两句提示<em>The</em> <em>import</em> cannot be <em>resolved</em>rn此时ConnHandler中无错误。rnrn 不知道该怎么办啊..rn
The import java.util cannot be resolved
刚用MyEclipse6.5+Tomcat6.0做我的课程设计,但刚写2句话就有错误。rn我安的是JDK6.0,在C盘。写一般的java程序没有问题、rn[code=HTML]rnrnrn[/code]rn提示说“<em>The</em> <em>import</em> java.util cannot be <em>resolved</em>”rn我在网上查找说可能是build path中没有设置好。rn[img=http://hi.csdn.net/attachment/201101/3/6202528_1294061531WD8A.jpg][/img]rn[img=http://hi.csdn.net/attachment/201101/3/6202528_1294061527hevV.jpg][/img]
The import javax.bluetooth cannot be resolved
<em>import</em> javax.bluetooth.BluetoothStateException;rn<em>import</em> javax.bluetooth.DiscoveryAgent;rn<em>import</em> javax.bluetooth.LocalDevice;rn<em>import</em> javax.bluetooth.UUID;rnrn都有错误,rnrnUUID,LocalDevice都cannot be <em>resolved</em> to a typernrn我应该加入哪个jar包?rnrn我在网上搜了好长时间,但是都不知道javax.bluetooth.* 下的东西都在哪个jar包中。。。rnrn我该在google 或 baidu 中怎么搜索?
The import net cannot be resolved
rn<em>import</em> java.io.BufferedInputStream;rn<em>import</em> java.io.File;rn<em>import</em> java.io.FileInputStream;rn<em>import</em> java.io.FileNotFoundException;rn[color=#FF6600]<em>import</em> net.mindview.util.Print[/color].*;rnpublic class ReadLineDemo rn static void main(String[] args) rn File file=new File("text.txt");rn tryrn FileInputStream input=new FileInputStream(file);rn catch(FileNotFoundException e)rn rn rn rnrn在reference中已经引入net.mindview.util.Print包rn但是提示包为引入
The import org.javia cannot be resolved
<em>import</em> <em>org</em>.javia.arity.Symbols;rn<em>import</em> <em>org</em>.javia.arity.SyntaxException;rn<em>import</em> <em>org</em>.javia.arity.Util;rnrnrn三个均提示<em>The</em> <em>import</em> <em>org</em>.javia cannot be <em>resolved</em>rnrn请问如何解决?
The import com.jauker cannot be resolved
<em>import</em> com.jauker.widget.BadgeView; rn这一行怎么显示 <em>The</em> <em>import</em> com.jauker cannot be <em>resolved</em>.
The import info cannot be resolved
在工程里面rnrn<em>import</em> info.monitorenter.cpdetector.io.ASCIIDetector;rn<em>import</em> info.monitorenter.cpdetector.io.CodepageDetectorProxy;rn<em>import</em> info.monitorenter.cpdetector.io.JChardetFacade;rn<em>import</em> info.monitorenter.cpdetector.io.ParsingDetector;rn<em>import</em> info.monitorenter.cpdetector.io.UnicodeDetector;rnrn提示:<em>The</em> <em>import</em> info cannot be <em>resolved</em>rn该怎么解决呢?是不是要引入jar文件啊?rn
The import java.util.Arrays cannot be resolved
package com.xx;rn<em>import</em> java.util.Arrays;rnrnpublic class Score2 rn public static void main(String[] args)rn int[] scores = new int[10];rn for(int score: scores)rn System.out.printf("%2d",score);rn rn rn System.out.println();rn System.out.println("--------------------");rn Arrays.fill(scores, 60);rn for(int score: scores)rn System.out.printf("%3d",score);rn rn rn rn rnrnrn
The import org.apache.commons cannot be resolved
我用的是eclipse和tomcat,导入:commons-fileupload-1.1.1.jar,和commons-io-1.2.jar两个包后,还是出现上面的问题即:<em>The</em> <em>import</em> <em>org</em>.apache.commons cannot be <em>resolved</em>,求解!
The import javax.jnlp cannot be resolved
<em>import</em> javax.jnlp.*;rnRT,用的Eclipse不知何解,求解!
The import cn cannot be resolved
今天刚刚换了eclipse,新建工程后, rn把一些类文件拷贝到工程目录下, (.java的)rn调用的时候 就提示 rn<em>The</em> <em>import</em> cn cannot be <em>resolved</em>rnrn在网上查了一下,也没有弄明白,第一次接触 eclipse,大家帮我看看,指点一下 ,谢谢了。
The import org.jdom cannot be resolved
myeclipse刚导入一个项目就出现这样的问题!请教下
import 时 cannot be resolved
[img=http://my.csdn.net/my/album/detail/1156757][/img][img=http://my.csdn.net/my/album/detail/1156756][/img]
resolved">一直显示import """cannot be resolved
报错:n<em>org</em>.<em>springframework</em>.beans.factory.BeanCreationException: nError creating bean with name 'fabricService' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-servicne.xml]: Instantiation of bean failed; nested exception is <em>org</em>.<em>springframework</em>.beans.BeanInstantiationException: Could not instantiate bean class [textile.ssm.service.impl.FabricServiceImpl]: Constructor threw exception; nested exception is java.lang.Error: Un<em>resolved</em> compilation problems: n <em>The</em> <em>import</em> com.ruanjian cannot be <em>resolved</em>n name cannot be <em>resolved</em> to a variable。n我<em>import</em> 全部都删除了为什么还会跳出这个错误?
org.aspectj" cannot resolved">spring 显示the import "org.aspectj" cannot resolved
spring tool suite新建菜单中有Aspectj projectn但是<em>import</em> <em>org</em>.aspectj.lang.annotation.*;会显示the <em>import</em> <em>org</em>.aspectj cannot <em>resolved</em>**
struts1中的错误:The import org.apache.struts cannot be resolved
我使用struts1和hibernate做一个小的测试,在myeclipse中增加了struts1.2和hibernate的特性rn可是,添加好特性之后,在我继承的action类中,会<em>import</em> <em>org</em>.apache.struts.action.ActionForward;rn系统在这一句上提示错误:rnrn<em>The</em> <em>import</em> <em>org</em>.apache.struts cannot be <em>resolved</em>rnrn我看了我的bulid path中包含的jar,其中指定了strust的jar,我到他指定的目录下面看了一下,那些jar包的确都在,可系统就是提示找不到那些jar,这是为何?rn请高手指教
the import java.sql cannot be resolved怎么解决
代码如下rnrnrn //此处红XX提示the <em>import</em> java.sql cannot be <em>resolved</em> rnrnrnrnrnrnrnrnrnrnrn rn 社团首页rn rn rnrnrnrnrnrn rn rn rn rn 公告栏rn 社团最近活动rn 赞助商rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn >rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 用户名:rn rnrn 密 码: rn rn rn rn rn rn rnrn rn rn rn rn 友情链接rn 社团简介rn 优秀会员rn rn rn rn 友情链接rn 友情链接rn 友情链接rn 友情链接rn rn rn 笛箫口琴协会直属与社团联合会,以丰富大学生课余rn 文化生活而成立的社团机构, 该协会成立于2002年,经过三年的发展,会员rn 现以达到450多人,成为我校具有极强实力及生命力的协会之一。协会现设有rn 组织部、宣传部、外联部、会员部、笛箫部及口琴部,各部协调发展为协会的rn 进一步发展起了很好的作用。 rn  协会宗旨:笛箫口琴协会以培训会员的笛、箫、口琴rn 的基本演奏技能为主, 并开展多种文艺活动。在社团联合会及其他社团的帮助与rn 合作中,协会常联合其他社团一起组织大型的文艺活动,在学生中引起了很大的rn 反响。 rn rn rnrnrn rn rn rnrnrn
The import javax.media cannot be resolved 请问如何解决?
我已经下载安装了JMFrn用户环境变量CLASSPATH如下rn.;.;d:\PROGRA~1\java\JMF21~1.1E\lib\sound.jar;d:\PROGRA~1\java\JMF21~1.1E\lib\jmf.jar;d:\PROGRA~1\java\JMF21~1.1E\lib;rnrn系统环境变量PATH如下rn%SystemRoot%\system32;d:\PROGRA~1\java\JMF21~1.1E\bin;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecsrnrn但是我在Eclipse 里面使用<em>import</em> javax.media.*;仍然被划了红色下划波浪线rn<em>The</em> <em>import</em> javax.media cannot be <em>resolved</em>rnrn我按照网络上找到的JMF安装方法以及环境变量检查都通过了,也重启机器了rn怎么还是这样啊,求救!!!
the import javax.servlet cannot be resolved是什么问题啊。
我刚接触JAVA,rn很多都不懂,望指点。
导入工程的“The import android cannot be resolved”错误解决方法
导入工程的“<em>The</em> <em>import</em> android cannot be <em>resolved</em>”错误解决方法
求助解决办法,eclipse报错“The import org.apache.commons.math cannot be resolved
在eclipse中发布项目时,eclipse报错显示“<em>The</em> <em>import</em> <em>org</em>.apache.commons.math cannot be <em>resolved</em>”,通过添加Commons.jar包,编译后问题依然存在。现在很疑惑,不知道怎么去解决了,想向前辈们咨询一下。
eclipse 配合 weblogic The import cannot be resolved 的问题
请问各位大侠,我使用eclipse 和 weblogic 开发jsp,自建pb类后eclipse 放在src下,使用 或者rn在编写是没有报错,但是运行时出现<em>The</em> <em>import</em> pb cannot be <em>resolved</em> 和 pb cannot be <em>resolved</em> to a type的错误,若是不导入类则没有问题,请问应该在哪里如何配置?谢谢rn
在线等 The import javax.microedition.pim cannot be resolved
见标题:<em>The</em> <em>import</em> javax.microedition.pim cannot be <em>resolved</em>rn rn 哪里有 javax.microedition.pim可选包下载?rnrn 在线等 解决问题立马结账!不够再加啊!
The import org.codehaus.xfire.security cannot be resolved如何解决
<em>The</em> <em>import</em> <em>org</em>.codehaus.xfire.security cannot be <em>resolved</em>如何解决
导入maven项目出现 The import com.sun.jna cannot be resolved
用项目clean后还是没有解决包括maven updatern有没有大神碰到过这种情况?求解
The import org.springframework.orm cannot be resolved?这是怎么回事??
程序里老出现:<em>The</em> <em>import</em> <em>org</em>.<em>springframework</em>.orm cannot be <em>resolved</em>rn然后这里都有错误:rnpublic class AaaaDAO extends HibernateDaoSupport =============这里的HibernateDaoSupportrn private static final Log log = LogFactory.getLog(AaaaDAO.class);rnrn // property constantsrnrn protected void initDao() rn // do nothingrn rnrn public void save(Aaaa transientInstance) rn log.debug("saving Aaaa instance");rn try rn getHibernateTemplate().save(transientInstance); =======这里getHibernateTemplatern log.debug("save successful");rn catch (RuntimeException re) rn log.error("save failed", re);rn throw re;rn rn rnrn我用的是hibernate3.jar这个包,错误的意思好像是<em>org</em>.<em>springframework</em>.orm 识别不了,怎么解决???rn
错误:The import android provider.ContactsContract cannot be resolved
<em>The</em> <em>import</em> android provider.ContactsContract cannot be <em>resolved</em>rnrn请问这个错误是怎么回事?rn我按《Android应用开发揭秘》一书学习,例3.2的源码出现这个错误,是什么原因?请高手指点~~
import 映射文件的时候提示 cannot be resolved
我用的myeclipse + struts + hibernate,我已经生成了映射文件了代码如下:rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rnrn但是我在类中一使用 <em>import</em> com.xiebing.hibernate.Vipdata; 就提示<em>The</em> <em>import</em> com.xiebing.hibernate.Vipdata cannot be <em>resolved</em> 请各位指教,这个问题缠了我好几天,我刚学,身边没人可以问。
cannot be resolved
[img=http://my.csdn.net/my/album/detail/1156757][/img][img=http://my.csdn.net/my/album/detail/1156756][/img]
the import com.borland.dx.can not be resolved
the <em>import</em> com.borland.dx.can not be <em>resolved</em>rn需要那个包啊
the import can not be resolved
rn[u][/u]rn[u][/u]rn rn高手帮看下,我是个初学者本来是照着书写这段代码连数据库的,结果调用BEAN出问题了,我是把BEAN生成了class文件放到了项目WEB-INF,CLASS目录下的asset/test,然后就提示这个错误````rn帮小弟弟看看,小弟在此感激不禁啊```
XmlPullParser cannot be resolved
XmlPullParser cannot be <em>resolved</em> 这样一个错误提示。。要怎么样在J2ME中<em>import</em>XmlPullParser呢。。急!!rn谢谢
InputStream cannot be resolved
  最近在做一个Struts2+spring+hibernate的文件上传,单元测试没有问题,不过,这个存入数据库的Blob对象是通过new关键字创造一个文件对象,然后创建一个输入流fin,再用Hiberante.createBlob(fin)生成的.但是,我想从JSP页面的文件域里面取得一个文件对象,然后再创建Blob,部分代码如下:rnrnpublic Integer uploadImage(Integer userId,List title,List photos) throws BlogException rn List files = photos ;//从页面上来的文件对象列表rn int length = files.size();rn List titles = title;//文件标题列表rn Integer pId = null;rn for(int i = 0 ; i < length ; i++)rn try rn                  /**从列表中取出一个文件对象,用来创建一个输入流(就在这个地方出现了"                      InputStream cannot be <em>resolved</em>"问题,这是断点调试时的结果)最后在rn                  JSP异常页面打印出的异常信息是:"java.lang.ClassCastException:                        java.lang.String "**/rnrn InputStream fin = new FileInputStream(files.get(i));rn Blob photoContext = Hibernate.createBlob(fin);rn rn Photo photo = new Photo();rn User user = userDao.get(userId);rn photo.setUser(user);rn photo.setTitle(titles.get(i));rn photo.setPhotocontext(photoContext);rn rn photoDao.save(photo);rn pId = photo.getPhotoId();rn catch (FileNotFoundException e) rn e.printStackTrace();rn throw new BlogException("上传文件没有找到,请检查操作是否合法!");rn catch (IOException e) rn e.printStackTrace();rn throw new BlogException("IO操作异常!");rn rn rn return pId;rn rn  敬请各位前辈指教!小弟不胜感激!!rn
R.array cannot be resolved
rn我在layout下新建了.xml文件,内容如下rnrnrnrn 1rn 2rn 3rnrnrnrn在主程序中添加了rnspl=(Spinner)findViewById(R.id.spl);rnArrayAdapter Ad=ArrayAdapter.createFromResource(this,R.array.num,android.R.layout.simple_spinner_item);rnAd.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);rnspl.setAdapter(Ad);rnrn但是其中R.array cannot be <em>resolved</em>,求解!!!
Android开发 eclipse ...cannot be resolved
Android 新人 rn[code=java]package com.example.ex03_01;rnrn<em>import</em> android.app.Activity;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.view.View;rn<em>import</em> android.view.View.OnClickListener;rn<em>import</em> android.widget.TextView;rn<em>import</em> android.widget.EditText;rn<em>import</em> android.widget.Button;rnrnpublic class MainActivity extends Activity rnprivate TextView txt;rnprivate EditText edit;rnprivate Button myButton;rn@Overridernprotected void onCreate(Bundle savedInstanceState) rnsuper.onCreate(savedInstanceState);rnsetContentView(R.layout.activity_main);rntxt= (TextView)findViewById(R.id.textView1);rnedit= (EditText)findViewById(R.id.editText1);rnmyButton= (Button)findViewById(R.id.button1);rnmyButton.setOnClickListener(new mClick());rnrnrnclass mClick implements OnClickListenerrnpublic void onClick(View v)rnString inputStr;rninputStr=edit.getText().toString();rntxt.setTxt(inputStr);rnrn[/code]rn报错: edit cannot be <em>resolved</em> ; txt cannot be <em>resolved</em>; rnwarning: <em>The</em> value of the field MainActivity.edit (txt) is not used.rnres中并没有相关报错。。网上没找着对应的原因和解决方法 应该不是版本问题rn![图片说明](https://img-ask.csdn.net/upload/201711/03/1509682753_765852.png)
JSONArray cannot be resolved
怎样解决?rnJSONArray.fromObject(listTree).toString();这一句有错误JSONArray cannot be <em>resolved</em>rnlistTree 是一个ArrayList
sql cannot be resolved!郁闷
rn rn查询书籍信息 rn rn rn rn rn rn 请选择查询条件: rn rn ID rn name rn auther rn publisher rn time rn all rn rn 关键字 rn rn rn rn jsp的查询如下:rn rn rnrn rn rnrn rn rnrn 错误信息:rnAn error occurred at line: 5 in the jsp file: /result.jsprnGenerated servlet error:rnsql cannot be <em>resolved</em>rnrn感觉程序写的冗余代码比较多,希望大侠指点修正阿,拜谢!
out cannot be resolved 怎么回事?
=0;i--)rn rn out.print(""+i+"");rn rn return 0;rn rn%>rnrnGenerated servlet error:rnout cannot be <em>resolved</em>rn怎么回事?
servlet cannot be resolved
请问在普通java类中能这样用吗rnServletContext context=servlet.getServletContext();rn提示错误如标题rn
FileUpload cannot be resolved
----------------这是ImageUploadHandler.jsp-------------------rnrnrnrnrn rn 显示上传图片rnrnrnrn上传的图片: rnrnrnrn------------------这是mytest包里面的FileUpload类--------------------rnpackage mytest; rnrn<em>import</em> java.awt.image.BufferedImage; rnrn<em>import</em> java.io.*; rnrn<em>import</em> java.awt.Image; rnrn<em>import</em> com.sun.image.codec.jpeg.JPEGCodec; rnrn<em>import</em> com.sun.image.codec.jpeg.JPEGImageEncoder; rnrnrnpublic class FileUpload rnrn rnrnpublic static void uploadImage(String imgFolderPath,String srcFileName,String dstFileName) throws IOException rnrn rnrn//判断文件夹image是否存在,若不存在则创建 rnrnFile folder = new File(imgFolderPath); rnrnSystem.out.println("function 'uploadFileTest2'-imgFolderPath'"+imgFolderPath); rnrnif(!folder.exists()) rnrn rnrnfolder.mkdir(); rnrnSystem.out.println("maked a folder!"); rnrn rnrnrnFile _file = new File(srcFileName); //读入文件 rnrnImage src = javax.imageio.ImageIO.read(_file); //构造Image对象 rnrnint wideth=src.getWidth(null); //得到源图宽 rnrnint height=src.getHeight(null); //得到源图长 rnrnBufferedImage tag = new BufferedImage(wideth,height,BufferedImage.TYPE_INT_RGB); rnrntag.getGraphics().drawImage(src,0,0,wideth,height,null); rnrnFileOutputStream out=new FileOutputStream(dstFileName); //输出到文件流 rnrnJPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); rnrnencoder.encode(tag); //JPEG编码 rnrnout.close(); rnrnSystem.out.println("function 'uploadFileTest2'-status:A Image File Saved!"); rnrn rnrn rnrnrn----------------------------------------rn运行之后为什么出现如下错误呢?rnrntype Exception reportrnrnmessage rnrndescription <em>The</em> server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrn<em>org</em>.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 25 in the jsp file: /ImageUploadHandler.jsprnFileUpload cannot be <em>resolved</em>rn22: rn23: String destFilePathAndName = filePath+"\\image\\"+fileName;//要保存文件的路径 rn24: rn25: FileUpload.uploadImage(filePath+"\\image\\",photo,destFilePathAndName);//上传图片到目的路径 rn26: rn27: String relativeFilePath = ".\\image\\"+fileName;//用来显示图片的相对路径 rn28: rnrnrnrnrnrnrn
System.out cannot be resolved???
System.out cannot be <em>resolved</em> 是什么原因啊?rn源程序代码如下rnrnpublic class t rn public static void main(String[] args)rn String s1="winter";rn String s2=s1;rn String s3="winter";rn System.out.println(s1.equals(s2));rn System.out.println(s1.equals(s3));rn rnrnrn然后加入<em>import</em> java.util.*rn<em>import</em> java.util.*;rnpublic class t rn public static void main(String[] args)rn String s1="winter";rn String s2=s1;rn String s3="winter";rn System.out.println(s1.equals(s2));rn System.out.println(s1.equals(s3));rn rnrn问题还是没有解决。rn请教各位高手,谢谢
VK_ENTER cannot be resolved
<em>import</em> java.awt.event.KeyEvent;rnrn看KeyEvent的里面有VK_ENTER的定义啊,奇怪!
mDb cannot be resolved
mDb cannot be <em>resolved</em>rn请问如何解决?
* cannot be resolved to a type
部署好项目到Tomcat下后,用默认的http://localhost:8080/project访问没任何问题,但是在server.xml中配置用IP访问时,却出现如题的错误,JSP文件头部也导了相应的类,上网查了查,都不得其法,哪位能告诉我能解决这个问题(不要到网上copy,都是蒙人的),谢谢了!还有,我的功能模块JSP文件分别放在WebRoot目录下的不同文件夹中,而不是全部直接放在WebRoot下。
net.sf.json.JSONObject cannot be resolved
在项目中写了个方法并可能在main中运行也没有错rn但是项目启动时出现了rnInternal Server Error (500) for request GET /rnrnCompilation error (In /app/com/buybal/client/test/JunitClientTest.java around lirnne 16)rn<em>The</em> file /app/com/buybal/client/test/JunitClientTest.java could not be compiled.rn Error raised is : net.sf.json.JSONObject cannot be <em>resolved</em>rnrn项目是用play运行的 请问一下是什么原因 rn
js var cannot be resolved
在jsp中,在select onchange事件中,获得选择的内容rn[code=JScript]rnvar op = opSet.options[opSet.selectedIndex].text;rn[/code]rn然后在下面想用这个op作为条件去查询数据库rn[code=Java]rnop = op.toString();rnResultSet rs = stmt.executeQuery("SELECT * FROM A WHERE TB = '"+op+"'");rn[/code]rnrn提示op cannot be <em>resolved</em> 错误rn
The type org.bson.conversions.Bson cannot be resolved
在使用mongodb时,rn进行 DBObject blog = new BasicDBObject();rn blog.put("id", data.getId());rn报了错误:<em>The</em> type <em>org</em>.bson.conversions.Bson cannot be <em>resolved</em>. It is indirectly referenced from required .class filesrn rn但是没找到 <em>org</em>.bson.conversions这个jar包,那是什么问题??rn rn大神可以解释下吗????
estableRuntimeException cannot be resolved 解决
<em>org</em>.apache.commons.lang.exception.NestableRuntimeException cannot be <em>resolved</em> 解决 替换JAR包即可
ServletUtilities cannot resolved
<em>import</em> java.util.*; rnpublic class ThreeParams extends HttpServlet public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException response.setContentType("text/html"); rnPrintWriter out = response.getWriter(); rnString title = "读取三个请求参数"; rnout.println(ServletUtilities.headWithTitle(title)+""+"" + " "rn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这个地方有错误 rn + title + "" + " " rn +" param1: " + request.getParameter("param1")+ " param2: " + request.getParameter("param2") + rn " param3: " + request.getParameter("param3") + "" + " "+""rn )rn ;
ActionContext cannot be resolved什么意思
我打ActionContext.getContext().getSession().put("username",getUsername());报错“ActionContext cannot be <em>resolved</em>”,我应该怎么解决
cannot be resolved to a type
老兄; 我在显示页面(.jsp)添加这句话时会出现这样的提示:[color=#FF9900]CustomerBean cannot be <em>resolved</em> to a type[/color]rn我很急的,谢谢!rnrn[color=#0000FF]我是从servlet跳到到这个页面的以下是servlet的代码;[/color]rnpublic class BankServlet extends HttpServlet rnrn /**rn * <em>The</em> doGet method of the servlet. rn *rn * This method is called when a form has its tag value method equals to get.rn * rn * @param request the request send by the client to the serverrn * @param response the response send by the server to the clientrn * @throws ServletException if an error occurredrn * @throws IOException if an error occurredrn */rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn HttpSession session=request.getSession();rn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn String userID=request.getParameter("id");rn BankModel bankmodel=new BankModel();rn List customerlist=null;rn CustomerBean currentCustomer=new CustomerBean();//当前的用户rn double balance=0;//当前用户的余额rn customerlist= bankmodel.getCustomers();rn String id;rn if(userID!=null)rn for(int i=0;i0&&balance);rn rn rn rn rnrnrnrnrn
org.eclipse.jface.text cannot be resolved
刚用 eclipse IDE 没多久经常遇见这样那样的问题rn请问为什么我的 eclipse 无法找到<em>org</em>.eclipse.jface.text 这个包
编译时函数cannot be resolved
函数功能:rn定义一个日期类,有年,月,日属性,包含无参的和有参的构造方法,有完成如下功能的方法:1)、判断该年是否为闰年,2)、判断当月的天数,3)、计算该日期是本年的第多少天,4),计算本年还剩多少天,在main方法中,输入年,月,日,根据输入创建该类的对象,并调用它的相关方法。rnrn类体:rnpublic class Date rn private int year,month,day;rn public int[]a = 0,31,28,31,30,31,30,31,31,30,31,30,31;rn public int[]b = 0,31,29,31,30,31,30,31,31,30,31,30,31;rn public Date()rn rn rn public void setYear(int year)rn this.year = year;rn rn public int getYear(int year)rn return year;rn rn public void setMonth(int month)rn this.month = month;rn rn public int getmonth(int month)rn return month;rn rn public void setDay(int day)rn this.day = day;rn rn public int getDay(int day)rn return day;rn rn public Date(int year,int month,int day)rn rn rn public char isLeapYear(int year)rn if(year%400==0||year%4==0&&year%100!=0)rn return '是';rn else rn return '否';rn rn rn public int daysThisMonth(char isLeapYear,int month)rn if (isLeapYear=='是')rn return a[month];rn elsern return b[month];rn rn rn public int daysThisYear(char isLeapYear,int month,int day)rn int sum = 0;rn if(isLeapYear=='是')rn for(int i=0;i
bl cannot be resolved
rnrnrn rnrnrn.......myeclipse中配置tomcat服务器,运行时提示“bl cannot be <em>resolved</em>”。怎么回事呢?????????
org.eclipse.core.expressions.Expression cannot be resolved 错误
rnrn<em>The</em> type <em>org</em>.eclipse.core.expressions.Expression cannot be <em>resolved</em>. rnIt is indirectly referenced from required .class filesrnrn在移植eclipse的代码的时候,发现错误,内容如上!rn请哪位达人帮忙啊!怎么解决这个错误啊!
Logger cannot be resolved to a type LoggerFactory cannot be resolved Logger ca
程序运行报错rnLogger cannot be <em>resolved</em> to a typern LoggerFactory cannot be <em>resolved</em>rn Logger cannot be <em>resolved</em> to a typernrn代码:private static final [color=#FF0000]Logger[/color] LOGGER =[color=#FF0000] LoggerFactory[/color].getLogger(xxxxx.class);rnLogger处和LoggerFactory处报错rnrn
为什么会报这错?? The import java.math cannot be resolved
<em>The</em> <em>import</em> java.math cannot be <em>resolved</em>rn<em>The</em> <em>import</em> java.sql cannot be <em>resolved</em>rn<em>The</em> <em>import</em> java.util cannot be <em>resolved</em>rnrn为什么会这样??
Eclipse+Lomboz+Tomcat, 为什么出现 The import javax.ejb cannot be resolved 这样的错
我是按Lomboz网站上的tutorial来做一个EJB的工程,为什么会报这样的错呢?有没有人碰到这样的情况? 是配置上有什么问题吗?rn请高手指点.谢谢 :)
导入项目,出现如图所示错误The import org.jvnet cannot be resolved
请问这是什么包?[img=https://img-bbs.csdn.net/upload/201406/08/1402201635_368091.jpg][/img]
The import xxx cannot be resolved 怎么解决 求指导
这是别人的程序,我想运行一下,结果前几行都是<em>The</em> <em>import</em> xxx cannot be <em>resolved</em>,尝试导入了apache-log4j-1.2.16的jar包第二行还是显示错误,跟没导入前一样,我是超级新手,求指导一下!rnrnrnrnrnrn
第一个EJB工程无法运行(The import javax.ejb.Remote cannot be resolved
自学EJB,第一次动手实现,下载了JBOSS并集成在了myeclipse中,以能正常发布。rn创建了一个J2EE1.3-EJB2.0的EJB工程,又让myeclipse自动创建了一个ejb3 session bean,勾选了remote选项,完成后自动生成了2个文件:HellowWorldSession,HellowWorldSessionRemote。但两个文件都带了把叉:rn<em>import</em> javax.ejb.Statelessrn<em>import</em> javax.ejb.Remotern网上差了些资料都没能成功解决。。只能怒求大虾帮忙了!!
eclipse初学者:import javax.mail.MessagingException出现cannot be resolved,请问何解
同题
导入一个项目后出现The import java.io cannot be resolved错误
导入一个新项目后出现 <em>The</em> <em>import</em> java.io cannot be <em>resolved</em> rn String cannot be <em>resolved</em> to a typern 还有甚多类似的 错误 这个怎么解决啊,哪位高手指点下,新手上路,等待你们破解谜题
the import org.hibernate can't be resolved
[size=18px]rn使用myeclipse建立工程,出现<em>import</em> <em>org</em>.hibernate.HibernateException;[/size]
跪求 TagUtils cannot be resolved问题
我的jsp页面是这样的rnrnrnrnrnrnrnrnrnrnrnrnrnrnrn rnrnrn rn 証明書申請書-入力画面rnrnrnrnrnrnrn编译的时候老是报TagUtils cannot be <em>resolved</em>错误,但我明明<em>import</em>了<em>org</em>.apache.struts.taglib.*呀。TagUtils在<em>org</em>.apache.struts.taglib包下rn环境是eclipse3.2 struts1-3-9,tomcat6.0 tomcatplugin3.2beta3
OAuthConsumer cannot be resolved to a type
Eclipse中OAuth认证相关的类找不到,要怎么解决?
com.mysql.jdbc.Driver cannot be resolved to a variable
[img=https://img-bbs.csdn.net/upload/201702/10/1486702669_856611.png][/img]package com.per.util;rn[code=java]<em>import</em> java.sql.DriverManager;rn<em>import</em> com.mysql.jdbc.JDBC4CallableStatement;rn<em>import</em> com.sun.jndi.ldap.Connection;rnrnpublic class DB_Util rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrnrn rn public java.sql.Connection getconnection()rn try rn Class.forName(com.mysql.jdbc.Driver);rn return DriverManager.getConnection("jdbc://mysql://localhost:3306/jdbc_db", "root", "123456");rn catch (Exception e) rn e.printStackTrace();rn rn return null;rn rn][/code]rn如下图rn[img=https://img-bbs.csdn.net/upload/201702/10/1486702980_636568.png][/img]rn不懂为什么报错 rn
XMLHttpRequest cannot be resolved to a type
function createXMLHttpRequest() rn rnif(window.ActiveXObject) rn rntry rn rnreturn new [b]ActiveXObject("MSxml2.XMLHTTP"); [/b]catch(e) rn rnreturn new ActiveXObject("Microsoft.XMLHTTP"); rn rn rnelse if(window.XMLHttpRequest) rn rnreturn new[b] XMLHttpRequest[/b](); rn rn rnrnActiveXObject 和 XMLHttpRequest 不能解析 为什么?
JavaBean cannot be resolved to a type
源文件为:rnrnrnrnrnrnrnrn ni cai dui le ni cai lecirn rn paly againrn rn huan ying jin ru cai zi you xi!rn wo xiang dao yi ge 1-100 zhijian de shu.rn rn ni cai shi na ge?rn rn rn rn rn cai de bu duirn ni yi jing cai lecirn rn rn rn rn报错为:rnAn error occurred at line: 2 in the jsp file: /numberGuess.jsprnGenerated servlet error:rnNumberGuessBean cannot be <em>resolved</em> to a typernrnrnjava文件路径为:rnE:\java\eclipse\eclipse\eclipse\workspace\test1\WEB-INF\srcrnclass文件路径为:rnE:\java\eclipse\eclipse\eclipse\workspace\test1\WEB-INF\classesrnrn帮忙看看是怎么回事!在先等待。。。。。。。。。。。。。。。。。rn
JSONObject cannot be resolved to a type
public String addUser(String json) rn rn JSONObject jsonObj = JSONObject.fromObject(json);rn JSONObject outJson = new JSONObject();rn Users user = (Users) JSONObject.toBean(jsonObj, Users.class);rn try rn connection = dataSource.getConnection();rn if (connection != null) rn connection.setAutoCommit(false);rn String sql = "insert into users (id, name, email, qq,phone) values (?,?,?,?,?)";rn pst = connection.prepareStatement(sql);rn pst.setString(1, YyID.getUUID32());rn pst.setString(2, user.getName());rn pst.setString(3, user.getEmail());rn pst.setString(4, user.getQq());rn pst.setString(5, user.getPhone());rn int count = pst.executeUpdate();rn connection.commit();rn connection.setAutoCommit(true);rn if (count == 1) rn outJson.put("retCode", "0100");rn outJson.put("retMsg", "add employee successfully.");rn else rn outJson.put("retCode", "0001");rn outJson.put("retMsg", "add employee failed.");rn rn rn catch (SQLException e) rn try rn if (connection != null)rn connection.rollback();rn connection.setAutoCommit(true);rn catch (SQLException e1) rn e1.printStackTrace();rn rn outJson.put("retCode", "0003");rn outJson.put("retMsg", "mysql execute error.");rn e.printStackTrace();rn finally rn try rn if (pst != null)rn pst.close();rn if (connection != null)rn connection.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rn return outJson.toString();rn
ActiveXObject cannot be resolved to a type
eclipse3.4在jsp页面中[code=JScript]var xmlHttp;rn function createXMLHttpRequest()rn if(window.ActiveXObject)rn xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");rn else if(window.XMLHttpRequest)rn xmlHttp = new XMLHttpRequest();rn rn [/code]总会有ActiveXObject cannot be <em>resolved</em> to a type,怎么回事
id cannot be resolved or is not a field
Activity.java代码:rn[code=Java]rn<em>import</em> android.app.Activity;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.os.Handler;rn<em>import</em> android.webkit.WebView;rn<em>import</em> android.webkit.WebSettings;rnrnpublic class test extends Activityrn private WebView mWebView;rn private Handler mHandler = new Handler();rn rn /** Called when the activity is first created. */rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn mWebView = (WebView) findViewById(R.id.webview);rn WebSettings webSettings = mWebView.getSettings();rn webSettings.setJavaScriptEnabled(true);rn mWebView.addJavascriptInterface(new Object()rn public void screenSize() rn mHandler.post(new Runnable()rn public void run()rn mWebView.loadUrl("javascript:test()");rn rn );rn rn , "demo");rn rn super.setIntegerProperty("splashscreen", R.drawable.ic_launcher);rn super.setIntegerProperty("splashscreen", R.drawable.bg);rn super.loadUrl("file:///android_asset/www/index.html",4000);rn rnrn[/code]rnrn求助这个提示要怎么解决呢?
UnsupportedEncodingException cannot be resolved to a type
An error occurred at line: 31 in the jsp file: /JSP/RegisterSuccess.jsprnUnsupportedEncodingException cannot be <em>resolved</em> to a typern28: byte b[]=s.getBytes("ISO-8859-1");rn29: return (new String(b,"utf-8"));rn30: rn31: catch(UnsupportedEncodingException ee )rn32: rn33: return "缂栫爜杞崲閿欒:"+ee.getMessage();rn34: rnrnrn不清楚这个怎么改,各位帮帮忙吧。谢啦。rn
数据库连接池问题conn cannot be resolved
server.xml 配置:rnrn...rnrnrnrnrn---------------------------------------------------------------------------rnwebapps\test\WEB-INF\web.xml 配置:rnrn...rn rn Tomcat Datasourcern jdbc/conMysqlrn javax.sql.DataSourcern Containerrn rnrn------------------------------------------------------------------------------rnjsp 代码:rnrn rnrnrnrnrn JSP连接MYSQL数据池rnrnrnrn rn rn rnrn rnrnrn
layout cannot be resolved or is not a field
代码如下:rnpackage zyf.Ex10_UI;rnrn<em>import</em> java.text.DecimalFormat;rn<em>import</em> java.text.NumberFormat;rnrn//<em>import</em> com.example.xiao.R;rnrn//<em>import</em> android.R;rn<em>import</em> android.app.Activity;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.widget.TextView;rnpublic class BMIActivity extends Activity rn private static final String R = null;rn private Bundle savedInstanceState;rn //@Overridern public void OnCreate(Bundle saveInstanceState)rn super.onCreate(savedInstanceState);rn setContentView(R.layout.myLayout);rn Bundle bunde=this.getIntent().getExtras();rn String sex=bunde.getString("sex");rn Double height = bunde.getDouble("height");rn String sexText="";rn if (sex.equals("M"))rn sexText="男性";rn rn elsern rn sexText="女性";rn rn rn String weight=this.getWeight(sex,height);rn TextView tv1=(TextView) findViewById(R.id.text1);rn tv1.setText(""+sexText+"/n你的身高是"+height+"厘米\n你的标准体重是"+weight+"公斤");rn rn rnrnrn private String format (double num)rn NumberFormat formatter= new DecimalFormat("0.00");rn String s = formatter.format(num);rn return s;rn rn rn private String getWeight(String sex , double height)rn String weight="";rn if (sex.equals("M"))rn weight= format((height - 80)*0.7);rn elsern weight= format((height - 70)*0.6);rn rn return weight;rn rn rnrnrnlayout cannot be <em>resolved</em> or is not a fieldrnrn
KeyEvent.VK_ENTER cannot be resolved or is not a field
谁帮我看一眼 为什么报这个错误 怎么解决啊
“class” cannot be resolved to a type
jsp页面 编译报如标题错误 jsp文件全部在tomcat的root目录下 “class”也在相同目录下的一个.Java的文件中定义 jsp页面中也 通过引用 不知为何 大侠帮忙 感激涕零!页面代码如下:rnrnrnrnrnrn rnrnrnrnrnrn rn rn Randata:rn rn ClientDigest:rn rn rn UserKey:rn rn ServerDigest:rn rnrnrnrnrn
TextView cannot resolved to a type
java代码:rnpackage hello.acticity;rnrn<em>import</em> android.app.Activity;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.widget.Button;rn<em>import</em> android.widget.TextView;rnrnpublic class Activity05 extends Activity rn /** Called when the activity is first created. */rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn TextView myTextView=(TextView)findViewById(R.id.myTextView);rn Button myButton=(Button)findViewById(R.id.myButton);rn rnrnrnmain.xml:rnrnrnrn rnrnrnrn根据视频教程,myTextView与myButton没有显示出来,用的是android2.2的emulatorrn知道的,哪位大虾帮忙一下,谢谢!
R cannot be resolved to a variable
为什么我的代码就是报告这个错误呢,每个project都一样,急死了,谁能帮帮我啊
Student cannot be resolved to a type
[img=https://img-bbs.csdn.net/upload/201509/10/1441888552_187742.png][/img]
变量cannot be resolved是神马?
新学Java的菜鸟一只rnpublic void run() rnrn int a,b,c;rn compare();rn rn rn public void compare()rn if(a>b)rn //........rn rn rnrn为什么a和b提示 cannot be <em>resolved</em>?
errorString cannot be resolved or is not a field
errorString cannot be <em>resolved</em> or is not a fieldrn代码如下,路过的帮看看,谢谢。rnpackage zfy.Ex11_UI_A;rnrn<em>import</em> zfy.Ex11_UI_A.BMIActivity;rn<em>import</em> zyf.Ex11_UI_A.R;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.app.Activity;rn//<em>import</em> android.view.Menu;rn<em>import</em> android.content.Intent;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.view.View;rn<em>import</em> android.widget.Button;rn<em>import</em> android.widget.EditText;rn<em>import</em> android.widget.RadioButton;rn<em>import</em> android.widget.Toast;rnpublic class Ex11_UI_A extends Activity rn protected int my_requestcode=1550;rn private EditText edit_height;rn private RadioButton radiobutton_Man,radiobutton_Woman;rn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn Button ok=(Button)findViewById(R.id._button_OK);rn edit_height = (EditText)findViewById(R.id.height_Edit);rn radiobutton_Man=(RadioButton)findViewById(R.id.Sex_Man);rn radiobutton_Woman=(RadioButton)findViewById(R.id.Sex_Woman);rn ok.setOnClickListener(new Button.OnClickListener()rn public void onClick(View v)rn tryrn double height=Double.parseDouble(edit_height.getText().toString());rn String sex="";rn if (radiobutton_Man.isChecked())rn sex="M";rn elsern sex="F" ;rn rn rn Intent intent=new Intent();rn intent.setClass(Ex11_UI_A.this,BMIActivity.class);rn Bundle bundle=new Bundle();rn bundle.putDouble("height", height);rn bundle.putString("sex", sex);rn intent.putExtras(bundle);rn startActivityForResult(intent,my_requestcode);rn catch(Exception e)rn //以下要补回rn Toast.makeText(Ex11_UI_A.this,R.string.errorString,Toast.LENGTH_LONG).show();rn rn rn rn rn rn );rn rnrn @Overridern protected void onActivityResult(int requestCode,int resultCode,Intent data)rn super.onActivityResult(requestCode,resultCode,data);rn switch(resultCode)rn case RESULT_OK:rn Bundle bunde=data.getExtras();rn String sex=bunde.getString("sex");rn double height=bunde.getDouble("height");rn if (sex.equals("M"))rn radiobutton_Man.setChecked(true);rn rn elsern radiobutton_Woman.setChecked(true);rn rn break;rn default:rn break;rn rn rn rn rn rn rnrnrn
IOException cannot be resolved to a type
<em>import</em> java.io.FileInputStream;rn<em>import</em> java.io.FileNotFoundException;rn<em>import</em> java.io.FileOutputStream;rnpublic class IoTest rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn rn int i;rn String s="";rn tryrn rn FileInputStream in=new FileInputStream("c:\\demo.txt");rn FileOutputStream out=new FileOutputStream("c:\\demo1.txt");rn tryrn while((i=in.read())!=-1)rn rn s=s+(char)i;rn out.write(i);rn rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn catch(FileNotFoundException e)rn rn e.printStackTrace();rn rn rn
Date cannot be resolved to a type
我用MYECLIPSE8.6开发JSP。调用了 怎么会报Description Resource Path Location TypernDate cannot be <em>resolved</em> to a type index.jsp /4.1/WebContent line 13 JSP Problemrn这个错误?
ApplicationContext cannot be resolved to a type
spring jar包都导入了,可是<em>import</em>的时候就是找不到<em>org</em>.<em>springframework</em>.context.ApplicationContext;
org.apache.jasper cannot be resolved to a type
这个到底需要导入哪几个jar包呢,我用的是tomcat +mysql+hibernatern为什么总有错误呢?错误信息如下rn<em>org</em>.apache.jasper cannot be <em>resolved</em> to a typernrn感谢各位大虾!!!!!!!!
ActionMessage cannot be resolved to a type
<em>import</em> javax.servlet.http.HttpServletRequest; rn<em>import</em> <em>org</em>.apache.struts.action.ActionErrors; rn<em>import</em> <em>org</em>.apache.struts.action.ActionForm; rn<em>import</em> <em>org</em>.apache.struts.action.ActionMapping; rn<em>import</em> com.yourcompany.struts.*; rnrnpublic class LoginForm extends ActionForm rnprivate String password; rnprivate String name; rnpublic ActionErrors validate(ActionMapping mapping, rnHttpServletRequest request) rn// TODO Auto-generated method stub rnActionErrors errors = new ActionErrors() ; rnif(this.name==null||"".equals(this.name)) rn rnerrors.add("name",new ActionMessage("name.null")) ; rn rnif(this.password==null||"".equals(this.password)) rn rnerrors.add("name",new ActionMessage("password.null")) ; rn rnreturn errors; rn rnrnpublic void reset(ActionMapping mapping, HttpServletRequest request) rn// TODO Auto-generated method stub rn rnpublic String getPassword() rnreturn password; rn rnpublic void setPassword(String password) rnthis.password = password; rn rnpublic String getName() rnreturn name; rn rnpublic void setName(String name) rnthis.name = name; rn rnrn请高手看看哪里错了!!
Android错误-R cannot be resolved
我刚刚下载并安装了新的Android SDK,我想要创建一个小的应用来测试一下:rn安装向导创建了下边这样的代码:rnrn package eu.mauriziopz.gps;rn <em>import</em> android.app.Activity;rn <em>import</em> android.os.Bundle;rn public class ggpsextends Activity rn /** 当activity第一次创建的时候调用*/rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn rn rnrn但是Eclipse给出了我这个错误:rnrn R cannot be <em>resolved</em>rnrn在这一行rnrn setContentView(R.layout.main);rnrn为什么?rnPS:我在res/layout/ 下有一个XML文件命名为main.xml .
ObjectServiceFactory.create cannot be resolved to a type
已经在tomcat上部署好了服务~ 所需要的包也都加了rn但写客户端的时候 rnService srvcModel = new ObjectServiceFactory().create(Ihelloclient.class); rnMyEclipse在ObjectServiceFactory().create下画了红波浪线说是ObjectServiceFactory.create cannot be <em>resolved</em> to a typern怎么回事哦?求教啦~~
android的R.id cannot be resolved问题~~~!!!!!!!!!!!
我的ADT是0.9.6的 android的SDK是2.2的 JDK在1.5和1.6下都出现这个问题。度娘和谷歌搜索出来的一些方法解决不了次问题,望高手指教。rnPS: R.JAVA文件存在.rn代码如下:rnrnpackage H1.H1;rnrn<em>import</em> android.app.Activity;rn<em>import</em> android.os.Bundle;rn<em>import</em> android.view.View;rn<em>import</em> android.view.View.OnClickListener;rn<em>import</em> android.widget.Button;rn<em>import</em> android.widget.EditText;rn<em>import</em> android.widget.TextView;rnrnpublic class H1 extends Activity rn rn private EditText getNameEditText;rn private Button button_Login;rn private TextView show_Login_TextView;rn rn /** Called when the activity is first created. */rn @Overridern public void onCreate(Bundle savedInstanceState) rn rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn rn getNameEditText=(EditText)findViewById(R.id.widget29_getName_EditText);//错误就出现在R.idrn rn button_Login=(Button)findViewById(R.id.widget30_Login_Button);//错误同上rn rn show_Login_TextView=(TextView)findViewById(R.id.widget31_showLogin_TextView);//错误同上rn rn button_Login.setOnClickListenerrn (new OnClickListener()rn rn @Overridern rn public void onClick(View v)rn rn [color=#FF0000][/color]rn //TODO Auto-generated method stubrn show_Login_TextView.setText(getNameEditText.getText()+"111");rn rn );rn rn
MIDlet cannot be resolved to a type
装了Eclipse ME 也装了Wireless Toolkit 2.5.2 rnEclipse SDKrnVersion: 3.4.1rnBuild id: M20080911-1700rnrnJDK是1.6的,为什么会这样rn创建工程的时候 有J2ME这个选项,说明我的ECLIPSE ME装了了吧
系统中的射频计算小工具下载
射频计算小工具,便于你射频工作中的计算,包括史密斯原图等 相关下载链接:[url=//download.csdn.net/download/cxx0813/3408911?utm_source=bbsseo]//download.csdn.net/download/cxx0813/3408911?utm_source=bbsseo[/url]
计算机组成原理下载
系统学习计算机组成原理的课件!主要面向对象是计算机爱好者及计算机专业的学生! 相关下载链接:[url=//download.csdn.net/download/ghy8910/6748151?utm_source=bbsseo]//download.csdn.net/download/ghy8910/6748151?utm_source=bbsseo[/url]
二维码生成下载
你自己的网站 自己的需求不一样 需要修改哦 相关下载链接:[url=//download.csdn.net/download/qq_27269741/9136583?utm_source=bbsseo]//download.csdn.net/download/qq_27269741/9136583?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的