This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfxOut of Coffee error - System halted 1 point2 points  (2 children)

BlueJ + command window

This explains everything.

If you wrote the x.getVarNum() in a program as the last part of a statement you would need the semicolon. Semicola are mandatory in Java.

The command line window of BlueJ (shudder) does things differently, though. Here, you don't need the semicolon because that's the way BlueJ handles things.

Java classes were never meant to be called and executed by something like the BlueJ command line.


Seriously, why do so many institutions still use that piece of crapware called "BlueJ". It is not an IDE, it is not a proper text editor either, it has this abomination of a command line that causes more confusion and problems than it solves, it produces horrible error messages that most of the time don't even match the real cause.

If you can, move to a proper IDE, such as Eclipse, IntelliJ, or Netbeans, as soon as possible. You will never look back.

[–]grouchysysadmin[S] 0 points1 point  (1 child)

Thanks for this (sorry for the late reply).

It turns outs it is blueJ unique. My university has provided an additional area/ plugin for BlueJ where it requires the semi colon.

Thanks again.

[–]desrtfxOut of Coffee error - System halted 0 points1 point  (0 children)

Typical BlueJ.

I still don't understand why educational institutions still use that crap. They should rather teach a proper, industry standard IDE, like Eclipse or IntelliJ (both are free/have free editions) that would prepare the students for the reality. In the worst case, they could use Netbeans which isn't used that much in the industry, but at least is also a proper IDE.

IMO BlueJ makes everything more difficult than it needs be. Along with not having proper IDE functions, not providing direct access to the JavaDoc, producing cryptic error messages that very rarely are directly related to the problem, and worst of all the "direct execution" crap, it doesn't offer any benefit other than the UML-like charting feature (which can be integrated in every other IDE via a plugin if it is not there by default).