Page 2 of 6
Posted: Wed Jul 28, 2010 11:06 am
by alanrichey
gfb107 wrote:Assuming you are not interested in actually writing Java code, you want the JRE. Get it
here.
Always had that installed. It's just that following the instructions just doesn't work for me. Tapping on Setup.vbs simply results in an error message about an invalid registry entry. Double tapping on the JAR file doesn't result in anything happening. And when I found that the standalone EXE file works perfectly straight out of the box I just didn't bother spending time trying to figure out what I was doing wrong with the Java version.
Sorry
Al
Posted: Wed Jul 28, 2010 11:43 am
by gfb107
I'd like to understand exactly what's going wrong, so we can help anyone else that runs into this.
From what you are saying, it sounds like installing the JRE didn't setup the normal file association for .jar files, or it got hijacked by another program you've installed.
See
http://windowstipoftheday.blogspot.com/ ... ation.html
Posted: Wed Jul 28, 2010 12:14 pm
by alanrichey
It did, it has been hijacked by the Nokia phone installation program, but I changed the association to what I thought was the right file, which was in the \Program Files\JRE\jre-windows-i586.exe. This resulted in the 'nothing happens'.
Having read your link I went to \Program Files\Java\ and found the Javaw.exe so associated it with that program.
Now when I try and run it I get an error message "Could not find the Main Class".
Maybe because double clicking on setup.vbs doesn't work and just gives the error message (In Windows Vista BTW), so the program insn't installed ?
As I said, I am sure I am doing something silly, but I just gave up trying to figure it out when Remotemaster.exe works just fine.
Posted: Wed Jul 28, 2010 12:32 pm
by gfb107
Getting closer. I think this incorrect association is also breaking Setup.vbs.
You are just missing some parameters.
On my system the open action has the following for "Application used to perform action"
Code: Select all
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*
Just for completeness, I also have "Use DDE" checked with Application javaw and Topic System
Posted: Wed Jul 28, 2010 1:44 pm
by alanrichey
OK now you have me lost completely
I have never seen any option, either directly, or through Control Panel, to do anything deeper than just specify the program to be used with a specific extension.
Where do I go to add the parameters and check the "Use DDE"
Posted: Wed Jul 28, 2010 1:54 pm
by gfb107
Let's try a different approach.
Save this replacement for
Setup.vbs in your RM/RMIR installation folder.
Double-click it.
Hopefully there won't be any errors.
This should create working program icons for RM, RMIR, the Read Me, and Tutorial in your Start menu (In a Remote Master folder). You can then copy them to your Desktop or Quick Launch toolbar.
It will not fix the broken association of .jar files to .javaw.
Posted: Wed Jul 28, 2010 2:17 pm
by alanrichey
Line: 13
Char: 1
Error: Invalid procedure call or argument: 'mid'
Code: 800A0005
Source: Microsoft VBScript runtime error.
Sorry
Posted: Wed Jul 28, 2010 2:38 pm
by gfb107
Wow. Weird.
Open a command prompt and run the command
Posted: Wed Jul 28, 2010 2:51 pm
by alanrichey
version "1.2.2"
Classic VM (build JDK-1.2.2-001. native threads, symcjiy)
Confirmed in Control Panel which shows JRE 1.2.2 and Java Version 6, Update 20.
Posted: Wed Jul 28, 2010 2:59 pm
by gfb107
1.2.2? Yikes. Why do you have that? Nokia? I'll keep digging.
Posted: Wed Jul 28, 2010 3:12 pm
by gfb107
Save the following to Test.vbs in your install folder and double click it
Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFS = WScript.CreateObject("Scripting.FileSystemObject")
sCurrDir = objFS.GetAbsolutePathName(".")
sJavaw = WshShell.RegRead("HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.6\JavaHome") & "\bin\javaw.exe"
If objFs.FileExists( sJavaw ) Then
WScript.Echo sJavaw & " exists!"
Else
WScript.Echo sJavaw & " doesn't exist, aborting!"
End If
Posted: Wed Jul 28, 2010 3:21 pm
by alanrichey
Yes, it exists
Mind you we knew that, as it was the file I used to associate with the .jar extension.
Posted: Wed Jul 28, 2010 3:28 pm
by gfb107
Yes, I just wanted to make sure I could find it without hard coding the path, in case the normal install folder wasn't used.
Give this updated version of
Setup.vbs a try.
Posted: Wed Jul 28, 2010 3:46 pm
by alanrichey
Line: 34
Char: 5
Error: Invalid root in registry key "HKCR\RMDeviceUpgrade\"
Code: 80070005
Source: WshShelRegWrite
Posted: Wed Jul 28, 2010 3:50 pm
by gfb107
Wow, this just keeps getting stranger
Are you running as Admin?