Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » run java app from bin dir
run java app from bin dir [message #586862] Thu, 28 November 2002 09:09
evert is currently offline evertFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I a new to eclipse.
I found out that eclipse doesn't run from the 'bin' dir were the .class
file are located.

I have my sourcefiles located at %pathToEclipse%\workspace\test\
And my classfiles are put into %pathToEclipse%\workspace\test\bin

When I run the code below :

package test;

public class Test {

public static void main(String args[]) {
System.out.println(new java.io.File("").getAbsolutePath());
}

How to change eclipse so It runs the application from the directoy were
the mainclass is located.

Please help,

Thank you in advance.
Evert
Previous Topic:Iproject.setPersistentProperty with binary data
Next Topic:Eclipse slow changing view
Goto Forum:
  


Current Time: Thu Apr 25 15:43:55 GMT 2024

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

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

Back to the top