My Laptop Is Not Able To Run Scanner Programs In Bluej

Joined
Jun 16, 2016
Messages
1
Reaction score
0
My laptop has currently Windows 10 installed. I have installed the latest Java and blue j version but still I am not able to run scanner class programs.
Please help
 

Regedit32

Moderator
Joined
Mar 4, 2016
Messages
3,617
Reaction score
1,139
Hi and welcome to the forum.

Assuming you have compiled your Scanner program successfully, you ought to see that program in BlueJ's main window displayed with a non-shaded box.

Right-click that box and select void main(String[] arguments) to run. A method call box will pop up and by default has {} passed. Generally you can just click OK here to run, although this is subject to how you have coded your program.


Or are you attempting to run your Scanner program from a command prompt window? If that is the case the simplest thing is to first change directory to the location of your compiled Scanner program, then when in this directory enter the command java name of scanner program without the extension. For example if your program is named ScannerDemo.java then to run from command window type java ScannerDemo then press Enter key


Are you getting any specific errors when you attempt to run your Scanner program?

Can you upload the program to the forum. I could take a look to see if there is any code issues.

Are your environment variables set up in Windows 10 (i.e. PATH and CLASSPATH)?

When you installed the latest BlueJ for windows, did you choose the bundled version that comes with JDK 8, or just the actual Blue J program itself? You do need Java Development Kit (JDK) at a minimum installed also to be able to use BlueJ.


Regards,

Regedit32
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top