LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2002, 11:14 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
Help compiling java


I want to start learning java, got a nice book but I h ave no clue on how to compile java in linux. Well after I have the tar.gz downloaded I decompress it from there I do not know what to do thanx to the cruddy readme file. what else is there to do. Is it a differant command to compile in linux? I use javac in windows, but so lost on linux. Thanx for any help.

Gonus
 
Old 08-02-2002, 11:22 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
it is the same javac , java tends to be platform independent unless you are using system calls that are not available on the current platform
Everything is true unless there is no java installed on your linux box, gcc-java claims to compile java programs with gcc - I've never used it though

Last edited by neo77777; 08-02-2002 at 11:23 PM.
 
Old 08-03-2002, 04:34 AM   #3
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
There are some environment variables to be set first.

Have a look at what cubed says here and do this for the JDK and JRE packages.

You must logout from your account and log back in (for the .bash_profile to rerun.

The simplest way to test if java is running is:

java --version

PS. I really recommend Emacs in Java mode. It's a great IDE and won't hog memory like Suns Forte.

Bert
 
Old 08-03-2002, 10:36 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You don't need to logout and log back in, you can run
source .bash_profile
or
. .bash_profile
to re-read and set new environment
 
Old 08-05-2002, 12:37 AM   #5
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
thanx for the help will read more and see if i can fix it with previous post.
 
  


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
compiling java chestud_it Programming 1 10-06-2004 01:30 PM
Compiling Java embalmedlenin Programming 3 08-28-2003 06:57 PM
java compiling problems LB9_B4Z Programming 7 05-02-2003 11:59 AM
Urgent Help With Compiling Java Hewin Programming 4 04-11-2003 11:11 AM
compiling JAVA JIV Programming 8 03-28-2003 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08: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