Trash the java tried solution