This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Browsing in Fedora Core 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Browsing in Fedora Core 4" Watch "Browsing in Fedora Core 4" New topic
Author

Browsing in Fedora Core 4

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello,
I have just installed Fedora Core 4 successfully. But I can access any sites but www.redhat.com and www.java.sun.com which I don't understand. Could you please educate me what I should do to browse all the sites? thanks.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hmmm. But here you are at JavaRanch! I guess you're using another computer to make this post?

Well, tell us what you're doing, what you're expecting, and what's happening instead. If you can get to those two sites, everything ought to be working just fine for other sites as well. Which browser are you using? How are you getting to those two sites (typing in a URL, clicking on a link?) How did you try to get to other sites (typing, clicking?) What happened?


[Jess in Action][AskingGoodQuestions]
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Well, I have dual boot, so I can get online with WindowXP in the same computer. I am typing www.redhat.com and works fine. I am using FireFox 1.0.4. When I try other site, it give an alert box saying "The operation timed out when attempting to contact java.sun.com". It used to be fine earlier. I get the same alert for all other sites but redhat.com. I can remember enabling firewall while installing it. I am not sure if that's what causing this problem but why the redhat.com works. since I am new to linux, I am not sure. thanks for your help.
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Here's another problem,
I just installed jdk1.5 and set path variables in .bash_profile in my home directory. javac works fine displaying all the options. but when i do the java as follows:



I can't understand why typing java would not diplay all the options as does by javac. I would appreciate if you could help me with this too.
Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

1. I'd check your DNS configuration if you can get to some sites, but not others.

2. Fedora Core uses the Debian "alternatives" system to locate Java and other popular systems. Alternatives allows you to choose from a number of different implementations on a per-user basis. By default it's set up to use the GNU java environment, not Sun's. Alternatives softlinks things like /bin/java to the appropriate product as selected by the user.

Unfortunately, "Java" can mean several things, including JRE, JDK and browser plugins - plus dependencies, and the alternatives system man pages don't give the best of explanations on this.


Customer surveys are for companies who didn't pay proper attention to begin with.
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Thanks for the information. so how do I get to "Alternative" to have it pick up Sun's Java that I installed and not the GNU java environment. I would appreicate if you could enducate me on it.

Also, how and what particularly should I look for as far as DNS configuration is concerned?

Thanks.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923


should help


http://home.arcor.de/hirnstrom/bewerbung
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello,
this is so confusing! there are a couple of alternatives as follows:

/var/lib/alternatives/java
/etc/alternatives/java which points to jdk1.4.x/bin/java

which one of these should i modifiy to point to jdk1.5? when i did the following:

update-alternatives --set java /usr/java/jdk1.5.x/bin/java, i get the following:

bash: update-alternatives: command not found

WHY? i am logged in as su. Please guide me. Thanks.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Brian Smith:
when i did the following:

update-alternatives --set java /usr/java/jdk1.5.x/bin/java, i get the following:

bash: update-alternatives: command not found

WHY? i am logged in as su. Please guide me. Thanks.

It could be that the update-alternatives is not on your PATH.
What does it say if you type:

# locate update-alternatives

Do you see something like "/sbin/update-alternatives" on the list?
If you do, then give a full path to the executable and it should work (assuming that that JDK directory exists, of course):

# /sbin/update-alternatives --set java /usr/java/jdk1.5.x/bin/java


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Namnai Kidorkar
Greenhorn

Joined: Jul 02, 2005
Posts: 25
About not being able to access any other site beside redhat and sun...

I'm getting this feeling that you are not connected to the internet and accessing those two sites from hard drive. not sure though but you can check.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Browsing in Fedora Core 4
 
Similar Threads
Requirements
java sites
installing JDK on fedora 7
where could i get
Linux version for J2EE development