Article View: borland.public.jbuilder.java.api
Article #1751Re: Changing Package Name
From: Rob
Date: Wed, 26 Sep 2001 07:24
Date: Wed, 26 Sep 2001 07:24
48 lines
2711 bytes
2711 bytes
Howdy all! I am getting all sorts of errors from manually renaming my packages.. I had to do a find and replace just to change all instances of "texteditor" to "TextEditor". Now I cannot run the project because there is a setting somewhere that makes sure the command line is the old "texteditor.TextEditClass". How can I change this?! :) This is the snipped error line when I *run* the project: C:\jdk1.3.0_02\bin\javaw -classpath "<snip>" texteditor.TextEditClass java.lang.NoClassDefFoundError: texteditor/TextEditClass (wrong name: TextEditor/TextEditClass) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) Rob "Rob" <"relaxedrob@optushome.com.au"> wrote in message news:3bb174a6$1_2@dnews... > Howdy all! > > How do I change my package names safely? > When I change their nams in the source code using JBuilder and then try to > recompile I get the error: > Warning #: 903 : error reading dependency file for package TextEditor: contains > wrong package texteditor > > > Any help would be appreciated! > > Rob > >
Technical Details
Message-ID:
<3bb1834c$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!wn4feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3bb174a6$1_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 00:37:20 PST From: "Rob" <"relaxedrob@optushome.com.au"> Newsgroups: borland.public.jbuilder.java.api References: <3bb174a6$1_2@dnews> Subject: Re: Changing Package Name Date: Wed, 26 Sep 2001 17:24:22 +1000 Lines: 50 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: <3bb1834c$1_1@dnews> X-Trace: dnews 1001489228 203.164.96.29 (26 Sep 2001 00:27:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!wn4feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews