Skip to main content

Posts

Controlling an executable from Java program

Windows tools like Notepad, internet explorer and other executable files can be started from java program through its core API. Procedure to start a Notepad application from java program:  Create an object for Runtime class                          Runtime runtime = Runtime.getRuntime();         Create the command string                          String command = "notepad.exe";         Call exec()                          try{                              Process process = runtime.exec(command);                          }catch(IOException e){                 ...

Introducing Java 7: Moving Java Forward

Hey check out this!.....Oracle is going to introduce Java 7 on July 7 Some of the latest innovations and changes in Java 7 are: 1. A fully functional and supported NIO.2 filesystem provider for zip and jar files. 2. Small language changes and enhancements [Project Coin]         Project Coin includes               Strings in switch statements               try-with-resource statements               Improved type inference for generic instance creation               simplified varargs method invocation               better integral literals,               and improved exception handling[multiple catch] 3. Support for Dynamically typed languages For attending live webcast just by sitting at your desk and for registrations  click below link http://www.o...