eclipse快速选择光标所在位置的单词

1351066414702022-10-04 11:39:541条回答

eclipse快速选择光标所在位置的单词
我补充一下.我说的那个键盘快捷键就像Intellij IDEA里面的那个 Ctrl+w快捷键的效果,直接选择光标所在处的一个单词,然后每多按一下,就逐步往外扩展,选到你需要的为止

已提交,审核后显示!提交回复

共1条回复
ai自己 共回答了19个问题 | 采纳率94.7%
点击单词里2次就选中了呀
1年前

相关推荐

eclipse启动时弹出Failed to create the Java Virtual Machine 是怎么回事?
eclipse启动时弹出Failed to create the Java Virtual Machine 是怎么回事?
同题.
tianyac1ub1年前1
kkxgg 共回答了16个问题 | 采纳率93.8%
方法如下:找到eclipse目录下的eclipse.ini,可以看到如下内容:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
将其修改为如下内容,即可启动Eclipse
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx256m
帮忙修改一下一道JAVA的题目上面是我在ECLIPSE上已经写好的java 但是我想限制输入数字的范围 也
帮忙修改一下一道JAVA的题目

上面是我在ECLIPSE上已经写好的java 但是我想限制输入数字的范围 也就是输入的number一定要大于0 请给位大大修改一下

希望电脑output的结果是这样的

How many cookies do you want to make: -5

Invalid number: How many cookies do you want to make: 12

1) Mix 0.75 cups butter with 0.75 cups brown sugar

2) Add 0.75 cups molasses and 0.5 cups eggs and mix well

3) Add 4 cups flour and 1 tablespoons baking soda (don't mix yet!)

4) Add 1 tablespoons baking cinnamon and 0.5 tablespoons ginger and mix well

5) Put a little flour on the table and flatten out your dough. Cut out your Gingerbread men with a cookie

cutter.

6) Place your Gingerbread men on an ungreased cookie sheet. Bake at 350 degrees for 8-10 minutes.


yoyo_cc1年前1
zhangyu1231 共回答了22个问题 | 采纳率90.9%
Scanner input = new Scanner(System.in);
System.out.print("请输入数字: ");
do
{while(!reader.hasNextInt())
{
System.out.println("请输入一个1-9999之间的整数:");
reader.next();
}
input =reader.nextInt();
if(input
eclipse的 wst 我是新手对eclipse的许多术语都不是太明白.
流水响叮咚1年前1
仁者爱仁1 共回答了13个问题 | 采纳率92.3%
Eclipse的一个插件组,web标准工具(Web Standard Tools)因为eclipse基础包里只能创建一般的地Java Project即不能创建J2EE工程也不能创建一般的地SWT等Visual程序,所以WST和另外的一个WTP(Web Tool Project)插件组一起加到Eclipse中就能创建J2EE工程了
英语翻译A solar eclipse occurs when the moon passes between the
英语翻译
A solar eclipse occurs when the moon passes between the Sun and the Earth so that the Sun is fully or partially covered.This can only happen during a new moon,when the Sun and Moon are in conjunction as seen from the Earth.At least two and up to five solar eclipses can occur each year on Earth,with between zero and two of them being total eclipses.Total solar eclipses are nevertheless rare at any location because during each eclipse totality exists only along a narrow corridor in the relatively tiny area of the Moon's umbra.
A total solar eclipse is a spectacular natural phenomenon and many people travel to remote locations to observe one.The 1999 total eclipse in Europe helped to increase public awareness of the phenomenon,as illustrated by the number of journeys made specifically to witness the 2005 annular eclipse and the 2006 total eclipse.The most recent solar eclipse occurred on January 26,2009,and was an annular eclipse.
In ancient times,and in some cultures today,solar eclipses have been attributed to supernatural causes.Total solar eclipses can be frightening for people who are unaware of their astronomical explanation,as the Sun seems to disappear in the middle of the day and the sky darkens in a matter of minutes.
无缘-wai1年前1
hw3185186 共回答了23个问题 | 采纳率95.7%
日食发生时,月亮之间通过太阳和地球,使太阳的全部或部分包括在内.这只能发生在一个新的月球时,太阳和月亮是结合所看到的地球.至少有两个和5个太阳能日食可以每年发生在地球上,与零之间,其中2人被总相形见绌.日全食日食却很少在任何地点,因为在每一只存在偏食全部沿一条狭窄的走廊在相对小面积月球本影.
阿日全食是一种壮观的自然现象,许多人前往偏远地点,观察1 .1999年日全食在欧洲有助于提高公众认识的现象,就说明了这一点取得了一些具体行程见证日环食,2005年和2006年的月全食.最近的日食发生在2009年1月26日,是日环食.
在远古时代,在一些文化今天,太阳能蚀已归因于超自然的原因.日全食日食可以可怕的人谁不知道他们天文的解释,太阳似乎消失在中东的一天,天空变暗在几分钟内.
用Eclipse写Java程序实现小球的运动.匀速运动:速度可以改变 加速运动:加速度可以改变,包括正负 抛体运动:竖直
用Eclipse写Java程序
实现小球的运动.匀速运动:速度可以改变 加速运动:加速度可以改变,包括正负 抛体运动:竖直上抛:可以改变初始速度 平抛:可以改变水平初始速度 斜抛:可以改变速度和角度 通过堆栈来实现小球运动轨迹的留存.小球的运动要写在下拉菜单中,点击后会跳出对话框来改变速度角 度加速度等.在框的边线上随机发出一个球,球做直线运动,当遇的边线时,成 角度的反弹,遇到另一条线 再成角度的反弹,如此循环下去.可 以改变球开始运动时的速度,加速度以及角度.如题 不要动态 写过程因为是题
zhengjiale1年前1
gladiator_i2001 共回答了20个问题 | 采纳率95%
抛砖引玉一下
我觉得该题描述了3个事物
1 小球 Ball
2 放小球的容器 BallPanel
3 小球的控制器 BallControler
public class Ball{
double R = 0d; //球的半径
int cx;//当前小球中心X坐标
int cy;//当前小球中心Y坐标
double angle;//小球运动弧度 ,与cx,cy结合起来用来算出 小球移动到当前时的前一个坐标,及移动到下一个点的坐标
int speed;//小球运动速度,毫秒数
}
public class BallPanel{
double width;//放小球的容器宽
double height;//放小球的容器的高
BallControler []BallControlers;//放了多少个小球
}
public class BallControler extends Thread{
Ball tBall;//该控制器控制的小球
BallControler(Ball tBall){
this.tBall = tBall;
}
private int [] getNextPosition(){
/**
返回下一点的x,y坐标
*/
}
private int [] getPreviousPosition(){
/**
返回前一点的x,y坐标
*/
}
private void moveBall(int x,int y){
//移动小球到指定的x,y坐标.
//有必要的话,可以记录小球的运动轨迹到堆栈中
}
public void run(){
Thread.sleep(tBall.speed);//按照小球规定的速度移动
//下面的代码,计算并且移动小球到下一个点,计算是否碰壁(当前小球中心坐标+半径是否超过BallPanel的长,或者高等),并且移动小球
}
}
Struts2上传图片问题我把图片上传到本地项目子目录文件夹下面,在eclipse中 每次要刷新文件夹才可以出来,现在把
Struts2上传图片问题
我把图片上传到本地项目子目录文件夹下面,在eclipse中 每次要刷新文件夹才可以出来,现在把项目放到服务器上面,每次上传后,只是把文件路径保存到了数据库,而项目目录下面的文件夹,并没有上传的图片,该怎么办,
public class UploadFile {
private static final int BUFFER_SIZE = 16 * 1024;
String imageFileName;
public static InputStream in;
public static OutputStream out;
private String fileName;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public static int getBufferSize() {
return BUFFER_SIZE;
}
private static void copy(File src, File dst) {
try {
try {
in = new BufferedInputStream(new FileInputStream(src),
BUFFER_SIZE);
out = new BufferedOutputStream(new FileOutputStream(dst),
BUFFER_SIZE);
byte[] buffer = new byte[BUFFER_SIZE];
while (in.read(buffer) > 0) {
out.write(buffer);
}
} finally {
if (null != in) {
in.close();
}
if (null != out) {
out.close();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
private static String getExtention(String fileName) {
int pos = fileName.lastIndexOf(".");
return fileName.substring(pos);
}
public String saveImage(File myFile) {
imageFileName = new Date().getTime() + getExtention(fileName);
// File imageFile = new
// File(ServletActionContext.getServletContext().getRealPath("/uploadImage")
// + "/" + imageFileName);
File imageFile = new File("D:/java/workspaces/mjms/WebRoot/image" + "/"
+ imageFileName);
copy(myFile, imageFile);
return imageFileName;
}
}
雪落无痕11161年前1
ddeea 共回答了15个问题 | 采纳率93.3%
File imageFile = new File("D:/java/workspaces/mjms/WebRoot/image" + "/"
+ imageFileName);
服务器上没有这个文件,应该是这里的路径,这是你本机的路径,在服务器上有这个目录?建议写相对路径.
还有个问题,就是你说的每次要刷新的问题,
问题在这里:
if (null != out) {
out.frush();//加上这一句代码,就不用手动刷新了
out.close();
}
选择.During an eclipse of the Sun,______ in the shadow of the
选择.During an eclipse of the Sun,______ in the shadow of the Moon.
(A)x05the Earth lies
(B)x05the Earth when lying
(C)x05that the Earth lies
(D)x05the lying Earth
嫣然yixiao1年前4
冰峰图腾 共回答了13个问题 | 采纳率76.9%
答案选(A)the Earth lies 地球位于
启动eclipse时提示 an error has occurred see zht log file
启动eclipse时提示 an error has occurred see zht log file
SESSION Mon May 06 07:05:14 GMT 2013 ------------------------------------------
ENTRY org.eclipse.equinox.launcher 4 0 2013-05-06 07:05:14.159
MESSAGE Exception launching the Eclipse Platform:
STACK
java.lang.UnsupportedClassVersionError:org/eclipse/core/runtime/adaptor/EclipseStarter (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
hfgwye4f1年前1
曼木无形草 共回答了18个问题 | 采纳率88.9%
查看过环境变量,发现正常.不是这个问题,最后在一个外国的论坛上发现有个人有如下的Incorrectly unzipped.Believe it or not,about once a month,a user reports start-up failure:The user has unzipped Eclipse without selecting the use folder names option.Make sure that the result of unzipping is an install tree with an eclipse directory at its root.The Ark unzip utility in KDE is known to mangle Eclipse zips,so use a different unzip program to install there.The built-in unzip utility in Windows has also been known to have problems,particularly when installing into paths with relatively long names.感觉应该是解压路径的问题,可能是解压的路径出现了中文或是路径长度过长的问题.于是把压缩包放在C盘本目录下解压.解药后发现运行正常.还真是这个问题,无语.感觉上是路径过长的问题可能性比较大.所以,以后安装软件或是解压软件时,不要把放在太多层的目录下.)我也遇到了相同问题,以上是我在网上找到的,我把安装路径都改成英文的又装了一次OK了~
Astronomers can______when and where there will be eclipses o
Astronomers can______when and where there will be eclipses of the sun and the moon.
为什么只能填calculate不能填figure?
hjxyp1年前3
始宁小婢 共回答了18个问题 | 采纳率94.4%
calculate计算,如用figure要加out
英语翻译the desperate plight of the South has eclipsed the fact
英语翻译
the desperate plight of the South has eclipsed the fact that reconstruction had to be undertaken also in the North,though less spectacularly.
帮忙翻译成中文,还有这句话的主干是什么?这是什么从句类型?
不要翻译器的内容
lda_ja_6cqc0a941年前6
双子刘 共回答了13个问题 | 采纳率100%
尽管没那么引人注目,南方令人绝望的窘况还是使得北方也必须进行的重建工作黯然失色.
主干:The desperate plight of the South of the South.
the fact that reconstruction had to be undertaken also in the North 是个同位语从句
though less spectacularly 让步状语从句,其主语与主句的主语一致.
java eclipse 为什么编译后显示The public type Doll must be defined in
java eclipse 为什么编译后显示The public type Doll must be defined in its own file
我的程序:
public class Doll{
private String name;
public Doll(String name) {
this.name = name;
}
public void speak(){
System.out.println(name);
}
}
public class DollApp{
public static void main(String[] args) {
// TODO Auto-generated method stub
Doll beibei = new Doll("贝贝");
Doll jingjing = new Doll("晶晶");
Doll huanhuan = new Doll("欢欢");
Doll yingying = new Doll("迎迎");
Doll nini = new Doll("妮妮");
beibei.speak();
jingjing.speak();
huanhuan.speak();
yingying.speak();
nini.speak();
}
}
太纠结了,
显示的错误信息是:
Exception in thread "main" java.lang.Error:Unresolved compilation problem:
The public type Doll must be defined in its own file
at Doll.(DollApp.java:2) 就是第一行 public class Doll{ 感觉是我Doll的命名问题
at DollApp.main(DollApp.java:19)
fagareg1年前1
飘萍67 共回答了20个问题 | 采纳率90%
两个类要分开写到不同的.java文件中
Eclipse连接数据库报 The TCP/IP connection to the host has failed 错
Eclipse连接数据库报 The TCP/IP connection to the host has failed 错误
我用 MyEclipse6.0 通过 MyEclipse Hibernate 创建数据源连接SQL2005数据库,结果连不上.报The TCP/IP connection to the host has failed 错误!但我SQL2005中TCP/IP 协议状态为”已启动”.我以前也见别人遇到过这样的问题,可一直没解决...
谁知道怎么解决这个问题的,非常希望能向我伸出援助之手.
在此,感激不禁!
zxwxx1年前1
阳美玉 共回答了17个问题 | 采纳率82.4%
你连本地还是远程;本地就localhost,远程就写IP,注意端口号,Connection URL 要写对
Document base D:\eclipse-jee-indigo-win32\senda\pdm\WebConte
Document base D:eclipse-jee-indigo-win32sendapdmWebContent does not exist or is not a readable directory
ff的红茶1年前1
随便啊宝贝 共回答了18个问题 | 采纳率83.3%
Document base D:eclipse-jee-indigo-win32sendapdmWebContent does not exist or is not a readable directory
D:eclipse-jee-indigo-win32sendapdmWebContent路径下的文件不存在或者目录不可读
java语言,eclipse编写的趣味题,新手求教育
java语言,eclipse编写的趣味题,新手求教育
【趣味题】猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个,第二天早上又将剩下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下的一半零一个。到第20天早上想再吃时,见只剩下一个桃子了。求第一天共摘了多少。(PearNumber)
蓝玫11年前1
petercscz 共回答了17个问题 | 采纳率88.2%
public class Caculate {
public int getTotal(int n){
if(n>20) return 0;
if(n
在eclipse中 Folder 'xxx' does not exist.
何以奇1年前1
光痕230 共回答了17个问题 | 采纳率82.4%
目录不存在,你创建下那个xxx目录试下.
在ubuntu下eclipse出现问题:If you wish to use SWT,please add the ap
在ubuntu下eclipse出现问题:If you wish to use SWT,please add the appropriate SWT jars to your
classpath,or create a new SWT/JFace Java Project.You may also create a plug-in project and allow PDE to manage the classpath for you.
似魔似幻的七彩1年前1
薄荷uu_eileen 共回答了16个问题 | 采纳率93.8%
你要用SWT,就需要导包.
再工程中把那个系统包再重新导入试试?
英语翻译In line with the general Eclipse platform philosophy,the
英语翻译
In line with the general Eclipse platform philosophy,the PDE provides a wide variety of platform contributions (e.g.,views,editors,wizards,launchers,etc.) that blend transparently with the rest of the Eclipse workbench and assist the developer in every stage of plug-in development while working inside the Eclipse workbench.
烟雨菲霖1年前1
linlingyaya 共回答了24个问题 | 采纳率79.2%
这段话主要讲eclipse插件开发的
与常规的eclipse平台体系一样,插件开发环境(PDE)提供了多种渠道的开发(例如:视图,编辑器,向导,launchers,等等…),这样就同其他的eclipse工作台很好的结合起来,并且在每个阶段,eclipse工作台都能很好的协助开发人员进行插件开发.
ECLIPSE制作聊天界面 功能完善
ECLIPSE制作聊天界面 功能完善

①添加按键enter事件,达到与点击“发送”按钮相同效果。

②国际化:点击“english”按钮将界面所有控件改成英文提示,如“发送”变为“send”,“好友:”变为“friends:”;点“中文”按钮恢复为中文


心_动1年前1
zhuangxiaopupu 共回答了13个问题 | 采纳率100%
一般而言,在java语言中,响应JTextField回车按键有两种方法:
一.捕获文本框动作事件;二,捕获键盘事件中得回车按键。
两种方法都可以响应键盘的回车按键,捕获文本框动作事件的方法比较而言,较容易实现,代码简洁。
但是捕获键盘事件中的回车按键也有它可取之处,比如文本框对组合键的响应(如qq中的Enter+Ctrl发送信息)。

1.捕获文本框动作事件(即回车按钮),实现ActionListener接口。
测试程序代码如下:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class text extends JFrame implements ActionListener
{
private static text frm;
private static JTextField txt;
text()
{
setTitle("TextField Test");
setLocation(200, 200);
setSize(200, 150);
}
public static void main(String[] args)
{
frm=new text();
frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frm.setLayout(new FlowLayout());
txt = new JTextField(12);
txt.addActionListener(frm);
frm.add(txt);
frm.setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==txt)
{
txt.setText("");//在文本框按下回车键,将文本框内容清空,并在其中显示"Hello World!
txt.setText("Hello World!");
}
}
}
2.捕获键盘事件中得回车按键(KeyEvent.VK_ENTER),实现KeyListener接口。
测试程序代码如下:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class text extends JFrame implements KeyListener
{
private static text frm;
private static JTextField txt;
text()
{
setTitle("TextField Test");
setLocation(200, 200);
setSize(220, 100);
}
public static void main(String[] args)
{
frm=new text();
frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frm.setLayout(new FlowLayout());
txt = new JTextField(12);
txt.addKeyListener(frm);
frm.add(txt);
frm.setVisible(true);
}
public void keyPressed(KeyEvent e)
{
if(e.getSource()==txt)
{
if(e.getKeyCode() == KeyEvent.VK_ENTER)//判断按下的键是否是回车键
{
txt.setText("");
txt.setText("Hello World!");
}
}
}
public void keyReleased(KeyEvent e)
{
}
public void keyTyped(KeyEvent e)
{
}
}


国际化方面请看参考资料。
在eclipse里 Folder 'x' does not exist.
在eclipse里 Folder 'x' does not exist.是什么意思
dana42121年前1
夜正阑珊 共回答了20个问题 | 采纳率95%
Folder does not exist
文件夹不存在
JAVA测试题 一、 环境要求:Eclipse3.2 JDK1.5及以上
JAVA测试题 一、 环境要求:Eclipse3.2 JDK1.5及以上
从控制台接收一个数字:
1、 如果接收的数为1,则调用一个方法,该方法为接收一个数,算出0到这个数字之间,所有能被3整除的数之和是多少;
2、 如果接收的数为2,则调用另一个方法,定义数组,size为6,从控制台接收6个数,算出6个数中最大值与最小值的差值是多少;
3、 如果接收的数为3,则提示接收圆的半径,调用另一个方法,参数为r(半径),算出圆的面积。
4、 如果接收的数为4,则调用另一个方法,提示接收姓名,如“张**”,分别输出此人的姓与名。
5、 如果接收的数为其他,再提示输入错误。
各位大神 速度 求助啊 需要 4个方法 帮帮忙啊
珍惜今天1年前1
透明朋友 共回答了21个问题 | 采纳率95.2%
import java.util.Arrays;
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
System.out.print("Please input a digit number: ");

Scanner scanner = new Scanner(System.in);
int digit = scanner.nextInt();

switch(digit){
case 1:
int sum = method1();
System.out.println("Sum is: " + sum);
break;
case 2:
System.out.println("最大数字和最小差异为: " + metho2(6));
break;
case 3:
System.out.print("Please input r:");
double r = scanner.nextDouble();
System.out.println("Area is: " + method3(r));
break;
case 4:
method4();
break;
default:
System.out.println("Invalid input, progream exit!");
}
}
private static void method4() {
System.out.print("Please input your name:");
String str = new Scanner(System.in).nextLine();
String familyName = str.substring(0, 1);
String givenName = str.substring(1);

System.out.println("姓氏:" + familyName);
System.out.println("名字:" + givenName);

}
private static double method3(double r) {
return Math.PI * r * r;
}
private static int metho2(int size) {
int[] ary = new int[size];

Scanner scanner = new Scanner(System.in);
for(int i = 0; i < ary.length; i++){
System.out.print("Please input a number");
ary[i] = scanner.nextInt();
}

Arrays.sort(ary);
int max = ary[size -1];
int min = ary[0];

return max - min;

}
private static int method1() {
System.out.print("Please input the number: ");
int value = new Scanner(System.in).nextInt();

int sum = 0;
for(int i = 0; i
JAVA程序问题 我用的ECLIPSE 做的二分迭代法求解一元二次方程 但是程序没有结果 方程如下5.5X*X+2X-2
JAVA程序问题 我用的ECLIPSE 做的二分迭代法求解一元二次方程 但是程序没有结果 方程如下5.5X*X+2X-20=0
public class Equation {
x05
x05double a,b,c;
x05 double x,x1,x2,x3;
x05 public Equation(double a,double b,double c){
x05x05 this.a=a;
x05x05this.b=b;
x05x05this.c=c;
x05 }
x05 private double x05delta(){
x05x05 return b*b-4*a*c;
x05x05 }
public void calculate(){
x05if(delta()0.000001){
x05x05x05if(f(x1)*f(x3)
mhapple521年前1
cara3011 共回答了12个问题 | 采纳率91.7%
x1=(float) x3;
x3=(x1+x3)/2; //x3永远不变化,死循环,放个临时变量中转下
加一些调试信息,很容易就调试出来了
改成这样:
tmp = x3;
x3 = (x1 + x3) / 2;
x1 = tmp;
一根为:-2.0973917551508006
一根为:1.7337548687038098
eclipse安装windowsbuilder时候出现问题:Cannot complete the install be
eclipse安装windowsbuilder时候出现问题:Cannot complete the install because one or more ...(如下)
Cannot complete the install because one or more required items could not be found.
Software being installed: SWT Designer XWT Support (requires Eclipse WTP/WST) 1.5.2.r37x201302112106 (org.eclipse.wb.xwt.feature.feature.group 1.5.2.r37x201302112106)
Missing requirement: WindowBuilder Core for XML GUI's 1.5.2.r37x201302111919 (org.eclipse.wb.core.xml 1.5.2.r37x201302111919) requires 'bundle org.eclipse.wst.sse.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: SWT Designer XWT Support 1.5.2.r37x201302112106 (org.eclipse.wb.xwt 1.5.2.r37x201302112106)
To: bundle org.eclipse.wb.core.xml 0.0.0
Cannot satisfy dependency:
From: SWT Designer XWT Support (requires Eclipse WTP/WST) 1.5.2.r37x201302112106 (org.eclipse.wb.xwt.feature.feature.group 1.5.2.r37x201302112106)
To: org.eclipse.wb.xwt [1.5.2.r37x201302112106]
请问怎么解决?
人称万人迷1年前1
2vuf14oltpmlh4 共回答了21个问题 | 采纳率76.2%
ecause one or more required items could not be found,这个是告诉你多个重要文件缺失啊~安装包错误呗,重新下一个啊.
刚安装eclipse,出现an error has occurred see the log file错误
刚安装eclipse,出现an error has occurred see the log file错误
(在官网下的org.objectweb.lomboz-all-in-one-R-3.2.2-2007)是在C盘根目录下解压的,装的jdk1.6,环境变量也配的没问题,
SESSION 2014-12-21 01:29:27.547 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants:OS=win32,ARCH=x86,WS=win32,NL=zh_CN
Command-line arguments:-os win32 -ws win32 -arch x86
ENTRY org.eclipse.osgi 4 0 2014-12-21 01:29:31.319
MESSAGE Application error
STACK 1
java.lang.UnsatisfiedLinkError:C:eclipseconfigurationorg.eclipse.osgibundles2471.cpswt-win32-3236.dll:Can't load IA 32-bit .dll on a AMD 64-bit platform
x09at java.lang.ClassLoader$NativeLibrary.load(Native Method)
x09at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
x09at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1716)
x09at java.lang.Runtime.loadLibrary0(Runtime.java:823)
x09at java.lang.System.loadLibrary(System.java:1028)
x09at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
x09at org.eclipse.swt.internal.win32.OS.(OS.java:18)
x09at org.eclipse.swt.widgets.Display.(Display.java:125)
x09at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:436)
x09at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
x09at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122)
x09at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75)
x09at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
x09at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
x09at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
x09at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
x09at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
x09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
x09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
x09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
x09at java.lang.reflect.Method.invoke(Method.java:597)
x09at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
x09at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
x09at org.eclipse.core.launcher.Main.run(Main.java:977)
x09at org.eclipse.core.launcher.Main.main(Main.java:952)
hblgzk1年前1
骑猪追梦人 共回答了16个问题 | 采纳率81.3%
你的jdk是32位的才可以
an eclipse is an interesting___which___by human beings long
an eclipse is an interesting___which___by human beings long ago
A.phenomena was noticed
B.phenomenon was noticed
C.phenomena had been noticed
D.phenomenon has been noticed
为什么不能选择D呢?
宏不讓1年前1
luoqing1214 共回答了17个问题 | 采纳率88.2%
因为这件事情 没有完成 以后还会观察到日食的
所以 不是完成时
这里只是在叙述客观的过去的事实而已
Astronomers can calculate when there will be eclipses of the
Astronomers can calculate when there will be eclipses of the sun and moon. 如何分析?谢谢!
能否语法详细分析? 谢谢
夏宇天1年前2
iliny 共回答了20个问题 | 采纳率95%
天文学家能够计算日食和月食的时间
JAVAEclipse:could not find the main class,program will exit!
JAVAEclipse:could not find the main class,program will exit!
我在Eclipse中写了以下一个程序:
import java.awt.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
//森林状的关系图
public class JTreeDemo
extends JFrame{
JTextField jtfInfo; //文本域,用于显示点击的节点名称

public JTreeDemo(){
super("森林状的关系图"); //调用父类构造函数

DefaultMutableTreeNode root = new DefaultMutableTreeNode("设置"); //生成根节点
DefaultMutableTreeNode node1=new DefaultMutableTreeNode("常规"); //生成节点一
node1.add(new DefaultMutableTreeNode("默认路径")); //增加新节点到节点一上
node1.add(new DefaultMutableTreeNode("保存选项"));
root.add(node1); //增加节点一到根节点上
root.add(new DefaultMutableTreeNode("界面"));
root.add(new DefaultMutableTreeNode("提示声音"));
root.add(new DefaultMutableTreeNode("打印"));

JTree tree = new JTree(root); //得到JTree的实例
DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer)tree.getCellRenderer(); //得到JTree的Renderer
renderer.setLeafIcon(null); //设置叶子节点图标为空
renderer.setClosedIcon(null); //设置关闭节点的图标为空
renderer.setOpenIcon(null); //设置打开节点的图标为空

tree.addTreeSelectionListener(new TreeSelectionListener() { //选择节点的事件处理
public void valueChanged(TreeSelectionEvent evt) {
TreePath path = evt.getPath(); //得到选择路径
String info=path.getLastPathComponent().toString(); //得到选择的节点名称
jtfInfo.setText(info); //在文本域中显示名称
}
});
JScrollPane jsp=new JScrollPane(tree); //增加JTree到滚动窗格
jtfInfo=new JTextField(); //实例化文本域
jtfInfo.setEditable(false); //文本域不可编辑
getContentPane().add(jsp,BorderLayout.CENTER); //增加组件到容器上
getContentPane().add(jtfInfo,BorderLayout.SOUTH);


setSize(250,200); //设置窗口尺寸
setVisible(true); //设置窗口可视
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //关闭窗口时退出程序
}

public static void main(String[] args){
new JTreeDemo();
}
}
运行时跳出could not find the main class,program will exit!
谁帮我解决一下!谢谢
我用的是JDK1.4.2,Eclipse3.2
运行之后跳出这么一大段:
java.lang.UnsupportedClassVersionError: JTreeDemo (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Exception in thread "main"
域外天魔1年前1
flyflycat 共回答了21个问题 | 采纳率81%
我试过了,你的程序没有任何问题,你运行的方式可能不正确.
你在eclipse中用右键点击JTreeDemo.java文件“选择运行”->"java 应用程序"的方式运行试试,没问题的
————————————————————————
出现这个错误是由于你的jdk版本与eclipse高版本配置造成的,解决如下:
点击 窗口->首选项
点击编译器,把“编译器一致性级别”从5.0改成1.4试试吧
求翻译 和天文有关Saturn's in its fourth eclipse 这个Eclipse是怎么讲
石美美1年前1
我任我逍遥1 共回答了20个问题 | 采纳率85%
土星在其第四次的日食eclipse[英][ɪ'klɪps][美][ɪˈklɪps]
Eclipse运行环境问题Several ports (8005, 8080, 8009) required by To
Eclipse运行环境问题
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost (2) are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).什么意思
kuaile8310011年前1
unkinger 共回答了13个问题 | 采纳率100%
端口让占用了。。。重新启动下eclipse,如果不行重新启动下电脑。。
你要记住,一定要正常结束程序,要不很容易出这个问题
8005, 8080, 8009端口地址被占用了,可能是别的应用程序占用的
你到conf文件夹里的server.xml里修改一下tomcat的端口,
这的确是端口被占用的了,
改完后,你注意在eclipse里重新新建tomcat服务哦,,
祝你好运,
开始 - 运行 - cmd - netstat -a 看看那个应用占用这几个端口呢,在服务管理器中将它改为手动 然后从起机器
应该填什么,为什么Did you watch the total solar eclipse on July 22,20
应该填什么,为什么
Did you watch the total solar eclipse on July 22,2009?
.Yes,but it soon d__________.
还有一个
The Great Pyramid at Giza is about 137 metres high.(对划线部分提问)
_____ _____is the Great Pyramid at Giza?
应该填How high,可是谁能帮我解释一下为什么不填How height
若水ll1年前5
yjfdo 共回答了10个问题 | 采纳率80%
你2009年七月二十二看到过日全食吗?
是的,但是很快就消失了!
消失: disappeared
又根据题义为过去时!
所以用disappeared
帮忙看看一句话原文是:Eclipse 是一个开放源代码的、基于 Java 的可扩展开发平台.我翻译的:Eclipse i
帮忙看看一句话
原文是:Eclipse 是一个开放源代码的、基于 Java 的可扩展开发平台.
我翻译的:Eclipse is an open source code,Java-based extensible development platform
曹敏001年前2
老盼 共回答了16个问题 | 采纳率87.5%
没错的,翻译的不错~
英语翻译The moon is hiding it completely.That is a total eclipse
英语翻译
The moon is hiding it completely.That is a total eclipse of the sun; sometimes only part of the sun's disc is hidden; that is a partial eclipse of the sun.A total solar eclipse can occur only when the moon is in its new phase.
sb顾小北1年前5
shiyxia1 共回答了17个问题 | 采纳率82.4%
月亮正完全遮住它,这是完整的日食;有时候仅仅有部分太阳被遮住,那是日缺食.一次完整的日食仅仅在新月阶段才会出现.
手译
英语翻译The sun was eclipsed in that instant.Ardo leaped up,whee
英语翻译
the sun was eclipsed in that instant.ardo leaped up,wheeling around toward the darkened sky.his mouth fell open as the lengthening shadow surged across the yellowed fields of wheat.ardo’s eyes went wide with the rush of fear.*** roared into his veins.
enormous plumes of smoke trailed behind fireballs roaring directly toward him from the western end of the broad valley.ardo quickly reached down and pulled melani to her feet.his mind raced.they had to run,find shelter ...but where could they go?melani screamed,and he realized that there was nowhere to go and noplace safe to hide.
樱花失眠1年前1
yanglili6456 共回答了10个问题 | 采纳率100%
就在那一刻,太阳昏暗了.阿多跳起来,转过身来,面对暗下来的天空.随着阴影在金色的麦田上飞快地蔓延,阿多的嘴巴也越张越大.一阵恐惧袭来,阿多瞪大了眼睛.他的血液沸腾了.
从山谷西侧而来的火球咆哮着冲向他这边,火球后面拖着浓浓的烟雾.阿多飞快地弯下腰,拉起米兰妮.他的脑子飞快地转动着.他们必须要跑开,找一个藏身的地方……但是他们能去哪儿呢?米兰妮尖叫着,他意识到他们无处可去,没有任何安全的藏身之地.
eclipse 输入一段话,看有几个单词 比如输入 what is your name? 输出 what,is,your
eclipse 输入一段话,看有几个单词 比如输入 what is your name? 输出 what,is,your,name
缘来是祢1年前1
adele0124 共回答了24个问题 | 采纳率79.2%
import java.util.Scanner;
public class CCCC {
public static void main(String[] args) {
String input =null;
Scanner nn = new Scanner(System.in);
System.out.println("输入:");
String a = nn.nextLine().replace(' ',',');
System.out.println(a);
}
}
上面的随手写写,也写对呀……哪有.read()?是next()吗?是nextLine()!这个好用了