GeeCON Prague 2014*
The moose likes Java in General and the fly likes Help! Java has not worked for years! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Help! Java has not worked for years!" Watch "Help! Java has not worked for years!" New topic
Author

Help! Java has not worked for years!

David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
My Java has been down for years. We gave it to some tech support guys almost 4 years ago so that they could clear out a virus, and ever since we got it back the Java has not worked. It's not a browser issue because it does not work in IE or Firefox and both say that it IS enabled. It also does not work outside of browsers, like LimeWire for instance which doesn't work because it requires java. It's installed on my computer, I've gone through all the tech forums I could find and it seems like no one has my issue. Does anyone have any idea what could be wrong?
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 561
You need to be more specific:

What doesn't work?

What sites don't work?

What error messages do you get?

You use the word 'it' a lot, which one can logically assume means 'Java,' but help those who want to help you by being more specific. Which Java, what version, on what OS, etc?

This site is largely devoted to Java programming, and this sub-forum is for Java programming topics that are a step above the beginner's typical procedural or syntactical questions. Your problem sounds like an OS issue, but you give us no info about your OS.

Take a breath and start over.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
Yeah sorry I just read over the post again and it is kind of confusing. I meant I gave my computer to tech support guys a while ago. I have Windows XP SP2. My current Java version is is Java 6.0.220. Here's some more of the info you asked for...

Absolutely anything that requires Java does not work. I use Limewire as an example to prove it's not a browser issue. I have not had any trouble with websites not working, just things like programs and games. The main reason I want Java to function again is so I can play games at Pogo.com. If I try to play them right now, when I click the game, a popup appears to notify me that it requires Java to play and gives me a link where I can download it. It's as if Java is not even there. I don't get any kinds of error messages and never have, just anything that requires Java will tell me that I do not have Java installed on my computer, even though I do. I've reinstalled Java countless times and kept it updated but that doesn't help.

If you need to know anything else then feel free to specify and I'll let you know.
Got any ideas?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40


I have to say that the OP has much much more patience than me... four years !! Wow !!

I would have uninstalled the corrupted JDK, downloaded a new JDK, and installed it -- a long time ago.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

I second uninstalling and reinstalling, only I'd go for the JRE instead of the JDK since David doesn't seem to be a programmer.

David, if you open a Command Prompt window, type in "java" (without quotes) and press enter, what does it show?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
I've tried uninstalling and reinstalling multiple times to no avail.

Rob - If I type java in a command prompt window it says "'java' is not recognized as an internal or external command, operable program or batch file"
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

David Ogden wrote:
Rob - If I type java in a command prompt window it says "'java' is not recognized as an internal or external command, operable program or batch file"


Did you set the PATH variable so that windows can find it? Installing Java doesn't automagically make everything work -- in the case of the windows prompt, you need to add the java bin dir into the PATH variable.

Henry
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
Did you set the PATH variable so that windows can find it? Installing Java doesn't automagically make everything work -- in the case of the windows prompt, you need to add the java bin dir into the PATH variable.

How do I go about doing that?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Henry Wong wrote:
David Ogden wrote:
Rob - If I type java in a command prompt window it says "'java' is not recognized as an internal or external command, operable program or batch file"


Did you set the PATH variable so that windows can find it? Installing Java doesn't automagically make everything work -- in the case of the windows prompt, you need to add the java bin dir into the PATH variable.

Henry

Actually, if you install the JRE it will put a java.exe file inside C:\Windows\system32. This folder should always be on the path so it should work automatically.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

Rob Prime wrote:
Actually, if you install the JRE it will put a java.exe file inside C:\Windows\system32. This folder should always be on the path so it should work automatically.


Really? Is this a new thing? Because I have never had java.exe installed in that dir... wait a sec.... Nope. Not in my current machine either. It always installs as a directory under program files.

[EDIT] Oh wait.... I always installed the JDK. Is this only for the JRE?

Henry
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

David Ogden wrote:
Did you set the PATH variable so that windows can find it? Installing Java doesn't automagically make everything work -- in the case of the windows prompt, you need to add the java bin dir into the PATH variable.


How do I go about doing that?


http://www.coderanch.com/how-to/java/how-to-create-java-program
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Henry Wong wrote:
Really? Is this a new thing? Because I have never had java.exe installed in that dir


That java.exe is for the use of the Java Plug-In. They may have stopped doing it in recent versions, but they did do this for many years. It causes a particular class of newbie programmer bugs where they compile a class, and when they run it they can "incompatible version", because they have an old java.exe in c:/Windows .


[Jess in Action][AskingGoodQuestions]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

I've always had this file present after installing the JDK (with included JRE, yes). It's nothing more than a wrapper that checks the Windows registry (HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment, value CurrentVersion which must match one of the sub-keys) for the actual location of the JVM to run.
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
Okay so today I decided to try uninstalling/reinstalling it, and to my surprise neither can actually be done.

If I try to uninstall the file through Add/Remove Programs (it's labeled as Java(TM) 6 Update 22) I get a prompt saying "The feature you are trying to use is on a network resource that is unavailable... Click OK to try again, or enter an alternate path to a folder containing the installation package 'jre1.6.0_11-c-l.msi' in the box below".

I get the exact same message if I try reinstalling the downloaded file "jxpiinstall.exe". It goes through an installation screen for the Java Installer, then says "The software has already been installed on your computer. Would you like to reinstall it?" I click Yes and that's when it goes to the same window saying "The feature you are trying to use is on a network resource that is unavailable".

I get the feeling the two problems are related and if I can figure out what's wrong with the uninstall/reinstall process then the problem with my JRE will be fixed. Does anyone know what might be wrong?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Well, first, the obvious answer: is your computer on a LAN, with shared disks? If so, have you talked to the manager of that LAN? If not, your computer seems to think it is, and that's obviously an issue!
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
Ernest Friedman-Hill wrote:Well, first, the obvious answer: is your computer on a LAN, with shared disks? If so, have you talked to the manager of that LAN? If not, your computer seems to think it is, and that's obviously an issue!


Wait, what exactly is the issue?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

The error message says


The feature you are trying to use is on a network resource that is unavailable


Meaning that your computer thinks that Java is installed on a shared disk somewhere, and that shared disk is unreachable, so it can be neither installed nor uninstalled. You need to convince your computer that there is no such disk, and it should forget about anything it thinks is stored there. I actually couldn't tell you how to do this; I wonder if this is one of the many circumstances where reinstalling Windows is the only workable solution.

Gah -- Microsoft!
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3606
    
  15
David Ogden wrote:If I try to uninstall the file through Add/Remove Programs (it's labeled as Java(TM) 6 Update 22) I get a prompt saying "The feature you are trying to use is on a network resource that is unavailable... Click OK to try again, or enter an alternate path to a folder containing the installation package 'jre1.6.0_11-c-l.msi' in the box below".


The 'box below' should contain the location where the uninstaller thinks that file should be. Check if this location exists. If it doesn't (or the box is empty), do you have access to the jre1.6.0_11-c-l.msi file somewhere else ? If so, just change the text in the box to the path of this file.

Joanne
David Ogden
Greenhorn

Joined: Dec 04, 2010
Posts: 7
Ernest - I'm on my own home DSL so I don't think that's the problem.

Joanne - I can't find the file anywhere. I tried running a search for the exact file name and it found nothing
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

David Ogden wrote:Ernest - I'm on my own home DSL so I don't think that's the problem.


No, it sounds like that is precisely the problem. Your computer believes that Java is available on a server on a LAN. That LAN is unreachable, though, because it doesn't exist. Therefore, you can neither uninstall the copy your computer believes exists, nor can you install a new one, since it believes there is an (unreachable) copy already.

Again, I'm not enough of a Windows tech to tell you how to fix this -- anyone else know?
Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 329

David, found the FAQ for jre(Java) here, http://www.virginia.edu/integratedsystem/gettingStarted/JRE.html

If the program isn't uninstalling, why don't you try installing a separate Java install.

After install, set your java PATH, www.java.com/en/download/help/path.xml
hth
 
GeeCON Prague 2014
 
subject: Help! Java has not worked for years!