(Aug 28, 2011 08:42 AM)Virux Wrote: Right. If it's encrypting another executable, it's just reading the byte stream of that file, modifying it as it exports the crypted version.
This is correct
(Aug 28, 2011 08:42 AM)Virux Wrote: A program coded in Java can be converted to an executable, many are. The JRE compiles the Java code to native, and runs it like an exe being 'javaw.exe'(I believe that's correct). So a Java-to-Exe converter would just capture that process.
However, if Java is converted to a native executable, it will lose its cross-platform ability. It will only work on the platform it was compiled for.
This is very incorrect
First of all the JRE does not compile the Java code to native code.
it Run the code inside a Virtual Machine (the JVM)
There is no such thing as a Java-to-Exe converter.
There are things called Wrappers as i referred to in my previous post.
But Wrappers only take the .jar file and "Wrap" it inside an .exe
The Java JRE dependencies are still there and its still a Java program.
The difference is the .exe can check if you have Java installed on the client PC, if not. Install it. then Execute the Java Executable, this among a few other things is what Wrappers are mainly used for.
But the fact remains you cannot convert a java program into .exe program magically and think it wont have any Java Dependencies.
BECAUSE
the JRE has all the libraries that the java program uses.
thats why it is always essential that the JRE is installed when running a Program coded in java.
/rant
:)