Need help with BlueJ

th3dumbguy

Senior member
Feb 4, 2005
242
0
0
ok i have a programming contest my teacher entered me into (as part of a 5 person team) to go to tomorrow. the problem is the people hosting the contest suggests that we use BlueJ and i dont know how to use the dam program...

At school, we use jcreator and jj2.

my question to you pros is: How the heck to i execute my code? you know, get it to appear in that black screen and get ready to accept my input and give me an output?

in jcreator, i just click the compile button and execute button and voila, it runs. in jj2 i click one button and it compiles and executes itself.

In BlueJ i see the compile button, but wheres the execute button?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
If you are going to a programming contest, I would suggest some kind of editor that does syntax highlighting and just using the command prompt to compile run.

javac Problem.java
java Problem

BlueJ is the suck, I had a class where we were required to use it :(. It's horrible IMO, I ended up just using nano and a simple script file I wrote to clean, compile and run my programs everytime, of course that was in linux.
 

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0
ya i don't like bluej, but it's what they use at school. Did you create your java files under bluej or are you trying to open previously written java files under bluej? Assuming the first, once you see the UML boxes (representing classes or interfaces) on the IDE you can right click those boxes for an option menu. it should say something to the effect of:

you constructor(s)
open editor
compile
inspect
remove
create test class

to execute, just run the constructor of that class which you want to execute. Hope that helps. and ya, bluej sucks.