How to load some java jar library files

Has anyone redirected an application using the Java AWT library to run on Android? How do you do this? I use these packages.

java.awt.AWTException; java.awt.Robot; java.awt.Rectangle; java.awt.Toolkit; java.awt.image.BufferedImage; java.io.*; javax.imageio.ImageIO; 
+3
java android
source share
2 answers

Download the AWT jar here: http://duckduckgo.com/?q=!jar+awt

rt.jar (in your JDK setup) has the java.awt package. It has all major Java packages.

Try this in android: http://code.google.com/p/awt-android-compat/

0
source share

all of these classes are part of the standard JDK. http://download.oracle.com/javase/6/docs/api/

What type and version of Java are you using?

+1
source share

All Articles