Article View: borland.public.jbuilder.java.api
Article #1756Re: Changing Package Name
From: Rob
Date: Wed, 26 Sep 2001 13:21
Date: Wed, 26 Sep 2001 13:21
20 lines
1867 bytes
1867 bytes
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. Rob
Technical Details
Message-ID:
<3bb1d6fc_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-austin!propagator!feed2.newsfeeds.com!newsfeeds.com!news-in-austin.nuthinbutnews.com!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3bb174a6$1_2@dnews> <3bb1834c$1_1@dnews> <3bb1d156_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 06:25:05 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> Subject: Re: Changing Package Name Date: Wed, 26 Sep 2001 23:21:32 +1000 Lines: 22 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: <3bb1d6fc_2@dnews> X-Trace: dnews 1001510652 203.164.96.29 (26 Sep 2001 06:24:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-austin!propagator!feed2.newsfeeds.com!newsfeeds.com!news-in-austin.nuthinbutnews.com!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews