I've a maven Web-app in Eclipse and a page in JSP. I'm trying to launch an applet JAVA in this page, so I wrote :
<APPLET code="a/b/c/AppletStream.class" width="500" height="200"></APPLET>
wich is supposed to call the class :
package a.b.c;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
public class AppletStream extends Applet {
private static final long serialVersionUID = 1L;
Font font;
public void init() {
font = new Font("TimesRoman",Font.PLAIN,20);
}
public void paint(Graphics g) {
g.setFont(font);
g.setColor(Color.red);
g.drawString("Hello !",0,font.getSize());
}
}
But I've no idea where I have to put the 'AppletStream.java' file in the Maven file system...
Do you have an idea ?