LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > World Wide Web > Programming / Scripting / Coding Forum > Javascript
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).

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007, 05:40 AM
Senior Member
 
Join Date: May 2007
Location: India
naives is on a distinguished road
Default A piece of Interesting Code

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-02-2008, 08:37 AM
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
snoop1990 is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-19-2008, 03:13 PM
Junior Member
 
Join Date: May 2008
joeally is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-19-2008, 03:28 PM
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
snoop1990 is on a distinguished road
Default

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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2008, 05:20 PM
Member
 
Join Date: Jun 2008
tronador is on a distinguished road
Default

You can use Java for web development but you server must support JSP (Java Server Pages), it is use frecuently in big companies and enterprise developments
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT +1. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company