new to linux
1 posts in topic
Flat View  Flat View

Posted By:   puneet_jain
Posted On:   Tuesday, June 26, 2001 05:06 AM

i am new to linux
how can i create a simple hello world
program in java on linux

help me

Re: new to linux

Posted By:   Dmitry_Polishchuk  
Posted On:   Tuesday, June 26, 2001 06:09 AM

No problem! AFAS the JDK usually being installed during the Linux setup you shouldn't take a special care on it. You act exactly the same way as you do it under Windoze:
1. create the project directory in your home directory (see dir. /home/)
2. write the java code in some editor. 'jEdit' is very good. Can't recall the right URL but you can find it thru a search system in the I-net.
3. compile your code into Java byte-code issuing 'javac' command.
4. run it with 'java' command to see results
Only point here is a different syntaxis of environment variables. But this thing explained in any UNIX book. Also, take care that $JAVA_HOME (there should be JDK installation directory path) env-var is mentioned in your '.profile' file located in your home dir (see comment above) and /bin directory is in $PATH env-var is mentioned in your '.profile' file. Some Java virtual machines won't work if you write those data in another place, say, in 'profile' file.
Well, that's it.
I'd recommend you to use Borland JBuilder Foundation available free at www.borland.com. There are detailed installation guide as well.
About | Sitemap | Contact