Notification

Icon
Error

Deployment Java - Try to deploy Java failed

Posted: Friday, May 17, 2019 11:08:03 AM(UTC)
cstoop

cstoop

Member Original PosterPosts: 2
0
Like
After hours of spending to try install Java and copy the files to c:\program files (x86) the exclusion files and the java.seurity file to c:\windows\sun\java\deployment, asking for help.
I have downloaded and edit a package from this forum and have added 2 steps. De installation of java 8.u144 is working fine but the last 2 steps failing. The 2 steps are copying files to the client that Java needs. 1 is voor the exclusion list and the other for security settings in the program files folder \java.

I have tried this as a step:
cmd.exe /c xcopy.exe /Y /I {packageshare}\Java\Sun\Java\Deployment\*.* C:\windows\Sun\Java\Deployment\
The security settings are fine, folder to copy is done by a user with sufficient rights. When i start above in a run command locally it copies the files, but thru lansweeper not. I have also tried to in stead of package share the real name: \\server\folder

Because this failed i have put this line in a batch file and then in Lansweeper execute a script and the path to the batchfile. This is also not working: return -62 last step 11


Why is this working locally on the client but not thru lansweeper what is wrong...
Esben.D
#1Esben.D Member Administration Posts: 1,966  
posted: 5/22/2019 9:18:24 AM(UTC)
If it works through CMD then it should work with Lansweeper too. An alternative is to put to put it all in a script that calls the installer.
mcoleman
#2mcoleman Member Posts: 6  
posted: 5/23/2019 1:37:30 PM(UTC)
Our Java deployment script just does this

copy \\server\share\OracleJRE1.8\deployment.properties C:\Windows\Sun\Java\Deployment

and

copy \\server\share\OracleJRE1.8\exception.sites c:\Windows\Sun\Java\Deployment

mlachance
#3mlachance Member Posts: 12  
posted: 5/23/2019 4:46:38 PM(UTC)
Originally Posted by: mcoleman Go to Quoted Post
Our Java deployment script just does this

copy \\server\share\OracleJRE1.8\deployment.properties C:\Windows\Sun\Java\Deployment

and

copy \\server\share\OracleJRE1.8\exception.sites c:\Windows\Sun\Java\Deployment



Try adding /s to your command line:
cmd.exe /c xcopy.exe /Y /i /s {PackageShare}\Java\Sun\Java\Deployment\*.* "C:\Windows\Sun\Java\Deployment\"

Also, verify your path to {PackageShare}\Java\... is correct.

cmd.exe /c xcopy.exe /Y /i /s is my goto for when copying files. Works everytime.

Active Discussions

Lansweeper Report for Microsoft Win 7 Extended Support
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 6:46:53 PM(UTC)
Lansweeper How to make a colour coded report
by  B.Rutherford  
Go to last post Go to first unread
Last post: Yesterday at 4:27:06 PM(UTC)
Report Center All switches and the assets connected to them
by  NWSF   Go to last post Go to first unread
Last post: 12/12/2019 5:23:34 PM(UTC)
Lansweeper Report showing single asset type
by  RC62N  
Go to last post Go to first unread
Last post: 12/11/2019 10:02:41 PM(UTC)
Report Center .Net 4.5 through 4.8 report - Reg Key scanning based
by  Martin Schulz   Go to last post Go to first unread
Last post: 12/11/2019 11:55:24 AM(UTC)
Lansweeper Assets and Owner listing help
by  ssmarr5  
Go to last post Go to first unread
Last post: 12/10/2019 9:23:09 PM(UTC)
Lansweeper HPE SAS Solid State Drives failure report
by  Tommy75   Go to last post Go to first unread
Last post: 12/10/2019 8:04:05 AM(UTC)
Lansweeper Adding Owner/User information to Assets:All column report
by  ssmarr5  
Go to last post Go to first unread
Last post: 12/10/2019 12:15:01 AM(UTC)