±Û¾´ÀÌ :sky 2000³â 6¿ù 28ÀÏ 10:39:03
JRE1.3°ú JDK1.2.2¸¦ ¼³Ä¡ÇÑ ÈÄ ´ÙÀ½ÀÇ AppletÀ» ½ÇÇàÇØ º¸¾Ò½À´Ï´Ù. ±×·¨´õ´Ï,
java.version: 1.1.4·Î ³ª¿À´õ±º¿ä.
java.vendor´Â MicroSoft·Î ³ª¿À±¸¿ä.
¾Æ¸¶µµ IEÀÚüÀûÀ¸·Î °¡Áö°í ÀÖ´Â Java VMÀ» ¾²´Â °Í °°Àºµ¥, »õ·Î ¼³Ä¡ÇÑ JDK1.2.2³ª JRE1.3¾ÖÇø´¿¡¼ »ç¿ëÇÏ°Ô ÇÏ·Á¸é ¾î¶»°Ô ÇÏ¿©¾ß ÇÏ´ÂÁö¿ä?
ÇöÀç OS´Â Win2000 Advanced ServerÀÔ´Ï´Ù.
¼Ò½º ÄÚµå´Â ´ÙÀ½°ú °°½À´Ï´Ù.
import java.applet.*;
import java.awt.*;
import java.util.*;
public class ExtendedApplet extends Applet
{
String text;
int x = 30;
int y = 120;
public void init()
{
try
{
text = "os.name: " + System.getProperty("os.name");
text = text + ", " + "file.separator: " + System.getProperty("file.separator");
text = text + ", " + "path.separator: " + System.getProperty("path.separator");
text = text + ", " + "line.separator: " + System.getProperty("line.separator");
text = text + ", " + "java.version: " + System.getProperty("java.version");
}catch(Exception ex)
{
text = ex.toString();
}
}
public void paint(Graphics g)
{
//g.setFont(new Font("TimeRoman", Font.BOLD, 12));
//g.drawString(text, x, y);
}
}