Java Developers’ guide for application development with Linux
As know in the Java Developers community, Java is a platform independent object oriented language which runs on every platform. That is why it is said for Java that “Compile once, run anywhere” language.
But when the term “anywhere” had been used, they must have some specific platforms described. If we are running Java Application on Linux then something arise in mind that which context and environment I’m into?
A Java developer new to Linux plat form may wonder about whether or not and if yes then how Java can find the environment on Linux platform? In particular four things to get on Linux platform:
- Command-line parameters
- Current shell’s environment variables
- Location of data files
- Current working directory
The answer to all these factors varies on different cases like of which kind your Java application would be and how portable you want Java application to be.
The basic external information is supplied by program invocation. It may be simple parameters or arguments. This information can direct a program to flexibility and execution.
Command-Line Arguments
When a program is run from the command line, more than just the program name can be supplied. Here are some examples:
$ javac example.java
$ mv Acct.java core/Account.java
$ ls –l
In the ?rst example, we invoked a program called Javac and gave it the parameter example.java, the name of the ?le containing the Java program that we want Javac to compile to Java byte code The mv got two commandline arguments, Acct.java and core/Account.java, which look a lot like pathnames. The ls command has one argument, -l, which in Linux usually indicates, by its leading minus sign, that it is an option for altering the behavior of the command.
Information for Java Developers on how to execute a Java program on Linux OS platform with the usability of byte codes. Java application development with Linux platform shows the flexibility of a program written in Java language.
Article Source:http://www.articlesbase.com/programming-articles/java-developers-guide-for-application-development-with-linux-1329359.html
Related articles by Zemanta
- easyb 0.9.6 released (nofluffjuststuff.com)
- FT: Enabling Open Core (slumpedoverkeyboarddead.com)
- [Solr] How To Fix java.io.IOException: directory FOO exists and is a directory, but cannot be listed: list() returned null (beerpla.net)
- Version 4.2 of OSGi Java component technology available (slumpedoverkeyboarddead.com)
- Google Docs Batch Upload Eases Online Document Transfers [Downloads] (lifehacker.com)
- 19 Deadly Sins of Software Security: Programming Flaws and How to Fix Them (Security One-off) by John Viega (slideshare.net)
- Speaking at SpringOne 2GX 2009 (nofluffjuststuff.com)
- Multiple Java versions on OS X, and their paths (dowhatimean.net)
- ElegantCode Cast Interview (port25.technet.com)
- Cloudvox - API-driven phone calls, in minutes (call your code: AGI/AMI, HTTP, Asterisk-Java, Adhearsion) (cloudvox.com)
Related Posts
- Silverlight Has Effective Reporting Tools
- Silverlight Report Viewer – Essential For All Business
- C#Report Generator And Its Significance In Business Presentations
- SugarCRM Module Development
- Python Application Development
If you're looking to become an expert blogger in record time AND are serious about earning big money with blogging, I highly recommend you check out my honest blogging product reviews... I've checked out all the top blogging products on the Internet and these are the ones that I think will benefit you most: Read more Here!
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=65001302-8af7-4506-b6a5-d3906af64994)


