From owner-freebsd-questions@freebsd.org Tue Sep 26 18:09:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69399E12B77 for ; Tue, 26 Sep 2017 18:09:43 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 330A3700DF for ; Tue, 26 Sep 2017 18:09:43 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: by mail-ua0-x22c.google.com with SMTP id 72so6991104uas.8 for ; Tue, 26 Sep 2017 11:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=O46KWA1WDQQvn9ro0gT5y9F8odVJzyY0ihLUEbHpQoA=; b=cyTJWHEMYoAKEsvWVj6sOx1YVDixgRr51Lgmky3tWDQYcQCHqV/PbhgixqfXDyDWvL wjJ49C+REs4kjiIksmFuJuKPk/1X8DiSATAT2nncSQ4Nw+WpcLLY38Ces/FgOUnvKQie +KVCwCb0/hNMVG/aXRuPrnZu7vxwzDAb5im3DUUFh5LAGDwWosy4seBxrWVJ8xiOS2lS R9GuGGqAhAW/5Pikafxmf5KXJqB0us0phyBYOb59O+wyKE9CQm+2A89Vk29njsFPft3o wsFaULdaiZN1wZVk3lU8p8/UVFdk0MHMbfEvqJGH94QF2UX9SbNodBqAJIM3TmaIPgoS lp7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=O46KWA1WDQQvn9ro0gT5y9F8odVJzyY0ihLUEbHpQoA=; b=oXdkGrSWoN9vUveKNukn7IBH3sAooGhXd26iIRQI/lkrA8BRbvPkO5cybCQzfzjZd/ zqQMyGA8lxFRuyBslQiT83DrUtdbW8U4kC5xq+nsWgB6qftVL5n1qXHU7N79t+jdW7Cu 6aPsZNNUKAeONuBDSFS/+/J4pm7krTVsvfjXtt3OdRFTogVXGeQKtg+bTtzaUzY/S6Sv rIlYf5E+m+yINOZrVd9TPyNXKLgjNRO0aQ3II88Bqgaqx3FI9m6DvhSJ5RTK+S2+6mlD 6Gq6/1HlUpq7TvIGIuaZSuvUsoB+Vgt7vRFnRSCY1CN7ATkErbECZ0NN7WGVl6GnGEvp Pd/w== X-Gm-Message-State: AHPjjUiszINKWMeJVg7DcVRKlfakvR+pSH7iq+TQc3wPTLH1ygCFCx+i IHBL5FupUehQWtw8LKm1iqbe3p7MsmD2uNpY6s/9zA== X-Google-Smtp-Source: AOwi7QAm0wegOi01jwR7lvvmuvMqU1iZc7hadVh+bFgR87ndW0ssgpztCpO8anKbZz5vz8rYHs7UJLLKp9J25ItL0Ms= X-Received: by 10.176.84.70 with SMTP id o6mr10610359uaa.73.1506449381834; Tue, 26 Sep 2017 11:09:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.48.212 with HTTP; Tue, 26 Sep 2017 11:09:41 -0700 (PDT) From: Antonio Olivares Date: Tue, 26 Sep 2017 13:09:41 -0500 Message-ID: Subject: use java to draw an accurate soccerball To: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 18:09:43 -0000 Dear FBSDusers, I have successfully compiled the code found in http://www.hoist-point.com/soccerball.htm for java by changing some things. public boolean mousePressed(Event e, int x, int y)//mouseDown public boolean processMouseEvent(Event e, int x, int y)//mouseUp public boolean processMouseMotionEvent(Event e, int x, int y) the line above changed from public boolean mouseDrag(Event e, int x, int y) because of deprecated stuff. The java program compiles, but when I try to run it to generate a true picture of soccer ball it gives the following: When I run java SoccerBall I get message: $ javac SoccerBall.java $ java SoccerBall Error: Main method not found in class SoccerBall, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application $ Any ideas how to get plain java (openjdk to generate the soccerball)? Best Regards, Antonio