Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #798

Re: How to import - newbie question.

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.help
Subject Re: How to import - newbie question.
Date 2011-06-21 00:53 -0400
Organization A noiseless patient Spider
Message-ID <itp7q4$qfm$1@dont-email.me> (permalink)
References (4 earlier) <itlssr$jfc$1@dont-email.me> <itlthd$nc8$1@dont-email.me> <kM2dnfaDhOSdL2PQnZ2dnUVZ_jednZ2d@earthlink.com> <itngjc$e7n$1@dont-email.me> <7af6f915-6b3c-4f74-ac90-e8e6311ddf9a@b21g2000yqc.googlegroups.com>

Show all headers | View raw


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.
>
>

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to import - newbie question. leegold <goldtech@worldpost.com> - 2011-06-18 21:41 -0700
  Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-19 07:05 -0400
    Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-19 07:48 -0400
      Re: How to import - newbie question. Patricia Shanahan <pats@acm.org> - 2011-06-19 14:27 -0700
        Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-19 18:28 -0400
          Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-19 18:39 -0400
            Re: How to import - newbie question. Patricia Shanahan <pats@acm.org> - 2011-06-19 19:35 -0700
              Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-20 09:10 -0400
                Re: How to import - newbie question. leegold <goldtech@worldpost.com> - 2011-06-20 18:33 -0700
                Re: How to import - newbie question. Patricia Shanahan <pats@acm.org> - 2011-06-20 19:29 -0700
                Re: How to import - newbie question. Lew Bloch <lewisbloch@google.com> - 2011-06-21 14:35 -0700
                Re: How to import - newbie question. Jeff Higgins <jeff@invalid.invalid> - 2011-06-21 00:53 -0400
  Re: How to import - newbie question. Roedy Green <see_website@mindprod.com.invalid> - 2011-06-20 02:22 -0700

csiph-web