Article View: borland.public.jbuilder.java.api
Article #1758Re: Changing Package Name
From: Rob
Date: Wed, 26 Sep 2001 14:48
Date: Wed, 26 Sep 2001 14:48
61 lines
3496 bytes
3496 bytes
Thanks for the advice Joi, Well, I worked it out - I deleted the classes directory and rebuilt the project - which didn't work. Finally I opened the project file itself - TextEditor.jpx.. and in there I found: <property category="runtime.0" name="application.class" value="texteditor.TextEditClass" /> and these: <file path="src/texteditor/closeFile.gif" /> <file path="src/texteditor/help.gif" /> <file path="src/texteditor/openFile.gif" /> <file path="src/texteditor/TextEditClass.java" /> <file path="src/texteditor/TextEditFrame.java" /> <file path="src/texteditor/TextEditFrame_AboutBox.java" /> I am not sure why they were there - I had changed every path I could see in Project Settings.. Anyway, once I edited these lines I could run my program again! Rob "Joi Ellis [TeamB]" <joi@aravox.com> wrote in message news:3bb1dd28_2@dnews... > 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:
<3bb1eb5e$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!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!dnewsReferences:
<3bb174a6$1_2@dnews> <3bb1834c$1_1@dnews> <3bb1d156_2@dnews> <3bb1d6fc_2@dnews> <3bb1dd28_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 08:05:10 PST From: "Rob" <"relaxedrob@optushome.com.au"> Newsgroups: borland.public.jbuilder.java.api References: <3bb174a6$1_2@dnews> <3bb1834c$1_1@dnews> <3bb1d156_2@dnews> <3bb1d6fc_2@dnews> <3bb1dd28_2@dnews> Subject: Re: Changing Package Name Date: Thu, 27 Sep 2001 00:48:30 +1000 Lines: 63 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 NNTP-Posting-Host: 203.164.96.29 Message-ID: <3bb1eb5e$1_2@dnews> X-Trace: dnews 1001515870 203.164.96.29 (26 Sep 2001 07:51:10 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!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