![]() |
| ||||||||||
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Javascript Need help with the (primarily) client-side programming language? This is the place. Includes discussion on AJAX (Asynchronous JavaScript and XML). |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I was trying to open a word file using Visual Basic and came across this code. I really don't had a idea that using Java I can do this. And was really excited about this. And thought this was worth sharing. So here is it Import java.io.*; public class Doc { public static void main(String[] str)throws IOException { Runtime rt = Runtime.getRuntime(); Process p = rt.exec("C:\\Program Files\\Microsoft Office\\Office10\\WINWORD.exe document.doc"); } } Here Document is- filename Winword-path of executable with which u want to open the file. So using this code you can open a .doc file in Microsoft Word |
| |||
| Thank you for sharing code, but this is no javascript this is java. Java and Javascript have nothing to do with each other. Javascript is for web development and especially used for dynamic content on a web page, while java is an language that is used for graphical applets or stuff like what you suggest. But in general you do not use java for webdevelopment. Regrades Snoop1990 |
| |||
| Of course Java is used on the web snoop. Have you not heard of Java servlets or JSP, these some of the most popular server side technologies used( not that I use them I'm more into python). You are obviously not experienced in web development. But Java is not JavaScript so should not be posted here |
| |||
| Sure I know about java ! but keep in mind what web development is ;-). Java on the web is used like flash to design graphical interfaces (webpages). The important point is java is used to present information not to work with. For example you can have a php core and instead of creating static html as output you can show your information with java. You can also use java for core web development but I do not know any reason why I should use java instead of python, or php, ruby, perl ... There are different tastes after all, but in general you use java on the web just to present information. Like you also use javascript or flash to present information while the server handles your requests as python threats or so. And as I already mentioned this part of the forum is desired for java script not java ! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed with a Newsletter. How would you like your management to treat you? | Alex D | Business and Finance Forum | 0 | 02-09-2010 05:58 AM |
| Paypal users? Html masters? | Michelle | HTML/CSS/DHTML | 0 | 01-07-2010 03:08 PM |
| How do I remove the galleries tab (at the bottom right) from my lightwindow? | Da Cat | Programming / Scripting / Coding Forum | 0 | 01-04-2010 04:17 AM |
| Verizon Android or Google Android? | bob | Google Android | 0 | 12-22-2009 11:33 PM |
| What phone should i buy? Blackberry, Samsung? | John | Samsung | 0 | 12-17-2009 01:59 AM |