• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Suitable programming language for developing an antivirus and firewall

 
Ranch Hand
Posts: 33
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read somewhere that java is not suitable for developing an antivirus. Why so? If not java, which is the best programming language that can be used to develop an antivirus and firewall? In java, the java.net package provides many classes for networking. What is it lacking? Is it possible to control the system files using java? I am new to software development so please clear these doubts for me.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One reason why java isn't suitable for this kind of stuff is that it requires a VM to run.

For system programming such as anti-virus usually use C or C++. Because it's able to use the system (OS) resources better.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, where did you read this?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The principal reason why Java isn't suited for system-level tasks is its "write-once/run-anywhere" design. For example, Windows security attributes cannot be accessed by Java, because Windows security is totally different to the various security systems on Linux (standard file ownership rights. selinux rules, and so forth). So there's simply no Java API to hook into. You'd have to create a native-code glue module for that. In the end, it's simply not worth the trouble. Just write the whole app in native code.
 
reply
    Bookmark Topic Watch Topic
  • New Topic