• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Browsing in Fedora Core 4

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 20982
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

should help
 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!