我只是使用编辑器在我的pc上安装了一个带有更新的JDK和JRE 1.8.0_321的模拟器。当我编译主文件时,下面是提到的问题:
线程"main“java.lang.Error中的异常:未解决的编译问题:
Settings cannot be resolved
DTNSimTextUI cannot be resolved to a type
Settings cannot be resolved
DTNSimGUI cannot be resolved to a type
at core.DTNSim.main(DTNSim.java:83)
我试图找到一种方法,可以使用实例访问表单和类的方法和变量。这是我的代码:
我的表格代码是:
public partial class Form1 : Form
{
int var1 = 0;
public Form1()
{
InitializeComponent();
Glob glob = new Glob(this);
}
private void button1_Click(object sender, EventArgs e)
{
}
}
我的班级代码是:
public class Glob