🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8526

Re: CLASSPATH

#8526
From: Chris
Date: Mon, 19 Mar 2001 02:32
64 lines
3095 bytes
Have you tried setting BOOTCLASSPATH?  From my experience, CLASSPATH doesn't
appear to be used in Java 1.2.


Chris


"Harry J. Kobetitsch" <kobet@ix.netcom.com> wrote in message
news:991cm4$i8t$1@slb7.atl.mindspring.net...
> I am running Windows 2000 and I am using the Java 2 SDK and
> Forte 2.0. I also used Command Prompt and using javac from the
> command line and I get the same type of problem.
>
> I have set CLASSPATH to C:\Harry\Java
> I have the following two classes that I am trying to build
> Other.class and OtherTest.class
>
> Other.java contains:
> -----------------------------------------------
> // Creating a package
> package com.kobet.samples;
> public class Other {
>    public Other() {
>       System.out.println("com.kobet.samples.Other");
>    }
> }
>
> OtherTest.java contains:
> ---------------------------------------------------
> import com.kobet.samples.*;
> public class OtherTest {
>    public static void main(String[] args) {
>       Other o = new Other();
>    }
> }
>
> I compile Other.java and I put the resulting Other.class in
> C:\Harry\Java\com\kobet\samples
>
> When I try to compile OtherTest.java I get the following error
> messages:
>
> In Forte 2.0
> OtherTest.java [2:1] Package com.kobet.samples. not found in import.
> import com.kobet.samples.*;
>                                                ^
> 1 error
>
>
> When I use the command line I get what looks like a good compile
> of OtherTest.class but when I run
> java OtherTest
> I get the following message:
> Exception in thread "main" java.lang.NoClassDefFoundError: OtherTest
>
> Do I have the CLASSPATH set up correctly?
>
>
>
>
>
>
>
>
Technical Details
Message-ID: <kdet6.8303$Im6.949287@newsread1.prod.itd.earthlink.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
References: <991cm4$i8t$1@slb7.atl.mindspring.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,21ace6450f42c0b
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f74b3,21ace6450f42c0b
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,21ace6450f42c0b
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2001-03-18 18:38:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
From: "Chris" <NOSPAM_cochrane68@hotmail.com>
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer
References: <991cm4$i8t$1@slb7.atl.mindspring.net>
Subject: Re: CLASSPATH
Lines: 66
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <kdet6.8303$Im6.949287@newsread1.prod.itd.earthlink.net>
Date: Mon, 19 Mar 2001 02:32:48 GMT
NNTP-Posting-Host: 63.208.165.127
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 984969168 63.208.165.127 (Sun, 18 Mar 2001 18:32:48 PST)
NNTP-Posting-Date: Sun, 18 Mar 2001 18:32:48 PST
Organization: EarthLink Inc. -- http://www.EarthLink.net