Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 6th, 2006, 02:27 PM
Authorized User
 
Join Date: Dec 2005
Location: , , .
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing exe in Java

Dear Friends,

I know that we can access the exe in Java by the help of

Runtime & Process Class . But through this Class i can't able to

call exes other than windows default exe

( like notepad,Taskmanager,regedit. )



I can only call the exe in C:\WINNT Location . I can't able

to call other exe which are not in C:\WINNT Location .


how can i call exes which are not in C:\WINNT Location
Reply With Quote
  #2 (permalink)  
Old October 9th, 2006, 08:25 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Put them in your $PATH / %PATH% or refer to their locations absolutely. E.g. String exeFilename = "c:\\myprograms\\foo.exe";.

Jon Emerson
http://www.jonemerson.net/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating EXE in java satyabrata_majumder Java GUI 4 August 28th, 2013 06:44 AM
Exe Java chtiteuf Java GUI 5 September 10th, 2012 05:59 AM
Convert a .java to a .exe Geo121 Java Basics 2 February 1st, 2006 05:30 AM
Compile Java classes to EXE vb_programmer Java GUI 7 December 14th, 2004 08:16 AM
how to make .exe and setup file in java? gaurav_chhabra_911 Java GUI 2 November 23rd, 2004 06:22 AM



All times are GMT -4. The time now is 12:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.