Results 1 to 12 of 12
- 12-10-2010, 04:52 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
How to setting a best environment for java programming under linux
Im a newbie of java programming. I use Debian Linux.
I have installed jre,jdk and eclipse on my system.
I know how to build and run a program within eclipse. But, i am a c programmer before, and i used to use make tools to build my c programs.
Now, I know how to build my java program using a sample makefile.
But, if i use eclipse, i only run the class using eclipse run command.
So, I want to see, the best way to build a java program, or library, and how about a large java project?
Thanks
- 12-10-2010, 05:05 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 17
I have used Ant from apache.org and found it very good.
Compiling and running simple programs from the command line is not difficult either: details at the javac and java man pages. It is perhaps best to start at the command line so you know what all the options are when working with a build system like Ant.
- 12-10-2010, 08:14 AM #3
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
Thanks for your help. Its my first glance at ant, a cool make-like tool for java.
However, there is no man page for java classes and APIs, so, where could i find a help file for immediately references searching?(not online help)
and btw, do you only use ant for developing?
- 12-10-2010, 10:35 AM #4
Member
- Join Date
- Apr 2009
- Location
- Pretoria, Gauteng, South Africa
- Posts
- 43
- Rep Power
- 0
Hi, If I understand you correctly you are looking for the documentation. Its called javadoc and it is normally released/shipped with the JDK. It is in a form of web pages. You can download one for your specific JDK version at Javadoc FAQ
Tshegofatso Manakana
a.k.a Untouchable ™
- 12-10-2010, 08:03 PM #5
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 17
Ant has been all I ever needed for my modest needs - and I've found that it's simple to set up and use.
- 12-12-2010, 03:03 AM #6
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
- 12-12-2010, 03:30 AM #7
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
Sorry, pbrockway2, if i do so, how could i debug a program? for c, gdb is available.
And for Eclipse, it has internal debugger, i think.
- 12-12-2010, 03:46 AM #8
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 17
Sorry - I don't know any stand alone debuggers. Others here might.
Is there some reason you don't want to use Eclipse and its debugger?
- 12-12-2010, 06:15 AM #9
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
no. If I use Eclipse, why not only use it as a project manager, code editor?
In another words, is there any task Eclipse can't?
- 12-12-2010, 06:31 AM #10
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 17
I think you can actually set the Ant script that Eclipse uses to build etc. (But I don't have Eclipse on this computer to actually check that). But it means that Eclipse can be made to any task that Ant can do ... because its using Ant.
- 12-12-2010, 07:24 AM #11
Member
- Join Date
- Dec 2010
- Posts
- 11
- Rep Power
- 0
Thanks pbrockway2, thank to you, i know ant, eclipse use ant. Now, I can code simple java code and use ant to compile, pack and run it, further more, i also can debug a java program with debug information using jdb, a tool like gdb.
This my first lesson to learning Java. I will learn it deeper and deeper in future.
- 12-12-2010, 07:27 AM #12
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 17
Similar Threads
-
setting the "Java classes" directory in Linux
By mr_anderson in forum Advanced JavaReplies: 1Last Post: 08-02-2010, 08:18 AM -
starting java programming on ubuntu linux
By hmjsaumya in forum New To JavaReplies: 1Last Post: 01-23-2010, 07:28 AM -
Setting the environment variable for j2sdk
By kiki2009 in forum Java ServletReplies: 3Last Post: 07-04-2009, 06:14 AM -
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 05:05 AM -
Setting path under Linux to recognize jre
By cccccc in forum New To JavaReplies: 4Last Post: 03-31-2009, 07:51 AM
Bookmarks