Maple 2017 startup gui window “hangs” when I try to open it - maple

I just had maple downloaded and the command prompt and classic worksheet seem to work but when I try to use the desktop app maplew.exe the initial loading image comes up but then nothing happens. I then have to use the task manager to close it. I have tried running as an administrator among other things. I am completely unsure how to fix this. Does anyone know how to fix this issue? Thanks

The last part of the anwer above helped me. In the Task Manager i could see jogamp_exeXXX being started. Repeadedly killing it allowed Maple to start.
To clarify the answer above: create a maple.cmd file on your desktop. Then paste this into the file:
start "Maple 2018" "C:\Program Files\Maple 2018\bin.win\maplew.exe"
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*
timeout 5 > NUL
taskkill /F /IM jogamp_exe*

Thank you all. I was able to email maple and I got a fast response. Maybe it can help someone in the future...
Your security software might be scanning Maple. If you can’t add Maple
to the list of exceptions, please try temporarily disabling it.
If that doesn’t help, please check the Details tab of your Task
Manager for jogamp-based processes. If terminating them allows Maple
to finish loading, please use the attached launch script; just save it
as a batch file.
If that doesn’t help either, please try enabling the jaccess line in
C:\Program Files\Maple 2017\bin.X86_64_WINDOWS\launch.ini by removing
the # and space in front. If you have issues saving the file, please
move it to the desktop first, make and save the change, then move it
back to the bin folder.
If that doesn’t help either, please enable the maxheap line in the
file above, and increase the value of 700. 2048 is usually a good
value to try, but if your system has more memory, a higher value can
be used.
If that doesn’t help either, please try adding showconsole=true to the
end of the file.
File:
if not "%minimized%"=="" goto :minimized set minimized=true
start /min cmd /C "%~dpnx0" goto :EOF :minimized
start "Maple 2017" "C:\Program Files\Maple
2017\bin.X86_64_WINDOWS\maplew.exe"
:: Kill any jogamp_exe_tst processes than are spawned timeout 5 > NUL
taskkill /F /IM jogamp_exe* timeout 5 > NUL taskkill /F /IM
jogamp_exe* timeout 5 > NUL taskkill /F /IM jogamp_exe* timeout 5 >
NUL taskkill /F /IM jogamp_exe* timeout 5 > NUL taskkill /F /IM
jogamp_exe*

Related

How to run VSCode from Window Comand Script

I would like to run VSCode from Windows Command Script with options of extensions-dir and user-data-dir.
It is ok on Windows Command Prompt.
But it is failed on Windows Command Scripts.
I tried many ways but all failed.
These is codes I'm trying:
#echo off
setlocal
set VSCODE_DEV=
set ELECTRON_RUN_AS_NODE=1
set configpath=%~dp0..\extensions
set extensionpath=%~dp0..\settings
set exepath=%~dp0..\Code.exe
::"%~dp0..\Code.exe" "--extensions-dir=\"D:\Windows\Programs\VSCode\extensions\""
::"%~dp0..\Code.exe" "--user-data-dir=D:\Windows\Programs\VSCode\settings" %*
::"%~dp0..\Code.exe --extensions-dir=D:\Windows\Programs\VSCode\extensions --user-data-dir=D:\Windows\Programs\VSCode\settings" %*
start "" "" "%~dp0..\Code.exe" "--help" "--version" "%~dp0..\resources\app\out\cli.js" %*
::start /d %exepath% "--list-extensions"
::start /WAIT /B "D:\Windows\Programs\VSCode\Code.exe"
endlocal
Could someone tell me how to fix it?
Thank you all with kind regards!

Commandline install MSI takes too long

For some reason trying to install a msi executable trough commandline takes too long or never completes. The program is unsigned themes for windows that allows you to run unsupported themes on windows. Its available from here: Download
Im trying to install the 64bit version with:
start /wait "UxStyle Core x64.msi"
The whole batch file looks like this:
#echo off
net stop uxsms
IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" call :install64
IF "%PROCESSOR_ARCHITECTURE%" == "x86" call :install32
IF ERRORLEVEL 1 goto :UxStyleErr
takeown /f "%WINDIR%\Resources\Themes\Aero\aero.msstyles"
icacls "%WINDIR%\Resources\Themes\Aero\aero.msstyles" /grant %USERNAME%:F"
ren "%WINDIR%\Resources\Themes\Aero\aero.msstyles" aero.msstyles.original
copy /y aero.msstyles "%WINDIR%\Resources\Themes\Aero\"
net start uxsms
echo Installation completed. Press any key to reboot or close this dialog if you want to restart later.
pause
shutdown /r /t 0
goto :eof
:install64
start /wait "UxStyle Core x64.msi"
goto :eof
:install32
start /wait "UxStyle Core x86.msi"
goto :eof
:UxStyleErr
echo An error occured while installing UxStyle Core. Installation will now quit.
pause
goto :eof
What am i doing wrong?
Instead of using start /wait to launch the .msi file, I'd recommend calling msiexec.exe directly. You'll also be able to generate a log file which will help you diagnose what is going wrong. So I'd modify your start /wait commands to look like:
msiexec /i "UxStyle Core x64.msi" /l*v x64_installlog.txt
You can add /passive or /quiet to the command to show just a progress bar or run with absolutely no UI respectively.
Please read:
Msiexec (command-line options)
It looks like you are lacking the /QB or /QB switches to run without interaction. Also consider adding REBOOT=R to prevent them MSI from executing any unexpected reboots.

Killing inactive form session through oracle application server

I am trying use host command in Oracle forms. I get the process id as input from the user and on clicking ok the form should kill the session related to process id.
PS: Users will be entering only frmweb.exe process id which are inactive.
cmd := 'CMD /C taskkill /F /FI /pid 'process which is got as input' /IM frmweb.exe';
host(cmd)
I also tried by writing the above command into a .bat file in application server.When trying to execute the bat file it din work. But when tryin to run the bat file by double clicking in Application server the session was killed.
On executing the above I am unable to kill the process.
I would also like to know whether the host command was successful or not.
Could you please help me and guide me in proceeding. Orakill and alter session are working but I don want to use it.
I tried with writing the command execution to a text for debugging and was able to find the solution.
cmd := 'CMD /C taskkill /F /FI /pid 'process which is got as input' /IM frmweb.exe>>output.txt';
There was some special character written in at the end of the command due to which the command was failing when calling from Oracle Forms.Special character was due to a typo in the code the Oracle Forms.

Batch file continually resets to the start

I intend to use the code below to shutdown or restart a computer. Every time I run this, it goes back to set /p var=Type computer name here: Can you please tell me, what is wrong with my script and how to fix it?
#ECHO off
set /p var=Type computer name here:
cls
TITLE %var% power control!!!!
ECHO Copyright © Joshua Reynolds 2012
ECHO USE THIS PROGRAM AT YOUR OWN RISK
pause
:start
cls
ECHO Choose an option below:
ECHO 1. Shutdown
ECHO 2. Restart
ECHO 3. Abort previous choice
ECHO 4. Exit
set /p choice=Type the options number:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto shutdown
if '%choice%'=='2' goto restart
if '%choice%'=='3' goto abort
if '%choice%'=='4' exit
cls
ECHO "%choice%" is not a valid option please try again
ECHO.
pause
goto start
:shutdown
COLOR 4f
cls
ECHO To shutdown %var%
pause
shutdown /s /m \\%var%
ECHO %var% should now shutdown.
goto start
:restart
COLOR A0
cls
ECHO To restart %var%
pause
shutdown /r /m \\%var%
ECHO %var% should now restart.
goto end
:abort
COLOR 5f
cls
shutdown /a /m \\%var%
goto end
:end
pause
COLOR 0f
goto start
Perhaps the name of your batch script is shutdown.bat and it is in your current directory. So when your script tries to run the SHUTDOWN command, it re-runs your batch script instead.
Either change the name of your script, or else explicitly use shutdown.exe within your script whenever you want to invoke the command.

How can I kill a program that might not exist from Perl on Win32?

I'm looking for a way to make Perl kill all firefox.exe processes on Win32, and not give an error if no process exists. I'm currently using:
system('taskkill /F /IM firefox.exe');
which throws up a big "ERROR: No such process found", when firefox wasn't present.
If you want to suppress all output including errors, try this:
system('taskkill /F /IM firefox.exe >nul 2>&1');
You can see more information about command redirection and pipes here:
http://ss64.com/nt/syntax-redirection.html
`taskkill /F /IM firefox.exe 2>&1`
without calling taskkill, you can use Perl modules, eg Win32::Process::List, win32::Process::Kill
See also perldoc -f kill