java GPolygon Constructor

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.
Joined
Jul 29, 2004
Messages
6,650
Hi Webman,

You should first download the acm.jar file from this page.
Then you adapt the compiler options of your IDE to access the classes embedded in acm.jar.
 

Webman

Thread Starter
Joined
Oct 3, 2004
Messages
167
I already have the acm.graphics package, it's just a matter of using the right syntax I think
 
Joined
Jul 29, 2004
Messages
6,650
Just try this, for example :

Code:
GPoint[] gp = new GPoint[3];    // if you want a triangle

gp[0] = new GPoint(0,0);
gp[1] = new GPoint(1,1);
gp[2] = new GPoint(2,3):

GPolygon triangle = new GPolygon(gp);
 

Webman

Thread Starter
Joined
Oct 3, 2004
Messages
167
what program are you using to compile? You might not have the latest version of java, or you are missing some of the java packages you need like the acm graphics, or the java.awt package.
 
Joined
Feb 2, 2007
Messages
5
Dell searched my computer systems and said it was completely updated. I just purchased it in Dec. Dell said I had the latest versions
 

Webman

Thread Starter
Joined
Oct 3, 2004
Messages
167
what exactly are you trying to do? I assumed that you were having the same problem as me but you never really stated clearly what you were trying to do when you got the error JRE can not be loaded. There are two things you need, one is the normal java jdk, and there is the jre, both can be found at the http://java.sun.com site.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top