LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2005, 06:38 PM   #1
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
Start work with eclipse


Hello!!

I am a not very experienced Java programmer... and I need to work with a project where I have ot deal with Java, and with code that is already developed.

So I am thinking about to use the IDE (eclipse) to work in this project. The problem is that I have not a clear idea about how to use it...

The code that I have is placed in this workspace:

workspace/src/(several directories) - source files .java
workspace/data/(several directories) - contains some data structures to be used by the program
workspace/bin/(several directories) - contains the compiled programs

I can run the compiled programs... my problem is that I don't know how to compile my changes in the source code, and place it directly on the bin directory... (using eclipse, or maybe some other tricky thing...)

So if someone could give some directions to start with this, I will appreciate a lot!!

If you need more specification, please tell me...

Thank you in advance!

/edu
 
Old 02-25-2005, 07:37 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
In the "Project" menu, there is an item called "Build automatically". If it is checked, compilation is done automatically each time you save your file(s). If it is not checked, the item "Build project" becomes available which will do compilation when clicked.

Last edited by Hko; 02-25-2005 at 07:38 AM.
 
Old 02-25-2005, 09:11 AM   #3
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
I did that... and I think it is not working...

I just changed a sentence in the first print of the program... and I did the compilation (Build all)... and when I run it the change doesn't appear...

What I mean is, I don't know if the file from the "src" directory is compiled, and generated a new .class file in the "bin" directory...

I heard something about a "classpath" thing, but I am not aware of it...

Any ideas?!

Thank you

/edu
 
Old 02-25-2005, 09:42 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
I am by no means an experienced eclips user. But I guess to work with exisiting code, you need to import the source into the eclipse workspace or something like that.
 
Old 02-25-2005, 10:17 AM   #5
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
A simple way to do this is for you to create a new project and then copy the files from your src directory into the new project's src. Then in eclipse, select the new project on the left hand panel and hit "F5".

Does your program need any external jar files? If you do then you need to set the classpath for the project:
right click the project -> select "properties" -> click "Java Build Path" -> click "Add External Java"
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not start eclipse many errors GhostBox Linux - Software 3 11-03-2005 12:59 PM
Eclipse-SDK-3 can't start! Bonch Debian 4 11-27-2004 03:52 AM
Eclipse won't work Gen. Patton Linux - Software 5 02-08-2004 09:20 AM
My Eclipse shortcut wont work nightfox02 Linux - General 1 11-29-2003 01:19 PM
Eclipse doesn't start koswo Programming 1 10-14-2003 03:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration