954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to compile java programs in ubuntu

hello everyone ,,,,i have recently installed a java version "1.4.2" in my terminal and i made it succcessfully but my problem now is how to compile a java sourcecode using the terminal..pls help me about this

anyway,I am using a ubuntu flavor of linux

Your help is very much appreciated....
Thanks in advanced....

jk_bscomp
Light Poster
46 posts since Apr 2007
Reputation Points: 4
Solved Threads: 1
 

NetBeans ( http://www.netbeans.org ) is supposed to run on several OS, have you tried that?

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 
masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 
NetBeans ( http://www.netbeans.org ) is supposed to run on several OS, have you tried that?

which is explicitly NOT what he was asking for. I'll not remove this as spam (though it could be considered such) unless you try the same again.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
my problem now is how to compile a java sourcecode using the terminal

after installing a JDK in /bin/sh theier should be an executable file called "javac" so you would do in the terminal "javac helloworld.java" and then "java helloworld" to see text output. if its an applet you will have to view it in a web browser. geany is a great simple app for java. one click compiling, but again you must have javac in /bin/sh

broinjc
Newbie Poster
1 post since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

and half a year later someone creates an account for the sole purpose of reviving a dead and answered thread...
Excellent start to a posting career, NOT.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Now how can I create and run a package ???????????????/
I created the package and I am able to run it on Windows environment but I have now shifted to Ubuntu Linux, and unable to run on that and of the most unable to set the class path...................plz help me out!!!!!!!!:confused:

Arvin005
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

When I was experimenting with Ubuntu, I found many answers to my questions about how to setup java on Ubuntu on the Ubuntu forum: http://ubuntuforums.org/index.php

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 
I created the package and I am able to run it on Windows environment but I have now shifted to Ubuntu Linux, and unable to run on that and of the most unable to set the class path...................plz help me out!!!!!!!

I have been using Linux with Java for a few years now, so *maybe* I could help, but you have to first clearly state what the problem is, in a thread of you own .. not a fossilized thread from a decade ago.

stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You