Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.help Subject: Re: How to import - newbie question. Date: Tue, 21 Jun 2011 00:53:01 -0400 Organization: A noiseless patient Spider Lines: 41 Message-ID: References: <6a6f9585-5605-4041-af1a-61d7e5225cea@u7g2000yqc.googlegroups.com> <7af6f915-6b3c-4f74-ac90-e8e6311ddf9a@b21g2000yqc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 21 Jun 2011 04:48:04 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="yplGUUrGzpiV4sv58weMcA"; logging-data="27126"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+A1SAklZq7wQMKGAh7xrBdrLbEJo0y0LE=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <7af6f915-6b3c-4f74-ac90-e8e6311ddf9a@b21g2000yqc.googlegroups.com> Cancel-Lock: sha1:sYnVCjoDAVKDeuSw49BBLqoNiGc= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:798 On 06/20/2011 09:33 PM, leegold wrote: > Hi, > > I'm now trying it on windows XP. Here's the error message: > > C:\Documents and Settings\user1\My Documents\java>javac htmlunit1.java > htmlunit1.java:3: package com.gargoylesoftware.htmlunit does not exist > import com.gargoylesoftware.htmlunit.WebClient;→ > ^ > 1 error > > ---- > > The source is just one line I try: > > import com.gargoylesoftware.htmlunit.WebClient; > > ---- > > In my path I put: > > C:\htmlumit\lib; > > that's the path to the jar files.. try javac -cp C:\htmlunit\lib\* htmlunit1.java > > Normal javac works for any default included classes in java OK. I am > using Windows XP. I know this is basic but everything I've tried so > far > hasn't worked. Thanks. > > If i can get that one line to work then it'll all work. I'm not going > to press too hard for a spoon fed answer, I'll eventually figure it > out... > > Lee G. > >