Win a copy of Modern frontends with htmx this week in the Spring forum!

Suzanne Mir

Greenhorn
+ Follow
since Aug 12, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suzanne Mir

There is still a java folder in the registry after I uninstall Java. When all this started, I was following someone else's directions and deleted the java folder from the registry after the uninstall. It didn't seem to make a difference.
12 years ago

Campbell Ritchie wrote:

Prince Sewani wrote: . . .
b) name : PATH
value : .;%JAVA_HOME%\bin . . .

That PATH is incorrect; you should not usually include . in the PATH. Make sure to put the Java™ part of the PATH first.



so should it just look like this: %JAVA_HOME%\bin ?

Either way, it still isn't working after I follow the steps from Prince. I still get the same error saying that 1.6 is required instead of 1.7 The javac command works, but not java.
12 years ago

Campbell Ritchie wrote:Can you uninstall Java7 and do a system restore to before you installed it?



I tried that - went to the point before I uninstalled 6 - tested 6 and everything worked. I uninstalled 6, and then installed 7. Same problem.


sasanka mandavilli wrote:go to
C:\Program Files\Java\jdk1.7.0\bin
and click java.exe file



I did this - a cmd window briefly appears, then closes. I still get the registry key error.


On a side note - I really appreciate everyone offering so much help. I posted this on a couple other forums and only got one reply.
12 years ago
Yes, we installed Java 7 on the new OS - that's when all the problems started. When we had java 6, there were no problems.
12 years ago

Campbell Ritchie wrote:

Did you open a new command line? The change is not applied until you open an new command window.



Yes, and restarted the computer with fingers crossed. He's been able to get some more practice in thru the jre dir, so it's moving along now. It's just frustrating that I can't figure out what the problem is.

One thing I remembered - we installed windows 7 a few months back, and it created a folder of our old system with all the programs and files - we had java installed on the old system. Would that be creating a problem? Although I don't see how.
12 years ago

Amit Ghorpade wrote:Just to add on, has he tried executing the command from the JRE installation directory? It will work for sure if its executed from the JDK's bin directory since there won't be any version and path conflicts.



Ok, the java command works when it is executed from the jre7 directory. Does that mean he should save all his apps into this folder instead?


Campbell Ritchie wrote:Putting the jdk1.7 path at the start of the PATH will mean your most up-to-date version of java.exe will be found first. Once the computer has found one version of "java.exe", it will stop looking.



Did this, but we still get the error when running Java from the java directory.

Thanks again for all the help - we will keep trying.
12 years ago
Oh, I should add to say that the javac command works with 7 - it's only the java command that we are having problems with.
12 years ago
Thanks for all the feedback everyone.

We have uninstalled and reinstalled a couple times using the add/remove tool in the control panel. It does ask during the installation to install the RE and it is version 7. I have automatic updates turned off.

Here are how we set the PATH variables:
Under user variables: C:\Program Files\Java\jdk1.7.0\bin (it is named JAVA_HOME)

under system: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0\bin\;

We have not changed anything to the CLASSPATH - we didn't read anywhere on the oracle site about changing it, or what it does. When I checked it, it does have jre6 - here it is:

.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Do I need to change that to jre7? Why do I still have a jre6 folder inside the java folder after downloading 7?

12 years ago
My son is trying to teach himself Java and was in the process of going thru the tutorials on the oracle website. We had installed JDK version 1.6.0_26 and he was able to successfully get it to work. As he was going thru the tutorials, it stated that the tutorials were designed to work best with JDK 7, and he should update his java, so he did.

After installing the new version, he now gets this message when trying to run the java command:

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.7', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.

We went thru and uninstalled all versions of Java, and then reinstalled version 7. He still gets the same message. We uninstalled again, and reinstalled JDK 6 - no problems. Should we just stick with JDK 6, or is there a way to fix this. I've checked the registry, and it only lists version 1.7
12 years ago