Jump to content

New J2se Today


Recommended Posts


It's in the switches thread. I also posted it again two days ago. But just for kicks, here it is again:

ECHO Installing Sun Java2 Runtime Environment 1.4.2_01...
start /wait %systemdrive%\Updates\j2re142_01.exe /s /v"/qn ADDLOCAL=jrecore,extra REBOOT=Suppress"

ADDLOCAL is currently set to install the core components (jrecore) and some extra stuff which I found useful (extra). There's one more option, but I forgot what it was :). Just search Sun's site for silent install and look for the one with 1.4.2 in its URL.

Link to comment
Share on other sites

No prob.

Also, if you're like me and don't like the system tray icon that comes up when java applets load, put the following registry entry in:

;No System Tray Icon for Java VM
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.2_02]
"HideSystemTrayIcon"=dword:00000001

Link to comment
Share on other sites

Here's some more switches for silent installation.

IEXPLORER=1 ;Sets J2SE as Default Java VM for IE

MOZILLA=1 ;Sets J2SE as Default Java VM for Mozilla

NETSCAPE6=1 ;Sets J2SE as Default Java VM for Netscape 6 or Later

INSTALLDIR=<drive>:\<install_path> ;Set Install Dir for J2SE

Example:

ECHO.
ECHO Java 2 Platform, Standard Edition (J2SE) 1.4.2_02 is installing
START /WAIT %SYSTEMDRIVE%\INSTALL\JAVA\j2re-1_4_2_02-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore,extra IEXPLORER=1 INSTALLDIR=%SYSTEMROOT%\java REBOOT=Suppress"

I think people get the idea. Sun's documentation is great.

Link to comment
Share on other sites

  • 1 month later...

Here's the documentation on it:

http://java.sun.com/j2se/1.4.2/docs/guide/...ide/silent.html (make sure you don't use a space between /v and "/qn like they've outlined in their examples, because it won't work)

I've been sprucing up my sun java installation just a few minutes ago, this is what I use to install core java files, and integrate into IE:

j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"

Then the following reg changes:

Windows Registry Editor Version 5.00

;Disable Java Update Check on Startup
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

;Hide Tray Icon when Java is used in browser **Version sensitive!**
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.2_01]
"HideSystemTrayIcon"=dword:00000001

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...