Created
December 13, 2008 07:21
-
-
Save hsak/35421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title>Hello World Applet</title> | |
<body> | |
<applet code="app" archive="app.jar" width=100 height=100> | |
</applet> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt._ | |
import java.applet._ | |
case class HelloWorld() | |
class app extends Applet { | |
override def paint(g:Graphics) { | |
val hoge = HelloWorld() | |
g.drawString(""+hoge, 20, 20) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-dontusemixedcaseclassnames | |
-dontoptimize | |
-injars app.jar;'c:/Program Files/Scala/lib/scala-library.jar'(!META-INF/MANIFEST.MF,!library.properties) | |
-outjars app.jar | |
-libraryjars <java.home>/lib/rt.jar | |
-keep public class app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call scalac app.scala | |
jar cvfM app.jar *.class | |
java -jar proguard.jar @app.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment