Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compile Java
02-10-2012, 05:54 PM
Post: #1
How to compile Java
We all know Java compiles down into byte format which requires a JVM to run. Often for deployment we can not guarantee that our clients will have the JRE installed, nore can we supply them with a jar file. What solutions do people use to compile their Java code into native code for simple use and execution?

Electrical services Perth | Electrical contractors perth | Electrician Perth
Find all posts by this user
Quote this message in a reply
02-11-2012, 07:06 PM
Post: #2
RE: How to compile Java
jdk 1. 4 is used to compile java code

website design perth| website design and development perth|website design development perth
Find all posts by this user
Quote this message in a reply
02-13-2012, 10:03 PM
Post: #3
RE: How to compile Java
Before the Java virtual machine (VM) can run a Java program, the program's Java source code must be compiled into byte-code using the javac compiler. Java byte-code is a platform independent version of machine code; the target machine is the Java VM rather than the underlying architecture. To compile a Java source code file Foo.java, you would do the following:

% javac -g Foo.java

The -g command line option is optional, but we recommend using it as it makes debugging easier.

Hair Transplant Pakistan
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)