Samusaaron3
Samusaaron3

Reputation: 542

Java Being Blocked By Antivirus Software (Specifically AVG)

I have a program that I've been working on that downloads files. Everything works perfectly, unless a user is using AVG. Oddly enough, it seems that in order to fix the issue AVG's "Email Protection" must be disabled; adding either my program or the JRE to an exceptions list doesn't work.

I am downloading content through the use of a BufferedInputStream obtained from a URL. Users have been reporting that the download process starts fine, but freezes ~5%-15% in (it varies). The download progress is shown with a JProgressBar.

Is there any way to avoid this? It's a pain having to deal with it case by case...

Upvotes: 9

Views: 13950

Answers (3)

tgkprog
tgkprog

Reputation: 4598

is there a way to add folder to avg exclusion/ trusted list? then add where you have .class. jars, resources and download folder(s) to those. but seems something in the link makes avg think its an email being downloaded. maybe first download a dummy 1 k text file and then the other files?

Upvotes: 0

ExxKA
ExxKA

Reputation: 1030

Do you download files which contain code of some sort? - That may be why AVG is blocking it.

An easy solution to this (used by virus writers world wide) is to simply transport the source code and compile it client side (Java has a compiler you can call from within your code), or to just encrypt the file, download it in the encrypted form and then decrypt it when you have received the file client side.

Upvotes: 1

dsingleton
dsingleton

Reputation: 1006

Try adding java.exe and javaw.exe to the list of trusted applications and not your application specifically.

Upvotes: 0

Related Questions