Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   > World Wide Web > Programming / Scripting / Coding Forum > Javascript

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-16-2007, 10:40 PM
naives
Status: Offline
Senior Member
 
Join Date: May 2007
Location: India
Posts: 374
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
__________________
With Regard
Naive PVK RAJ

www.naives.info
Reply With Quote

  #2 (permalink)  
Old 02-02-2008, 01:37 AM
snoop1990
Status: Offline
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
Posts: 356
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
Reply With Quote

  #3 (permalink)  
Old 05-19-2008, 08:13 AM
joeally
Status: Offline
Junior Member
 
Join Date: May 2008
Posts: 4
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
Reply With Quote

  #4 (permalink)  
Old 05-19-2008, 08:28 AM
snoop1990
Status: Offline
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
Posts: 356
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 !
Reply With Quote

  #5 (permalink)  
Old 07-12-2008, 10:20 AM
tronador
Status: Offline
Member
 
Join Date: Jun 2008
Posts: 41
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
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
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


All times are GMT -7. The time now is 07:00 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79