This selection does not support run mode
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/09 03:19:11
This selection does not support run mode
我的程序是这样的
class A {
String name;
public A(String x)
{
name=x;
}
public void func1()
{
System.out.println("func1 of "+name+"is calling");
}
public void func2()
{
A a2=new A("a2");
a2.func1();
}
}
class TestA
{
public static void main(String [] args)
{
A a1=new A("a1");
a1.func2();
}
}
其他程序能运行的,就是这个不行.而且这个程序是照着书上抄的,看不出来有什么问题.
知道为什么了,因为这个程序是需要参数的、
可是要在哪里输入参数呢?
我的程序是这样的
class A {
String name;
public A(String x)
{
name=x;
}
public void func1()
{
System.out.println("func1 of "+name+"is calling");
}
public void func2()
{
A a2=new A("a2");
a2.func1();
}
}
class TestA
{
public static void main(String [] args)
{
A a1=new A("a1");
a1.func2();
}
}
其他程序能运行的,就是这个不行.而且这个程序是照着书上抄的,看不出来有什么问题.
知道为什么了,因为这个程序是需要参数的、
可是要在哪里输入参数呢?
关于Eclipse/MyEclipse中The selection does not support run mode的解决
Eclipse或者MyEclipse中,当你运行一个程序的时候,可能弹出一个小窗口:The selection does not support run mode.原因可能有两个:
1.main方法声明有问题.
2.Eclipse需要配置JDK.
对于这样的问题,可以:首先检查main方法的声明,是否为public class 中的方法,方法声明是否是public static void main(String args[]),如果无误,则可能是第2种原因造成的.或者,如果,同一个Eclipse中的其它的程序能运行,但是这个不行,那就是第一种原因.
对于第2种原因,可以通过:Window-->Preference-->左侧的Java-->左侧的Installed JREs-->右侧的add-->然后点击JRE home directory后面的Browse指定JDK的安装目录--->然后再依次点击确定即可解决.
Eclipse或者MyEclipse中,当你运行一个程序的时候,可能弹出一个小窗口:The selection does not support run mode.原因可能有两个:
1.main方法声明有问题.
2.Eclipse需要配置JDK.
对于这样的问题,可以:首先检查main方法的声明,是否为public class 中的方法,方法声明是否是public static void main(String args[]),如果无误,则可能是第2种原因造成的.或者,如果,同一个Eclipse中的其它的程序能运行,但是这个不行,那就是第一种原因.
对于第2种原因,可以通过:Window-->Preference-->左侧的Java-->左侧的Installed JREs-->右侧的add-->然后点击JRE home directory后面的Browse指定JDK的安装目录--->然后再依次点击确定即可解决.
This selection does not support run mode
my eclipse中出现The selection does not support run mode
This version does not support windows vista
this device does not support reco rding
This version does not support windows
this setup does not support installing on this operating sys
this version of blizzard repair does not support your warcra
Your harware does not support the feeture required to run Ai
your har dware does not support the feature required to run
your hardware does not support the featuer required to run a
your hardware does not support the feature required to run A
找英语专家,Run-time error'430' :Class does not support Automation