ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!!
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.
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.
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.