[Bluej-discuss] netbeans
Jobling C.P.
C.P.Jobling at swansea.ac.uk
Thu Aug 31 14:44:08 BST 2006
It sounds like your IDE creates a new unnamed source-code file (presumably
called *.java) when you open a new class window. You need to save it as
Classname.java (where Classname is the same as the name of the class [as
stated in the statement: class Classname { } in the code editor]) before you
attempted to compile it.
In BlueJ when you create a new class, it produces the correct compilation
unit file automatically (essentially the source code file).
If you are using netbeans, a better alternative might be to use the "new
project wizard" to open the BlueJ project directory inside netbeans and you
should then have complete access to the Java source files. Also, you might
like to try the "BlueJ version of Netbeans" mentioned in this mailing list
and on the BlueJ.org website. I haven't tried it myself but it is designed
to be an intermdeiate stage between BlueJ and the full-blown netbeans IDE.
Good luck
Chris
Dr Chris P. Jobling [C.P.Jobling at Swansea.ac.uk]
School of Engineering
University of Wales Swansea, Singleton park, Swansea SA2 8PP, UK.
Tel: +44 1792 295580; Fax: +44 1792 295676
WWW: www.engineering.swan.ac.uk
<http://www-ee.swan.ac.uk/DeptEEE/People/cv/cpj.html>
_____
From: bluej-discuss-bounces at bluej.org
[mailto:bluej-discuss-bounces at bluej.org] On Behalf Of caramail
Sent: Monday, August 28, 2006 2:37 PM
To: bluej-discuss at bluej.org
Subject: [Bluej-discuss] netbeans
i have written a little program which works very well if i use Bluej, if i
copy and paste this program in netbeans/bluej impossible to compile: error
message class * is public should be declared in a file named *.java. How to
do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060831/e7498c30/attachment.html
More information about the bluej-discuss
mailing list