Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Running An App From A Specified Directory
Running An App From A Specified Directory [message #185392] Fri, 12 November 2004 09:37 Go to next message
Eclipse UserFriend
Originally posted by: hello.hello.com

In Eclipse, is there a way to run your application as if you were
running it from a specified directory?

That is, you want the same effect as doing the following from the
shell:

cd C:\dir1\specified_directory
java MyAppName

I'm guessing there might be some way to do it in the "Run > Run..."
Dialog box, but I can't figure it out.

TIA,
John
Re: Running An App From A Specified Directory [message #185407 is a reply to message #185392] Fri, 12 November 2004 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

John wrote:
> In Eclipse, is there a way to run your application as if you were
> running it from a specified directory?
>
> That is, you want the same effect as doing the following from the
> shell:
>
> cd C:\dir1\specified_directory
> java MyAppName
>
> I'm guessing there might be some way to do it in the "Run > Run..."
> Dialog box, but I can't figure it out.
>
> TIA,
> John

In the options for your java application run/launch.

Switch to the Arguments tab and set the working directory.

Peter
Re: Running An App From A Specified Directory [message #185415 is a reply to message #185392] Fri, 12 November 2004 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Go to the "Arguments" tab of the launch configuration and at the bottom
you can set whether you want to use the default working directory or a
different one.


--
Thanks,
Rich Kulp
Re: Running An App From A Specified Directory [message #185429 is a reply to message #185392] Fri, 12 November 2004 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

John wrote:
> In Eclipse, is there a way to run your application as if you were
> running it from a specified directory?
>
> That is, you want the same effect as doing the following from the
> shell:
>
> cd C:\dir1\specified_directory
> java MyAppName
>
> I'm guessing there might be some way to do it in the "Run > Run..."
> Dialog box, but I can't figure it out.


In the Run Configurations dialog, on the "Arguments" tab there is a
"Working Directory" field at the bottom - that is how you can specify a
working or "run from" directory for each run configuration you set up.

HTH,
Eric
Previous Topic:Best practices for using ant build?
Next Topic:Problem with color highligting
Goto Forum:
  


Current Time: Thu May 22 08:18:12 EDT 2025

Powered by FUDForum. Page generated in 0.16392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top