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


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

Re: How to import - newbie question.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.help
Subject Re: How to import - newbie question.
Date Sun, 19 Jun 2011 18:39:14 -0400
Organization A noiseless patient Spider
Lines 57
Message-ID <itlthd$nc8$1@dont-email.me> (permalink)
References <6a6f9585-5605-4041-af1a-61d7e5225cea@u7g2000yqc.googlegroups.com> <itkkst$c8a$1@dont-email.me> <itkncf$qua$1@dont-email.me> <m6SdnXvYs6xX9GPQnZ2dnUVZ_gOdnZ2d@earthlink.com> <itlssr$jfc$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 19 Jun 2011 22:34:22 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="yplGUUrGzpiV4sv58weMcA"; logging-data="23944"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ktwBUKoEx44DnCEFcBA0o9K9Lp79UsD4="
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 <itlssr$jfc$1@dont-email.me>
Cancel-Lock sha1:fijhEExOLr0fNm12Hhpmt1OjoyQ=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.help:792

Show key headers only | View raw


On 06/19/2011 06:28 PM, Jeff Higgins wrote:
> On 06/19/2011 05:27 PM, Patricia Shanahan wrote:
>> On 6/19/2011 4:48 AM, Jeff Higgins wrote:
>>> On 06/19/2011 07:05 AM, Jeff Higgins wrote:
>>>> On 06/19/2011 12:41 AM, leegold wrote:
>>>>> Hi,
>>>>>
>>>>> I wondered if anyone could help with what probably is very basic
>>>>> configuration. I want to explore a java app called htmlunit. I
>>>>> downloaded the zip and took all the (jar) files from the zip's lib
>>>>> folder and put them in the directory: /home/myhome/htmlunit. I'm using
>>>>> Linux...I have tried for a long time to import them into a java
>>>>> program with no luck. I have read many tutorials about packages,
>>>>> classpath still no luck. Here are are the files. How do I import them
>>>>> and use them , I'm lost:
>>>>>
>>>> The "no luck" part is unhelpful.
>>>>
>>>> Prepare a short example source file,
>>>> <http://sscce.org/>,
>>>>
>>>> try to compile it,
>>>>
>>>> post back here with your command line and any error messages.
>>>>
>>>>
>>>
>>> A SSCCE:
>>>
>>> package scratch;
>>>
>>> import org.apache.commons.logging.Log;
>>> import org.apache.commons.logging.LogFactory;
>>>
>>> public class Scratch {
>>>
>>> private Log log = LogFactory.getLog(Scratch.class);
>>>
>>> }
>>>
>>> A command line to try:
>>> javac -classpath /home/myhome/htmlunit/commons-logging-1.1.1.jar
>>> Scratch.java
>>
>> You seem to have missed the "and any error messages". More generally,
>> even if there are no error messages, you should say what happened.
>>
>
> No, I posted the line, "post back here with your command line and any
> error messages.".
> When I attempted to compile the above SSCCE with the command line:
> javac -classpath /usr/share/java/commons-logging.jar Scratch.java,
> it compiled without error.
>
>
And yep, it was a reply to my own post. :)

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