LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-15-2004, 01:37 PM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
cant compile java


I am new to linux and downloaded the rpm file j2sdk-1_4_2-04-linux-i686-rpm .
Now, I created a java file in the path usr/java/j2sdk1.4.2_04/bin where javac is located.
When I give the command:-
[root@localhost bin]# javac Test.java
it gives the following error:
bash: javac : command not found.
 
Old 05-15-2004, 01:59 PM   #2
rusekd
LQ Newbie
 
Registered: Mar 2003
Location: NJ, USA
Distribution: Fedora Core 2
Posts: 9

Rep: Reputation: 0
You're in luck, this should be very simple to fix. You do not have Java in your PATH. To do this you will want to execute the following:

export PATH=$PATH:/usr/java/j2sdk1.4.2_04/bin

Now, one caveat. This will only apply to your current session (ie if you open another terminal window, it won't transfer the settings)

To make this permanant add the above line to your ~/.profile or your ~/.bashrc file.

That's it!
 
Old 05-16-2004, 01:00 PM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
thanks a lot. it worked.
Now can u tell me how to use oracle in fedora?
 
Old 05-17-2004, 07:05 PM   #4
mieslep
LQ Newbie
 
Registered: May 2004
Location: Minneapolis, USA
Distribution: Mandrake 10CE
Posts: 19

Rep: Reputation: 0
Probably not the right forum for the last question, but I'll try to answer it anyhow. Oracle officially supports SuSE and RedHat Enterprise versions. That said, you might not care about the "official" certified combinations, and only care to get it to work. The Oracle installer is, I believe, a little bit more lax about these things. But it will still check to see what distribution you're running, and I don't know if it allows fedora.

You'll learn this pretty quick once you run the runInstaller script as part of the Oracle installation process. If you get an error message about "unsupported platform" then you'll know that fedora won't work without hacking a file or two.

I'm going to be trying to install 10g on Mandrake in a couple weeks, but with a new baby in the house that might be tricky...best I can tell you is try to install it. http://otn.oracle.com is the place to start with documentation.
 
Old 05-18-2004, 03:51 AM   #5
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
thanks for ur reply.
I also use madrake. So if u know how to use oracle there then plz let me know.
and I will look on that site.
 
Old 11-22-2004, 05:49 AM   #6
ramesh_methuku
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
download j2sdk-1_4_2-04-linux-i686-rpm

please send me where can i found j2sdk-1_4_2-04-linux-i686-rpm.

iam using red hot linux processor i686.
 
Old 11-22-2004, 06:05 AM   #7
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
start here:

https://jsecom16b.sun.com/ECom/EComA...3B4758E73D88C2


[EDIT]
sorry, that only has the 586

Last edited by ta0kira; 11-22-2004 at 06:06 AM.
 
Old 11-25-2004, 09:49 PM   #8
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
http://java.sun.com/
 
  


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
compile java JDK 1.4 kernelvn *BSD 2 06-21-2005 09:42 PM
problem to compile cc and java os2 Programming 1 11-18-2004 02:42 PM
Compile Java - .class, .java, .jar ? woranl Programming 2 11-09-2004 10:12 PM
compile and run java pelegk2 Programming 3 10-05-2004 09:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:20 AM.

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