yev
yev

Reputation: 506

launch4j compiled java application executable being blocked by antivirus

I am trying to create an installer for my Java Application. I searched online and found out about Launch4j and Inno Setup.

After compiling exe using Launch4j, it doesn't seem to work. I am using windows and .exe's not really executing, it wasn't listed on taskmanager as well. After some fiddling and trying out stuff, found out that it was Avast. After turning of Avast shields, it worked like charmed.

I found out that the executable itself was the one being blocked, and not launch4j while compiling resulting to some convoluted .exe beyond my understanding. (by trying to compile when avast is on and off, and both .exe only runs when avast is off)

Have any of you guys encountered this? What if it will be blocked by other antivirus as well? Is there any possible explanations and/or solutions? Place to start looking into?

Afaik, my code doesn't really do suspicious operations. I tried some simple gui app that show only a label inside a frame and still, same thing happens.

Upvotes: 3

Views: 2503

Answers (1)

yev
yev

Reputation: 506

It turns out, This was the actual reason:

launch4j while compiling resulting to some convoluted .exe beyond my understanding.

The latest build of launch4j has issues on it's headers being flagged by VirusTotal and some other antivirus software when it compiles an exe.

While reading the discussion board on launch4j's official site, I stumbled upon Balthasar Gregovic's comments saying that the then 3.7 has issues but not the 3.5 verion. I downloaded the said version, and it worked like a charm. I think it would be wise to use launch4j version 3.5 for now. I will try to comment on the said discussion board and inform them that 3.8 also has the same issue.

Upvotes: 1

Related Questions