(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) Compiler :
JBuilder won't compile just one file. No matter what, it compiles more stuff than I want. How can I make JBuilder compile only the file I want compiled?
You can't.

JBuilder's build system uses a package model, not a file model. When you ask it to make or build a single file from the project pane, JBuilder will compile that file, but it will also inspect its dependency information and may well compile more files. These can include classes which extend or use the target class, both within the target package and outside.

JBuilder does this to ensure that changes made within the target class will not break other classes which use the target. Sun's javac compiler does not make this check for you.

Because JBuilder uses a package model, it will notice every java file in a package and compile everything in that package.
2001-Jun-12 11:54pm gyles19@visi.com

There is an OpenTool called CompileFile which allows to do that by using javac or jikes. Before using CompileFile, just make sure, that you added the access paths to javac or jikes to your system path environment variable. In order to get CompileFile see:
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=15463

Valentino Kyriakides
2001-May-06 3:52am vkyr@ision.net

[Append to This Answer]
2001-Jun-12 11:54pm
Previous: (Answer) Where can I find a complete list of JBuilder4 compiler error messages?
Next: (Answer) I want to compile my Java application into .exe (or some other native binary form.) How do I do this with JBuilder?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=158
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]