Command line tool in Java gets run many times in a row, JRE keeps opening/closing, slow -


i wrote command line tool in java , gets run many times in row bat script. right it's runnable jar (which in hindsight isn't right choice here...). jre seems loaded , unloaded every time program run, seems inefficient. overall, seems lot slower should be.

do java gurus out there know more proper way handle situation?

as there no easy fix, might consider more radical approaches:

  1. actually porting what's in bat in java (easy if it's loop on files kind of filter).

  2. compiling jar exe (e.g. gcj) if maximum portability not issue.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -