Eclipse Acting Up

Recently, I switched from a Mac to a PC. I thought that I set up Eclipse correctly but every time I exit out of a JFrame, Eclipse spits out an error at me.

Unable to open SCSI controller 0:[] , error code: 0x5
Unable to open SCSI controller 1:[] , error code: 0x5

I’ve tested this on other projects that use a JFrame, but it still does the same thing. This is my code if it is relevant to this problem:

package src.longarmx.rts;

import java.awt.Dimension;

import javax.swing.JFrame;

public class Frame {
	
	public static int width = 800;
	public static int height = 600;

	public static void main(String[] args) {

		Dimension size = new Dimension(width, height);
		
		JFrame frame = new JFrame(); 
		
		frame.setTitle("RTS Game");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize(size);
		frame.setResizable(false);
		frame.setLocationRelativeTo(null);
		frame.setUndecorated(true);
		
		Screen s = new Screen(frame);
		frame.add(s);
		
		frame.setVisible(true);

	}

}

I don’t know if it helps, but I am running a 64-bit eclipse and I haven’t messed with the Java Path variable at all.

Thanks,

Longarmx

This is what I got on googleing:

Some comment at the botton says, there would exist a problem with the hard disk?!?

One thing though:
It sounds strange as I never had to do this before any other Java2D JFrame projects, but with my last project I had an issue with setVisible(true);
It helped to write it like that:


SwingUtilities.invokeLater(new Runnable() {
    public void run() {
        setVisible(true);
    }
});

But thats kind of off-topic. It won’t fix it, I’m sure.

EDIT:
Also, I tested it, and it works for me…
I had to remove line 25 and 26 though… :wink:

Very odd… might be an error message coming from the OS.

I’d back up your files NOW!

Are you guys saying that something is wrong with the operating system or is it a virus possibly? This is a week old computer so I don’t think that anything could have gone wrong yet. This error came up 2 days after the computer arrived and eclipse was one of the first things I ran.

Is the problem only in Eclipse? Or does it occur from command-line compilation too?

My best guess is that Eclipse or a plugin is trying to find out the disk’s serial number for some reason, and it isn’t able to because the of admin rights. Try running Eclipse with full administrative rights (or disable the admin control) to see if that changes anything.

Also try updating Eclipse to the latest version, if you haven’t already.

@davedes I tested it and Eclipse is the only problem.

I am the admin so I have all of the administrative rights.

Eclipse is the updated to the current version.

Just because you’re on an administrator account does not mean that the program is being “Run as Administrator”. Right click the .exe and select that option, then tell us.

Also, you said that it’s a new computer? What type of AV does it have? Because I’ve had some lovely AV issues where it blocked operations on programs, went fun with temporary files and the like.

Concerning AV: Microsoft Security Essentials should be the only AV everyone uses :slight_smile:

Right now I am using norton antivirus and everything has been confirmed safe except for one program: http://www.java-gaming.org/topics/looking-for-beta-testers-for-a-fps-i-am-developing-help-needed/26475/view.html The issue was happening before I downloaded this though and I would trust that program. Currently I am backing up all of the files. Should I then delete everything from the computer and then re-install the os?

See if you can make your AV ignore the files that you’re trying to run, then try to run it.

Always try a bunch of other things first. Unless you don’t have a lot of stuff on your computer and don’t mind a factory restore.

Does it give you this error when you package the app and run it outside of Eclipse?

I find a lot of Eclipse problems are solved by reinstalling Eclipse. Eclipse suffers from bit rot like nothing else.

@sproingie I have ran this program outside of eclipse but where do you get the errors if there are any? Also, I re-downloaded eclipse and I still get the same error.

The error message looks more driver related than Eclipse related. Just a hunch. Eclipse (or indeed Java) cannot open SCSI controllers.

Cas :slight_smile: