Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

CLASSPATH appears to be ignored

Thread view: 
Stephen Jeffrey - 14 Jun 2005 07:13 GMT
Hi,

I wish to import the contents of a package:

import com.hp.hpl.jena.rdf.model.*;

but get the following compiler error:

>> javac test.java

test.java:15: package com.hp.hpl.jena.rdf.model does not exist
import com.hp.hpl.jena.rdf.model.*;

The com.hp.hpl.jena.rdf.model stuff appears to be in a file
called jena.jar. Setting the CLASSPATH environment variable
to the directory where "jena.jar" is does not fix the
problem. I'm trying this on a linux PC.

Does anyone know what the problem could be?

cheers
steve
JScoobyCed - 14 Jun 2005 07:39 GMT
> Hi,
>
[quoted text clipped - 18 lines]
> cheers
> steve

Just to clear out a simple question: shouldn't it be:

javac -cp $CLASSPATH test.java

(I am not sure that setting the environment CLASSPATH value works... I
might be wrong :) )

--
JSC
Thomas Weidenfeller - 14 Jun 2005 08:19 GMT
> I wish to import the contents of a package:
>
[quoted text clipped - 6 lines]
> test.java:15: package com.hp.hpl.jena.rdf.model does not exist
> import com.hp.hpl.jena.rdf.model.*;

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq

Fred L. Kleinschmidt - 14 Jun 2005 15:42 GMT
> Hi,
>
[quoted text clipped - 18 lines]
> cheers
> steve

Put the jar file in the classpath, not the directory containing the jar
file.

Signature

Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94  (206)544-5225
#! rnews 2710
Xref: xyzzy sci.energy:132733 sci.energy.hydrogen:81119
Newsgroups: alt.org.sierra-club,alt.politics.democrats,alt.politics.europe,sci.energy.hydrogen,sci.energy
Path: xyzzy!nntp
From: "Fred McGalliard" <frederick.b.mcgalliard@boeing.com>
Subject: Re: The American Public Broadly Opposes Building New Nuclear Power Plants
X-Nntp-Posting-Host: e056750.nw.nos.boeing.com
Message-ID: <II2x4F.A0A@news.boeing.com>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Priority: 3
X-Msmail-Priority: Normal
Lines: 32
Sender: nntp@news.boeing.com (Boeing NNTP News Access)
Organization: The Boeing Company
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
References: <90dha1hjiss0ps9nsu4t1r5a25f07l0o8n@4ax.com>   <1118418074.871835.70520@g47g2000cwa.googlegroups.com>   <1118547526.541321.274710@g47g2000cwa.googlegroups.com>   <1118550431.684509.247850@f14g2000cwb.googlegroups.com>   <1118606070.813292.152600@g44g2000cwa.googlegroups.com>   <_U2re.552$yg4.251@news01.roc.ny> <1118625530.276351.195060@f14g2000cwb.googlegroups.com> <3Ykre.628$yg4.26@news01.roc.ny> <ra1sa15248ts3s5g389g45riq5ep07g18j@4ax.com> <6Aore.658$yg4.19@news01.roc.ny> <ir7sa113g44h5s79c91
Date: Tue, 14 Jun 2005 14:48:15 GMT

...
> Ok, I didn't snip anything.

You should have. The prior post is still there, at least in my browser, and
I do not need to read throught the whole thing again just to get to your
comment. I suggest carrying only enough to make it clear to the reader which
portion of the prior post you are responding to, and assume the reader has
read, or if interested will read, the prior post for any missed detail. Some
folk like to complain that their posts are truncated, but this plaint is
valid only if you truncate it in such a way as to make it say something
different than intended.

...
> > Tell that to the creatures which live around the power plant.
>
> You are kidding, right? The equivalent capacity in coal with practically
> the same heat dumped will now make all the little creatures happy and
> chipper? Talk about reaching...

I suggest he talk to the creatures that live down wind of the coal plants,
or perhaps down stream of the ash heaps. This kind of talk is just silly.
The only reason humans care is that we live a relatively long time so a few
REM can, potentially, slightly increase our chance of getting cancer, that
is if we do not smoke, do not work with insecticides, or make our living by
other risky means. An animal with a 20 year life span is not likely to
notice the nuke, but will be bummed out by the excess acid and crap from a
coal plant. Too bad they can't talk, eh?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.