Skip to content

Instantly share code, notes, and snippets.

@hsak
Created December 13, 2008 07:21
Show Gist options
  • Save hsak/35421 to your computer and use it in GitHub Desktop.
Save hsak/35421 to your computer and use it in GitHub Desktop.
<html>
<title>Hello World Applet</title>
<body>
<applet code="app" archive="app.jar" width=100 height=100>
</applet>
</body>
</html>
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)
}
}
-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
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