| |||||||||
| |||||||||
| Not A Member Yet? Register today and become part of the community. |
| |||||||
| 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
__________________ Regards Snoop1990 (former staff team member) Software: My Projects: PcCom.info - the computer community top-domain.co.cc- co.cc domain services up-next.co.cc- the latest movie trailers |
| |||
| 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 !
__________________ Regards Snoop1990 (former staff team member) Software: My Projects: PcCom.info - the computer community top-domain.co.cc- co.cc domain services up-next.co.cc- the latest movie trailers |
![]() |
| Thread Tools | |
| Display Modes | |
| | |||||
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What would make an interesting movie | Jadscape | Nintendo Consoles | 2 | 10-31-2008 08:36 PM |
| Any interesting tips or tricks that you'd like to share? | flickall | Web Graphic, Design, Digital Images | 2 | 04-26-2007 06:48 PM |
| ad code? | eric | Free Web Hosting Support | 1 | 02-22-2007 02:51 PM |
| Ad Code | Keloran | Free Web Hosting Support | 1 | 07-15-2006 10:18 PM |
| About the add code | muffinhead | Free Web Hosting Support | 1 | 02-03-2006 02:36 PM |