Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to compile this project inside Eclipse?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    53
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default How to compile this project inside Eclipse?

    I am currently going through a JPPF (Java Parallel Processing Tutorial) and for this, I downloaded some folders with libraries and classes that are some kind of templates for a project using this technology. Now, during the tutorial I have to add code to these classes, to compile and run them. Now, the main problem is that I do not know how to use this folder structure to get compile inside Eclipse.

    These folders look like this:
    workspace.jpg

    As you can see, there are 2 big folders(indeed, there are 4 at all but the other 2 folders look same like these):
    - JPPF-3.2.2-admin-ui this folder has a config sub-folder, the library and the lib-src folder which contains the classes where I have to add code and to compile them
    - JPPF-3.2.2-application-template this folder has the classes inside a chain of sub-folders, under src folder

    Now, my big problem is how to make these programs to compile and maybe even run (running is not that important, it looks like i can run them using the batch file that is created) inside Eclipse? Eclipse does recognize these folders to import them as projects, and does not even work to convert them into source folders. I have also tried to right click and Run on the files which contain the main method but it does not work at all.

    So ... what am I doing wrong and what should I do to have these projects getting compiled in Eclipse?


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,360
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: How to compile this project inside Eclipse?

    You have to tell eclipse which folders contain the source to compile. Right click the project, go to properties, then Java Build Path, then the Source tab.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to compile this project inside Eclipse?

    You can either configure your build path or compile each section as an individual project.

Similar Threads

  1. Replies: 0
    Last Post: February 13th, 2013, 03:08 PM
  2. Not able to compile JSP files using Eclipse and Oracle iSuites Apache 1.3
    By ajaykumar6201 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 27th, 2012, 12:18 AM
  3. How to Compile JSP in Eclipse (or other IDE)?
    By KevinWorkman in forum JavaServer Pages: JSP & JSTL
    Replies: 8
    Last Post: October 31st, 2011, 12:37 PM
  4. Replies: 7
    Last Post: October 13th, 2011, 03:03 AM
  5. [SOLVED] Pointing to file inside project
    By M3ss1ah in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 9th, 2011, 07:18 AM