Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years ago.
How to run a java code on mbed?
I wrote this code in matlab when i execute it in matlab captures active screen and saves it as a "jpg" file. It uses some functions of java. How to make it compatible with mbed compiler?
robo = java.awt.Robot; t = java.awt.Toolkit.getDefaultToolkit(); rectangle = java.awt.Rectangle(t.getScreenSize()); image = robo.createScreenCapture(rectangle); filehandle = java.io.File('screencapture.jpg'); javax.imageio.ImageIO.write(image,'jpg',filehandle); y=filehandle; y=imageview('screencapture.jpg');
So an mbed should capture your computer screen without special drivers running on the computer?
posted by Erik - 20 Nov 2012