Article View: borland.public.jbuilder.java.api
Article #1192Getting someone else's JAVA files to compile
From: Craig Pugsley from iBook
Date: Thu, 25 Apr 2002 12:10
Date: Thu, 25 Apr 2002 12:10
32 lines
2313 bytes
2313 bytes
Hi everyone. I am trying to build someone else's application to work on Mac OSX, but I can't seem to get the source code to compile in JBuilder 6. The package I got from this other person has compiled class files and source code. I've tried running it from the class files, but keep getting a java error saying it can't find the classdeffile or something. Anyway, I decided to try and import the source code to JBuilder and let JB sort out the fiddly Java crap. Anyway, here's what I did: 1) Created a new project 2) The source files came in two separate directories, so I created two folders in my project (called the same as the folders on disk) and imported the sources into these folders. 3) I set the Application's main class to the file with the main method in it 4) I try to compile the source Obviously, it doesn't work and I hundreds of errors all in the form: "BCKBrain.java": Error #:300 : class BCKRecord not found in class BCK.ANN.BCKFiler at line 80, column 9 However, when I browse classes, there it is sure enough 'BCKFilter' just where it should be. After a little more investigation, I found that JB had compiled SOME of the source code files, but not all of them . Does it have something to do with the file structure? Does the file structure dictate the package name in any way. E.g. do I have to have a class that is in the package 'BCK.ANN' in the folder 'BCK/ANN/'? Any help on this one would be very greatly appreciated. Thanks!
Technical Details
Message-ID:
<cbb7d7cd.0204250410.250c1df1@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,d7b2e5c952b2ef7,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-25 05:10:40 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: cpugsley@bigfoot.com (Craig Pugsley from iBook) Newsgroups: borland.public.jbuilder.java.api Subject: Getting someone else's JAVA files to compile Date: 25 Apr 2002 05:10:39 -0700 Organization: http://groups.google.com/ Lines: 32 Message-ID: <cbb7d7cd.0204250410.250c1df1@posting.google.com> NNTP-Posting-Host: 62.255.0.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1019736640 522 127.0.0.1 (25 Apr 2002 12:10:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Apr 2002 12:10:40 GMT