[options] 未与 -source 1.6 一起设置引导类路径

梦里香格里拉 2012-02-18 08:20:50
生成帮助文档时出现警告:“[options] 未与 -source 1.6 一起设置引导类路径
是什么原因,怎么解决


源代码如下:
package com.usydapeng;

/**
*
* @author usydapeng
*
*/
public class Point {
private int x;
private int y;

/**
*
* @param x coordinate of x
* @param y coordinate of y
*/
public Point(int x, int y) {
this.x = x;
this.y = y;
}

/**
* @return return coordinate of axis of x and y;
*/
@Override
public String toString() {
return "[ x = " + x + ", y =" + y + "]";
}
}

-----------------------------
package com.usydapeng;

import java.util.ArrayList;
/**
*
* @author usydapeng
*
*/
public class ArrayListTest {
public static void main(String[] arg) {
ArrayList<Point> list;
list = new ArrayList<Point>();

list.add(new Point(2, 5));
list.add(new Point(3, 7));
list.add(new Point(1, 9));

System.out.println(list);
}
}

...全文
1072 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧