Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2004

Tip: Looking for answers? Try searching our database.

JBuilder / BlueJ question

Thread view: 
zcraven - 01 Nov 2004 21:03 GMT
When I open my java files (made in BlueJ) in JBuilder, it gives loads of
errors:

'cant resolve symbol [myclass] in class [other_myclass]?

Basically it doesnt like any of the classes that I defined myself.  How can
I stop this from happening?  I know the code is fine cos I can run it fine
from BlueJ or command prompt.
Bill Joy - 02 Nov 2004 02:40 GMT
My guess is that you are just opening these files at random without defining
a project.

Assuming you only have the free Foundation version, start out doing File |
New Project.  Go to Project | Project Properties | Paths and on the Source
tab add the root of your source tree, mark it as Default using the
radiobutton, then OK.

You should then be able to see your source in the Project pane.  Do Project
| Make for a compilation.

> When I open my java files (made in BlueJ) in JBuilder, it gives loads of
> errors:
[quoted text clipped - 5 lines]
> I stop this from happening?  I know the code is fine cos I can run it fine
> from BlueJ or command prompt.
zcraven - 02 Nov 2004 10:37 GMT
Thanks - I did that, but now it seems to only show 'stub' files instead of
all the code.

Also, when I click 'run project' nothing happens.

Zac

> My guess is that you are just opening these files at random without defining
> a project.
[quoted text clipped - 16 lines]
> > I stop this from happening?  I know the code is fine cos I can run it fine
> > from BlueJ or command prompt.
Bill Joy - 03 Nov 2004 02:51 GMT
Things might be easier if you just got familiar with projects first.  Do
something like File | New Project, then File | New | General | Application,
then Run | Run Project.  (Look at Project | Project Properties | Paths and
at Run | Configurations afterwards.)

Some guesses about your problems:

(a) Are you seeing a <Project Source> node in the Project pane?  When you
expand that tree node, are you seeing your source?  If not then your project
source path is not set correctly.

(b) Are you keeping your source and compiled classes in separate
directories?  If not, then that might be confusing things.  If you have
classes and source mixed together, then delete the classes.  Make sure your
project output path is configured for a separate directory tree than your
source.

(c) When you are ready to run for the first time, you ought to go to Run |
Configurations.  Tell it that you have an Application and the class where
the main() method is located that you want to use as an entry point.
Alternatively, you can just right-click on the class with the main() and
choose Run from the context menu.

> Thanks - I did that, but now it seems to only show 'stub' files instead of
> all the code.
>
> Also, when I click 'run project' nothing happens.
>
> Zac


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.