Closed Bug 619543 Opened 9 years ago Closed 2 years ago

please add java7ea pdb's

Categories

(Socorro :: General, task)

x86
Windows 7
task
Not set

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: timeless, Unassigned)

Details

Rob's Notes:


Optional Steps:

1. Go to a "Release Version" of FF and disable Java and it's Plug-ins.

2. Use Windows "Add or Remove Programs" to remove Java, Java SDK, JavaFX, etc.

3. Get "FixJava" and run it: http://forums.whatthetech.com/Java_Setup_Problem_t104537.html


REM Here's how to fix Java:
REM 
REM     * If you are able, uninstall all previous versions of Java in add/remove programs in your control panel.
REM     * Next, you may download the current version of Java here: http://java.com/en/download/manual.jsp
REM       I recommend that you use the offline installer version.
REM     * Now, download the fix:Attached File  fixjava.zip ( 336bytes ) Number of downloads: 3463
REM 
REM           Open the fixjava.zip file, extract and run the file fixjava.bat . If you are using Windows Vista, or 
REM           Windows 7 you must right-click the fixjava.bat file and choose "Run As Administrator". If you do not 
REM           see the run as administrator option, drag the fixjava.bat file to your desktop and then try to run 
REM           as administrator from there.
REM 
REM           The batch file will run briefly without confirmation.
REM 
REM     * You may now install Java without any errors about it already being installed.
REM 
REM 
reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt
for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f
del deljava.txt
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f


4. Run a "Registry Cleaner / Optimizer" such as "Glary Utilities" http://www.glarysoft.com/ or "Advanced SystemCare" http://www.iobit.com/advancedsystemcareper.html


-----

Installation of "Debug Java":


1. Reboot and WAIT for Operating System to calm down.

2. Use Windows "Task Manager" to kill anything related to Java (jqs jusched java and javacpl).

3. Download the ".EXE Installer" and the "Debug Version" (the "Non-Debug .Jar Installer" is Optional)

  3a. http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b121-windows-i586-09_dec_2010.exe
  3b. http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b121-windows-i586-debug-09_dec_2010.jar

4. Run the '.EXE' to install JDK-7, now you will have BOTH:
C:\Program Files\Java\jdk1.7.0\    AND
C:\Program Files\Java\jre7\

5. Type:
cd "C:\Program Files\Java\jdk1.7.0\"
java -jar jdk-7-ea-bin-b121-windows-i586-debug-09_dec_2010.jar

that should create: "C:\Program Files\Java\jdk1.7.0\fastdebug". You can not simply decompress the ".Jar Installer" since it contains a "License" that must be agreed to and the majority of the file is a huge file called "X_X" that is decompressed much like a "Solaris .ISO Image".

6. Your "Debug .DLLs" and associated .PDB / .MAP files are in "C:\Program Files\Java\jdk1.7.0\fastdebug\jre\bin" 

7. The ".Jar Installer" simply unzips to a directory - no "installing" so:

  7a. Just copy the files from "C:\Program Files\Java\jdk1.7.0\fastdebug\jre\bin\" to "C:\Program Files\Java\jre7\bin\"
  7b. Copy to "c:\WINDOWS\system32\" the "Debug Versions" of these files:

deployJava1.dll
java.exe
javacpl.cpl
javaw.exe
javaws.exe

and also copy java.map and java.pdb .

8. "npjp2" has a "Debug Version" but no associated .PDB / .MAP files.

9. Quadruple Check everything and Reboot. Visit here: http://www.java.com/en/download/installed.jsp

It MUST say:

"
Verifying Java Version
Oops! You don't have the recommended Java installed.
Your Java version is 1.7.0-ea-fastdebug. Please click the button below to get the recommended Java for your computer.

NOTE: If you recently completed your Java software installation, you may need to restart your browser (close all browser windows and re-open) before verifying your installation.
Download Free Java Software
Version 6 Update 23
"


That means you PROBABLY have everything correct but you still _could_ have missed a .dll (that ought to be a "Debug Version") or failed to copy a .PDB when you should have. If you don't get this far re-read and re-try again.


PS: If you make it back in one piece stay tuned for another Article about "Combining your .PDB Files into a "Symbol Store" (Preview: https://bugzilla.mozilla.org/show_bug.cgi?id=618220#c33).


Thanks,
Rob
AddenDUMB:

In Section 5: If you type this and it doesn't work add the appropriate PATHs:
java -jar jdk-7-ea-bin-b121-windows-i586-debug-09_dec_2010.jar


This might work:
cd "C:\Program Files\Java\jdk1.7.0\"
..\jre7\bin\java -jar "C:\Documents and Settings\All Users\Documents\Downloads\jdk-7-ea-bin-b121-windows-i586-debug-09_dec_2010.jar"


Rebooting OFTEN (at the correct points during the Installation) will ensure that you are using the correct 'Java' and not mixing "Debug" with "Non-Debug"
versions when you are checking. 

REMEMBER: "..\jre7\bin\java -version" and the 'version' your Browser ends up using may NOT be the same if you don't copy all the files correctly. Make certain that NONE of the files are in use or any copying may be prevented.

ALWAYS COMPARE the file sizes, "Debug Versions" are larger.

Check "c:\WINDOWS\system32\deployJava1.dll" is 776,192 bytes and NOT 466,944 bytes.

Check that "dir /od c:\WINDOWS\system32\java*" and "C:\Program Files\Java\jdk1.7.0\fastdebug\jre\bin\java*" are the same sizes.



Rename:

"C:\Program Files\Java\jre7\lib" to "C:\Program Files\Java\jre7\lib_NON-DEBUG"
"C:\Program Files\Java\jre7\bin" to "C:\Program Files\Java\jre7\bin_NON-DEBUG"

and copy
"C:\Program Files\Java\jdk1.7.0\fastdebug\bin" and "C:\Program Files\Java\jdk1.7.0\fastdebug\lib" to "C:\Program Files\Java\jre7\" .


Check your files, reboot, run (using cmd) "java -version" (it is in the PATH after a reboot) and use http://www.java.com/en/download/installed.jsp to test you are POSSIBLY working OK.


Don't forget to make sure you copied "C:\Program Files\Java\jdk1.7.0\fastdebug\jre\bin\new_plugin\npjp2.dll" over to "C:\Program Files\Java\jre7\bin\new_plugin\npjp2.dll" .


Good Luck!,
Rob
Creating a "Symbol Store":

1. Open Shell
[Start][Run]cmd[OK]

2. Create "Symbol Store"
"c:\Program Files\Debugging Tools for Windows (x86)\symstore.exe" add /o /r /p /l /f "C:\Program Files\Java\jre7\bin\*.*" /s c:\java-symbol-store /t "Java7ea" /v "Java7ea 2010-12-09"  /c "Adding Java7 EA symbols"

3. Look at "Symbol Store"
"c:\Program Files\Debugging Tools for Windows (x86)\symstore.exe" query /o /f "C:\Program Files\Java\jre7\bin\*.pdb" /s c:\java-symbol-store


To use (this particular) "Symbol Store" simply use this line after the other similar one:

.sympath+ c:\java-symbol-store



Thanks,
Rob

PS: Note that Bug 618220 comment 36 suggests a naming scheme to be used with 't' and 'v' commands; I have only used what was suggested to me. These commands subject to errors and updates.
Component: Socorro → General
Product: Webtools → Socorro
no longer interesting
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.