Page 4 of 5
Posted: Thu Nov 04, 2010 7:29 am
by vickyg2003
I read this, and I think its related.
http://bugs.sun.com/view_bug.do?bug_id=6840086
I'm not sure I understand the answer, but it would appear that a jdk file is a developer tool. Might be that Graham and Greg have different jdk versions.
Posted: Thu Nov 04, 2010 8:20 am
by mathdon
Vicky's post shows that this is a Java problem, not specifically a RemoteMaster one. I don't think the version of Java JDK that I am using is relevant, since what I post to SourceForge are source files (.java) and Greg compiles the .jar file and the .class files it contains. For the record, though, I am still using JDK 1.6.0_12.
It is odd that v1.99 seems OK but v2.00 does not. I wonder if the Java bug was introduced in JDK 1.6.0_13 and that Greg had an earlier version of the JDK when he compiled v1.99 than v2.00. It might be worth trying my compilation, to see if it is any different - of course, it might be worse as my JDK version apparently is not supposed to be Windows 7 ready. I have posted the .jar file here:
http://www.hifi-remote.com/forums/dload ... le_id=9101
Posted: Thu Nov 04, 2010 9:20 am
by vickyg2003
Greg might have had a later version. The version that supports win7 64 1.6.0_18-b07, was available last March.
Posted: Thu Nov 04, 2010 12:33 pm
by gfb107
They way I read the bug description is that what matters is the version of Java installed on the user's machine, not the builder's machine. This makes sense to me.
But that is contradicted by Rob being able to run v1.99 and v2.00 next to each other on the same machine, and only seeing the bug in v2.00.
Rob, are you launching v1.99 the same way as you launch v2.00?
Java allows multiple versions to be installed next to each other, so you may have a 'bad' version and a 'good' version on your PC.
Posted: Thu Nov 04, 2010 1:17 pm
by The Robman
Yes, I'm using a shortcut from the RM folder.
Posted: Thu Nov 04, 2010 1:38 pm
by gfb107
Can you check the shortcut properties are the same for both?
Posted: Thu Nov 04, 2010 6:30 pm
by The Robman
OK, here's an update. I wasn't using a shortcut for 1.99, I was just double clicking the jar file. So, I just created a shortcut for 1.99 and tried running it that way and now the icons are gone there too.
The shortcut is:
C:\Windows\System32\javaw.exe -jar "C:\Users\Rob Crowe\Documents\JP1\RM.1.99\RemoteMaster.jar" -rm
Posted: Thu Nov 04, 2010 9:25 pm
by The Robman
mathdon wrote:It might be worth trying my compilation, to see if it is any different - of course, it might be worse as my JDK version apparently is not supposed to be Windows 7 ready. I have posted the .jar file here:
http://www.hifi-remote.com/forums/dload ... le_id=9101
I get "Invalid or corrupt jar file" when I try to use this version (Win7 64).
Posted: Fri Nov 05, 2010 3:38 am
by mathdon
The Robman wrote:OK, here's an update. I wasn't using a shortcut for 1.99, I was just double clicking the jar file. So, I just created a shortcut for 1.99 and tried running it that way and now the icons are gone there too.
The obvious question: what happens with 2.00 when you just double-click the jar file?
Posted: Fri Nov 05, 2010 6:10 am
by The Robman
mathdon wrote:The obvious question: what happens with 2.00 when you just double-click the jar file?
Of course, I never do that with 2.00 because I can't get to RM that way, but I just tried it and the icons are there.
I also tried using the shortcuts that Greg's setup.vbs routine created in the Start menu and the icons don't appear that way too.
The problem just occurs when you use a shortcut, it doesn't occur when you use the jar file directly.
Posted: Fri Nov 05, 2010 6:45 am
by mathdon
I've never checked this before, but I've just searched to see how many copies of javaw.exe I have on my machine. I've found 12, which seem to include 6 different versions and some duplicates. The later ones are in different subfolders of C:\Program Files\Java, and the one in C:\Windows\System32 is a copy of the latest of these.
You might find it interesting to seach your machine, even though it is a very new one, and see if you have a later version somewhere than the one in C:\Windows\System32.
Edit: The version used when you double-click the jar file will be determined by registry settings and may well not be the one in C:\Windows\System32 or, for that matter, the one located through a search path.
Posted: Fri Nov 05, 2010 9:38 am
by The Robman
Thanks Graham, I'll check when I get home.
Do you know which registry setting determines the default version?
Posted: Fri Nov 05, 2010 11:02 am
by mathdon
The Robman wrote:Do you know which registry setting determines the default version?
I know in Vista, and would expect Windows 7 to be the same. It's a two-step lookup, though only the second step is likely to vary. First, under HKEY_CLASSES_ROOT you look up the extension, in this case ".jar". There will be an entry with name "(Default)". In my case, and probably yours too, this is "jarfile". Still under HKEY_CLASSES_ROOT you now look up "jarfile" and open the subfolder "shell\open\command". The "(Default)" entry there gives you the open command, in my case this entry is
Code: Select all
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*
For me this is the same version of javaw.exe that is in C:\Program Files\Windows, though it is a different copy of it. I suspect that in your case the two javaw.exe files will be different.
Posted: Fri Nov 05, 2010 5:31 pm
by The Robman
I switched mine to the jre6 library and now it works fine, thanks for the tip Graham.
Posted: Sat Nov 06, 2010 11:48 am
by mathdon
Rob, could you do me a favor please? As you got a "corrupt jar" message from the jar I posted a few days ago, I have updated my JDK to the latest version, 1.6.0_22, and recompiled it. But I am not certain that the Eclipse IDE used for development is actually using this new version. I have updated my previous post, so the new jar is at the same url as before:
http://www.hifi-remote.com/forums/dload ... le_id=9101
I would be grateful if you could try it to see if this now works under Windows 7.