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