Article View: borland.public.jbuilder.java.api
Article #561Path problems after doing a Rebuild
From: Pete Antoniak
Date: Sun, 08 Jun 2003 19:36
Date: Sun, 08 Jun 2003 19:36
91 lines
2997 bytes
2997 bytes
I am an experienced Java Programmer that recently switched from VisualCafe
to JBuilder Personnel Version. I had a lot of problems getting all the
classes to reference each other at first, but somehow I got everything to
compile and thing were going fine for the last two months. However recently
I accidentally did a "Rebuild" of the whole project and everything turned to
c**p. Almost nothing will compile now. I have struggled with this for
two days and have tried to reduce the problem to a simple test to explain
it.
I have two directories
com.edugames.games
and
com.edugames.common.
and two classes:
com.edugames.games.Base
and
com.edugames.common.D
The header to Base is
"package com.edugames.games;
import com.edugames.common.*;"
If I comment out "import com.edugames.common.*" I get the following error
in the structure panel
a.. "Variable D not found in class com.edugames.games.Base at line 37 "
So I know that the paths are correct because the IDE sees
"com.edugames.common.*."
However and when I try to do a "make" on Base I get the following error:
a.. "D.java": Error #: 901 : package COM.edugames.common stated in source
C:\CodeJB\com\edugames\common\D.java does not match directory
COM.edugames.common at line 1, column 22 "
Note that the path is now "COM.edugames.common". Could this be a DOS
thing?
If I try to compile D from the "game" Project I get:
a.. "D.java": Error #: 901 : package COM.edugames.common stated in source
C:\CodeJB\com\edugames\common\D.java does not match directory
COM.edugames.common at line 1, column 22
Just to test that I could compile D, I created a Project with a working
directory of "com.edugames.common" and was able to compile D with no
problems.
I am using Windows XP. My working directory is
C:/CodeJB/com/edugames/games.
Thanks in advance if you can help me.
Pete Antoniak
Technical Details
Message-ID:
<3ee39039$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,da0f3d1640562bd,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-06-08 12:39:03 PST From: "Pete Antoniak" <pete@edugames.com> Newsgroups: borland.public.jbuilder.java.api Subject: Path problems after doing a Rebuild Date: Sun, 8 Jun 2003 12:36:27 -0700 Lines: 93 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 216.103.213.201 Message-ID: <3ee39039$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055100985 216.103.213.201 (8 Jun 2003 12:36:25 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail