Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6577367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:37:35+00:00 2026-05-25T15:37:35+00:00

Here is my maven project structure ProjectParent -Class1 -Class2 -Module1 (another sub directory) –Module1Class1

  • 0

Here is my maven project structure

ProjectParent
 -Class1
 -Class2
 -Module1 (another sub directory)
 --Module1Class1
 --Module1Class2

Now when I run Module1Class1 from IntelliJ my current working directory is where ProjectParent directory, but when I run Module1Class1 from eclipse, my current working directoru is ProjectParent/Module1 directory.

Why this is different in intellij & how can I change this, so my current directory is always from where my class started execution like in this example ‘Module1Class1’ directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:37:36+00:00Added an answer on May 25, 2026 at 3:37 pm

    You should edit the template Run/Debug configuration and specify $MODULE_DIR$ variable in the Working directory field.

    All the new configurations will inherit this default setting and the variable will be substituted with the directory of the module that you want to run.

    There is a feature request to make it the default setting, please vote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to change a ant project to maven project, here is the
This is the directory structure of the project (maven2 is used): pom.xml /src /main
I am using maven in a project here at work and I've come up
I have a multi-module Maven project with a parent project P and three sub-modules
here is the structure of my project. proj ---src ----main ----java ----Main.java ----resources ----res.txt
Which archetype was used here: http://maven.apache.org/guides/getting-started/index.html It says a directory structure should have been
Quite new to maven here so let me explain first what I am trying
Here's my scenario - I have an SSIS job that depends on another prior
In my Maven project, I have the following code in the main method: FileInputStream
I'm working on a maven project which uses seam 2.2.0, hibernate 3.5.0-CR-2 as JPA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.