How to deploy applet?

I created a small applet and I have all the files of the .java class. How can I now compile / build it so that I can use it in a tag <applet>? It is best to use an eclipse-based method.

In addition, I use some images in the applet.

1) Do I need to upload these images to my site

2) Now I point to them using my local path, for example, C:\java\project\imagesbut all of it is stored in 1 class, so I can easily change this line if I want. What should I change for it to work in a web browser?

3) Do I need to download all .class files?

+3
source share
2 answers

jar.

, , -, .

jar, , Class.getResourceAsStream(...)

, URL.

+2

, ! . .

. HTTP . , C:! , , - , ​​ .

Eclipse Ant, , , , . HTML- , -.

+4

Source: https://habr.com/ru/post/1704403/


All Articles