我刚从http://jsoup.org/download(jsoup-1.7.2.jar)下载了Jsoup .问题很简单:我该如何安装它?我已经尝试在安装最新的JRE版本后右键单击>打开> C:\ Program Files\Java\jre7\bin\javaw.exe但它不起作用.jar文件在我的桌面上,我目前使用的是WIN7.一些分步"指示"将不胜感激!
我刚接触Java语言,所以我通常会遇到平庸的错误.以下应该是其中之一.Es1.java:93:错误:变量f可能尚未初始化在查看代码之前要了解的事情 - 我正在使用一些自定义类:ConsoleInputManager和ConsoleOutputManager的工作方式基本上类似于Scanner和System.out; 图是一个抽象类; 圆形,方形和矩形延伸图
import prog.io.*;
//ConsoleInputManager, ConsoleOutputManager
import prog.utili.*;
//Figure, Circle, Squade, Rectangle
class Es1{
public static void main(String[] args){
//Variables
ConsoleInputManager in = new ConsoleInputManager();
ConsoleOutputManager out = new ConsoleOutputManager();
int com1,com2,com3;
com1 = com2 = com3 = 0;
double r,s,l,w;
r = s = l = w = 0.0;
Figure f;
do{
//Menu
out.println("1. Insert a new figure");
out.println("2. Calculate the area of the current figure");
out.println("3. Examine the current figure");
out.println("4. Exit the program\n");
//Input …Run Code Online (Sandbox Code Playgroud)