Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 19 Jun 2011 16:27:37 -0500 Date: Sun, 19 Jun 2011 14:27:41 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.help Subject: Re: How to import - newbie question. References: <6a6f9585-5605-4041-af1a-61d7e5225cea@u7g2000yqc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 46 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.199.66 X-Trace: sv3-JGAmt009ZaG19tdkG6Ii2WHzQb3JdmlZ+Ghor3+yVDyRnbdaeX6OHNeHVgfMwDJflIjP9VC8ReQt3z4!NjkH8M+W2ziM3tuZ2etCk0W1VtH4nFBOY7A4pOw1irqUCbMtmwamCMwf4BhZOovibAy/njFAAVQQ!lI5qP71xu24axB/PbaNQpiuXU2/e1lwjVR+Weo7R8aSkcA== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2646 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:790 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, >> , >> >> 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. Patricia