0

I have the following code...

public class first
{
    public static void main (String[] args)
    {
        WebSpec spec = new WebSpec().safari();
        spec.safari().open("http://www.google.com"); //opens google.com in Safari
    }
}

written in eclipse.

WebSpec is underlined in red giving an error saying "cannot be resolved to be a type"
I assume this is because some of the libraries are not in the right spot?
I have tried many different things.

What do I need to do?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
Aaron
  • 53
  • 1
  • 7

1 Answers1

2

Be sure to include all .jar's included in the webspec download in your library. There are .jar's in the lib folder and also one .jar in java\dist of webspec. Eclipse allows you to import libraries by highlighting your project then Project > Properties > Java Build Path > Libraries (tab).

Chandrew
  • 16,987
  • 4
  • 24
  • 40