Export Processing sketch to Java app

This project was awarded to charlse for $30 USD.

Get free quotes for a project like this
Project Budget
$30 - $100 USD
Total Bids
Project Description

I have a Processing sketch which works great on my system but I cannot successfully export to Java application for PC and Mac.

I need someone familiar with exporting from Processing -- and with Java imports and jars -- to help me export to a distributable app.

The sketch follows FOR REFERENCE ONLY. This is sufficient to understand the project but NOT to complete it. You'll need, at minimum, a couple of jars from



import [url removed, login to view];

import ddf.minim.*;

Minim minim;

AudioSnippet player;

Capture cam; // declare the capture object

[url removed, login to view] reader = new [url removed, login to view]();

int WIDTH = 400;

int HEIGHT = 400;

void setup() {

size(400, 400);

minim = new Minim(this);

player = [url removed, login to view]("[url removed, login to view]");

String[] cameras = [url removed, login to view]();

if ([url removed, login to view] == 0) {

// println("There are no cameras available for capture.");


} else {

// println("Available cameras:");

for (int i = 0; i < [url removed, login to view]; i++) {

// println(cameras[i]);


// cam = new Capture(this, WIDTH, HEIGHT); // hmmm...

cam = new Capture(this, cameras[0]);

[url removed, login to view]();



void draw() {

if ([url removed, login to view]() == true) {

[url removed, login to view]();

image(cam, 0,0);


line( 80, 80,120, 80); line( 80, 80, 80,120);

line(280, 80,320, 80); line(320, 80,320,120);

line( 80,280, 80,320); line( 80,320,120,320);

line(320,280,320,320); line(280,320,320,320);

try {

//Create a bufferedimage

BufferedImage buf = new BufferedImage(WIDTH,HEIGHT, 1); // last arg (1) is the same as TYPE_INT_RGB

[url removed, login to view]().drawImage([url removed, login to view](),0,0,null);

// test to see if image contains a QR code

LuminanceSource source = new BufferedImageLuminanceSource((BufferedImage)[url removed, login to view]());

BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));

Result result = [url removed, login to view](bitmap);

// if result, we can do some display

if ([url removed, login to view]() != null) {

[url removed, login to view]();

[url removed, login to view]();

open([url removed, login to view]()); // Note: open() not supported in JS mode

delay(2000); // delay to avoid multiple reads of same image


} catch (Exception e) {

// println([url removed, login to view]());




Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online