Article View: borland.public.jbuilder.java.api
Article #1757Re: Changing Package Name
From: Joi Ellis [TeamB]
Date: Wed, 26 Sep 2001 13:50
Date: Wed, 26 Sep 2001 13:50
31 lines
2408 bytes
2408 bytes
Rob <"relaxedrob@optushome.com.au"> wrote: > Hi Joi! >> > C:\jdk1.3.0_02\bin\javaw -classpath "<snip>" texteditor.TextEditClass >> > java.lang.NoClassDefFoundError: texteditor/TextEditClass (wrong name: >> > TextEditor/TextEditClass) >> >> You have to rename the folder the files are in to match the renaming you >> did in the package statements. Java is case sensitive. > This is the first thing I did! Firstly I changed the directory name from > texteditor to TextEditor through Windows Explorer. Secondly I opened the > JBuilder project file and did a find-and-replace, changing all instances of > "texteditor" with "TextEditor". > Note that the error message I quoted above would seem to reflect that: it found > "TextEditor/TextEditClass" but was looking for "texteditor/TextEditClass" - I > believe there is a project setting or something similar that I also need to > change. I don't think anything in the project references specific packages. The classes path presently contains classes leftover from the original naming, and the dependency tree does as well. I'd delete the entire classes folder and everything below it, then rebuild the project. -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3bb1dd28_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!194.25.243.42.MISMATCH!news.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews!not-for-mailReferences:
<3bb174a6$1_2@dnews> <3bb1834c$1_1@dnews> <3bb1d156_2@dnews> <3bb1d6fc_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,6b279098c7aa0915
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-09-26 07:05:09 PST
Message-ID: <3bb1dd28_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Changing Package Name
Newsgroups: borland.public.jbuilder.java.api
References: <3bb174a6$1_2@dnews> <3bb1834c$1_1@dnews> <3bb1d156_2@dnews> <3bb1d6fc_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 26 Sep 2001 06:50:33 -0700
X-Trace: dnews 1001512233 209.46.41.66 (26 Sep 2001 06:50:33 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!194.25.243.42.MISMATCH!news.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews!not-for-mail