Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

Steven Armstrong

+ Follow
since Sep 06, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steven Armstrong


That tidbit of information, sir, not only did the trick, but explains FINALLY why I've had so much vexation over the years with the same issue.

IDE's ignore the CLASSPATH, and use their own! (in the case of BlueJ, it's the sub folder "lib/userlib" A golden nugget of info that should be added to the teaching of CLASSPATHs, IMHO.

Now, I can get on with learning Java.
14 years ago
You're right, I did have the CLASSPATH pointing to the folder, rather than to the .zip file.
So, here's what I did:
I removed the file from the lib\ext folder, and pasted it to my c:\Program Files\Java folder. I did not unzip the file.
I then changed the CLASSPATH to "c:\Program Files\Java\". Just to be sure, I restarted my machine.
I opened up BlueJ (My IDE of choice), wrote a stup program with a first line of "import com.javaranch.common.*; " and got the error message "package com.javaranch.common does not exist."
Next, since BlueJ is on my E: drive, I copied the file to "E:\BlueJ\lib", and edited the CLASSPATH to "c:\Program Files\Java\; E:\BlueJ\lib\ I rebooted the machine, tried to compile my stub program --- same error message.
Finally I changed the CLASSPATH to "E:\BlueJ\lib\", rebooted, recompiled, ... same thing.

I've always thought myself to be a reasonably intelligent person. What am I missing, here??

Thanks for the help thus far!
14 years ago
This is something that has always vexed me - the installation of .jar files and setting the classpath. (Not to mention JAVA_HOME, installing the JDK, JRE, etc, but that's another story)

I'm working through the tutorials -- 'scuse me, the "Cattle Drive" --. I'm up to Assignment OOP-1, wherein it tells me that I will need to get jr.jar into my classpath. According to the FAQ, it's quite alright if jr.jar is really

I've followed the directions in the FAQ. I've copied it to my "C:\Program Files\Java\jre1.5.0_03\lib\ext" folder, I've reset the classpath to point to where the .zip file is, I've unzipped the file and THEN set the classpath for it's location. I still get "package com.javaranch.common does not exist.

I've fought with this same issue with other software packages. MANY times, and I don't know what's going wrong.

PLEASE, can SOMEONE explain it to me as if I were a six-year old?

Before you laugh at me too hard, remember, Albert Einstein said "If you can't explain something to a six-year-old, you don't understand it yourself."!
14 years ago
Shoot, it took me darned near ten minutes to read yer post!
You sure you can teach me XQuery that fast??!!
14 years ago