Detecting Virus Scanners
We've had problems with a virus scanner murdering the performance of our app by slowing down writes to an H2 db. So we'd like to be able to detect the presence of any virus scanner and alert the user of the potential problem. It would be part of a problem detection retue that would alert users to known performance factors specific to their systems.
The current suggestion is a write test that displays the warning if a disk write takes an unreasonable amount of time. That does get to the actual problem, but not to the cause. So, is there any reliable and direct way to detect virus protection, one that doesn't rely on indirect effects? We might end up doing both, but it would be nice to be curtain in our 'suggestions'.
Asked by: Anna922 | Posted: 21-01-2022
Answer 1
On Windows Vista, MS added some API calls to allow you to query the status of the Windows Security Centre, which should tell you if A/V software is installed. Obviously this is not a particularly generic solution, nor a Java-based one, but it's the only way I can think of, short of attempting to install a virus. Um - don't do that!
Answered by: Lucas308 | Posted: 22-02-2022Answer 2
Cant you tell the virus scanner to not scan the H2 DB files or at least scan them differently?
It sounds like you are going to a lot of trouble to work around something that may be more directly fixable. (believe me... Mc Afee used to put my workstation into Lockdown when i started debugging sometimes. I changed to AVG and it doess better.)
Answered by: Anna482 | Posted: 22-02-2022Similar questions
netbeans - Detecting Java Project Cruft
I'm a NetBeans 6.5 user and am searching for a way of generating a list of methods/classes that are not used within a set project group.
I know I can right click on each method and select "Find Usages" but I'm looking for an automation to that process.
I'm willing to look at something that runs outside of netbeans, as long as it generates a list of cruft methods/classes.
Thanks.
java - Strategy for detecting an object in JTable row?
Here's the thing: a sortable JTable backed by JTableModel with an array of objects that populate rows (one object = one row). Need to delete rows.
Without sorting, deleting an object is simple: get selected row index, delete array object under the same index. With sorting, though, row indexes mess up in a sense that they no longer match backing array object indexes. What's the proper way to overcome this?
java - Detecting drops from the same process
Is it possible for a class implementing DropTargetListener, to detect whether the stuff being dragged comes from the same process of from elsewere?
java - detecting binary files and character encodings in zipfiles
When reading zipfiles (using Java ZipInputStream or any other library) from an unknown source is there any way of detecting which entries are "character data" (and if so the encoding) or "binary data". And, if binary, any way of determining any more information (MIME types, etc.)
EDIT does the ByteOrderMark (BOM) occur in zipentries and if so do we have to make special operations for it.
java - Detecting struckout text in a cell using JExcelApi
I need to detect whether the text within a cell is struck out or not. I'm using this:
Cell cc = sheet.getCell("B1");
CellFormat format = cc.getCellFormat();
System.out.println(format.getFont().isStruckout());
but I remember I read somewhere that CellFormat is deprecated and CellFeatures should be used instead. How could one find out whether a text is struck out us...
java - Detecting when a user is finished resizing SWT shell
I've got an SWT shell that's resizable. Every time it is resized, I have to do something computationally intensive.
I can register a ControlListener on my shell, but this generates events continuously throughout the resize operation, and I have no idea when a resize drag type mouse operation ends.
I'd like to be able to detect when the user is finished resizing the shell and then ini...
browser - Detecting whether cookies are enabled through Java
Is it possible in Java (SE, not J2EE) to detect whether cookies are enabled in the default browser?
This isn't a client/server application. It's simply a desktop application that happens to interact with the default browser.
java - detecting if a file is ready and serving it for download
I have a Spring MVC web application that is generating a report on the server, once the report is generated, I need to enable a button that allows the user to download it. I am not sure how to go about doing this.
I figured that I will have to spawn off a thread that will just keep checking for the existence of the file and use javascript (jQuery or prototype most likely) to handle the UI elements, but I'm just no...
Eclipse not detecting the installed java
I had installed Eclipse Galileo first and after that installed Java.
But it is not detecting my java.
What configuration changes can I make so that Eclipse can run my java programs?
========================== Edited ================================
Java 2D drawing and editing objects on an image and detecting shapes from images
Could somebody get me started with the following idea:
I want to load an image into my java (java swing) application (a floor plan or blue print).
Let's say the floor plan image has a white background with 3 shapes on it (a rectangle, a triangle and a circle). The shapes have a black border.
The program should detect these shapes and draw the 3 shapes on top of it.
For example: it detects the recta...
Still can't find your answer? Check out these amazing Java communities for help...
Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)