Hi Jim and Jim -- I tried the following: placing swt.jar and fruit.java in the same directory then typing javac swt.jar fruit.java What I got was an error that org.eclipse.swt and all its derivatives did not exist, so the import statements at the beginning of fruit.java all failed and practically every line after that had "undefined" errors. I put the jar first on the command line hoping the package would be loaded from there, but that didn't help. So how do I get javac to use what's in the jar file? Thanks. --le ----- Original Message ----- From: "Homme, James" <james.homme@xxxxxxxxxxxx> To: <program-java@xxxxxxxxxxxxx> Sent: Tuesday, September 21, 2010 11:59 AM Subject: [program-java] Re: java compilation Hi Laura, Is it in the directory with your source files? And are you compiling from the command line? If so, what's the command line. What is your path? Thanks. Jim Jim Homme, Usability Services, Phone: 412-544-1810. Skype: jim.homme Internal recipients, Read my accessibility blog. Discuss accessibility here. Accessibility Wiki: Breaking news and accessibility advice -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of qubit Sent: Tuesday, September 21, 2010 12:58 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: java compilation no, actually, I have a login on John's machine so as to be able to work on either or both windows and linux. My base machine is windows. So the one I'm using on linux is John's. I copied swt.jar to my javafun directory with the fruit.java program. I haven't tried john's suggestion of using the -classpath flag, however, since I had copied the .jar file to my own directory, I figured it was in my classpath by default. It still doesn't compile. --le ----- Original Message ----- From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx> To: <program-java@xxxxxxxxxxxxx> Sent: Tuesday, September 21, 2010 7:26 AM Subject: [program-java] Re: java compilation Well, I'm assuming that you are refering to SWT-Win32-3235.dll? Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of qubit Sent: September 20, 2010 20:07 To: java list Subject: [program-java] java compilation Greetings all -- I am finishing reading the java-in-a-nutshell book and have as yet not done much hacking. Now I have a really silly question... I am looking over Jamal's fruitbasket program, which is slick and elegant if you haven't taken time to read it -- the whole program is under 200 lines and uses the swt library for the GUI. But I am having the most annoying time trying to compile it. The file itself compiles fine, but even though I have a copy of swt.jar to link into it, the javac compiler keeps rejecting it. I tried putting a symbolic link to the class tree, which is on linux in John Boyer's account, but it still tried compiling everything as if all the class files were out of date, and failed because I didn't have permissions in that directory. Question: what do I do to suppress compilation of a library that is in my classpath? If I put swt.jar on the compiler's command line, I assume it should use the class defs from there and not go around recompiling everything. Thanx in advance. --le This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark Inc., its subsidiaries, or affiliates.