πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Welcome to the classpath nightmare.

#8449
From: Ben Matterson (Borland)
Date: Wed, 21 Mar 2001 22:50
49 lines
3014 bytes
I am working on a simple FTP server and client, I need to be able to
test by running the two apps in different DOS windows in different
directories. (Otherwise I won't if I am really transferring a file or
not.) I don't know how to simulate this in JBuilder, so I am going to
the command line to do it.

No matter what I do, I cannot run my applications from the command
line. I always get NoClassDefFoundError. This would seem to be a
classpath issue, but I think I have tried every possible combination
of classpath, package and class name, and directory location possible,
with no success.

The class says "package ftpserver;" at the top
The class is d:\javaprojects\advtpc\svrtest\ftpserver\FTPServer.class
If I park myself in D:\javaprojects\advtpc\svrtest and try just "java
ftpserver.FTPServer" it fails.

If I  use "java -classpath d:\javaprojects\advtpc\svrtest
ftpserver.FTPServer" it fails.

NoClassDefFoundError in thread main

I *hate* fighting the tools rather than fighting the code errors and
bugs. >:(

Ben
-- 
InterBase Technical Support
Borland Software Corp.

And now a word from Legal and Marketing...

This e-mail, and any attachments thereto, is intended only for
use by the addressee(s) named herein and may contain legally
privileged and/or confidential information. If you are not the
intended recipient of this e-mail, you are hereby notified that
any  dissemination, distribution or copying of this e-mail, and
any attachments thereto, is strictly prohibited. If you have
received this e-mail in error, please immediately and permanently
delete the original and any copy of any e-mail and any printout
thereof.

Accelerate your LinuxοΏ½ application development with Kylix(TM),
the RAD tool for Linux. Easily integrate web, desktop and database
development to quickly deliver fast Linux applications. Kylix is
the only Linux development tool that combines the world's fastest
compiler with the most productive visual design environment for
GUI, web and database programming. Order your copy now!
http://www.borland.com/kylix/
Technical Details
Message-ID: <3AB9302F.EB317FC5@borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!10.143.12.142

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,d485954ca40d4b55
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-23 04:04:05 PST
Message-ID: <3AB9302F.EB317FC5@borland.com>
Date: Wed, 21 Mar 2001 14:50:23 -0800
From: "Ben Matterson (Borland)" <bmatterson@borland.com>
Organization: Borland Software Corp
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Welcome to the classpath nightmare.
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 10.143.12.142
X-Trace: 21 Mar 2001 14:50:22 -0800, 10.143.12.142
Lines: 49
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!10.143.12.142