Here is what is going on. I have created a .Bat file containing start javaw -jar BTG_Producer.jar When I start this manually by double clicking it will show my java program in my system tray and shows the process "javaw.exe *32" in Windows Task Manager. When I run this thru Task Scheduler it starts the process "javaw.exe" with out the *32 and does not show the program in the system tray. Do you guys know what I am doing wrong?
Why running .bat file thru Task Scheduler is not starting the .Jar file fully?
387 Views Asked by Ardel At
1
There are 1 best solutions below
Related Questions in BATCH-FILE
- .bat file - How can I return the value of a variable whose name depends on another variable concatenated with a string in a batch file?
- Discordbot(Python) who should start bat file(Minecraft server) can't find user_jvm_args.txt file
- Set req query output to a variable
- bat file creates a "corrupt" zip
- How to list several items in the dialog box for execution?
- "if contains" with forbidden special characters
- Overlaying frame number with ffmpeg
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Batch file no longer works correctly in Windows 11
- Trying to launch batch file from powershell, and immediately closes
- How to automate an SSH login with a batch file?
- Having trouble executing my program from a jar, using Jinput
- How can I unload Visual Studio projects via batch file/developer command prompt?
- How to use goto in nested loop in .bat script window
- How can I run this Powershell function from a batch file on windows?
Related Questions in JAR
- how to add the button onto the furnace GUI in minecraft
- How to use Gradle to add JAR library for Flutter project?
- Having trouble executing my program from a jar, using Jinput
- how to add the button onto the mc mod without errors?
- How to run standalone files created by anylogic in matlab?
- Java .jar file not working as expected after an edit
- How can I create an executable (from a JAR) with the --enable-preview option in Launch4J?
- How to Run cucumber test cases from jar? Jar not able to find stepdefinitions?
- JavaFX issues to build an artifact and jar
- How to fix error and what causes: Error: Main method is not static in class
- How to Use an External JAR Offline in a Maven Project for Servlets Without Internet Access?
- mvn package is failing -Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tool
- How do I download Hibernate 6.4.4 JARs?
- JavaFX: how to build fat jar without needing to specify --module-path and --add-modules during execution
- Editing .jar file by removing dependent jars and then replacing them
Related Questions in SCHEDULED-TASKS
- How to schedule the execution of broadcast tasks from a queue of to be broadcasted data with a one second delay in between each broadcast invocation?
- Is there a way to pass Today's date as a command line argument to Excel from a Windows Task Scheduler Job
- Building a service which sends emails everyday to the user at a particular time. (NOT RUNNING)
- Assign Dynamic values in Annotation
- Create a task in mybb to automatically recount and rebuild forums and threads every 1 minute
- Creating a ScheduledTask in PowerShell to run when any network is available
- I want to extract data from website and refresh that data in 15 days , and whenever website get updated dataset should be updated too. How approach it
- How to create a stored procedure that creates a table at the end of the month, but the table name gets automatically generated based on system date
- Scheduled task that doesn't start
- Toggle Dark/Light Mode in Windows 11 automatically by time of day (without modifying or changing theme!)
- Django-q2 schedule task hook on class function
- Spring scheduled - can I join fixed delay with cron
- Mac LaunchAgent with full disk access and caffeinate
- Airflow Parallel DAG runs
- Netsuite Scheduled script stuck on pending status
Related Questions in JAVAW
- How to check if Jar is running on windows and run the logs?
- install java or just copy jdk file?
- How to hide java console when running "firebase emulators:start"?
- C# How to enable exit event on a running javaw app
- executable jar file doesnt run upon double click
- Visual studio SOMETIMES loads symbols and sometimes does not
- Python Tabula Script keeps opening Java.Exe window. How do I get it to use jawaw.exe instead?
- Batch file to start new javaw process not working as expected
- Random unicode characters message error when executing Matlab function from jar
- Why is myProcess.getInputStream() working with java.exe but not javaw.exe?
- How to use Javaw on windows JNI error has occurred Intellij IDEA to run GUI without console window
- java.exe is faster than javaw.exe
- Wildcard in Jar name
- Eclipse 4.7.3a and Java 10 Error: Could not find or load main class
- How does Eclipse capture stdout from a process started with javaw.exe?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When you launch a process via Task Scheduler, it may have a different environment than when you launch the process from your desktop. To test this, you can create a task that runs
cmdwith the/kparameter from the Task Scheduler. When you run it, cmd will open, then you can runset >%userprofile%\Desktop\environment1.txt. Then, open a cmd as you normally do, and runset >%userprofile%\Desktop\environment2.txt. Open the two files side by side, and compare.In this case, I suspect your PATH variables are different, which is why 32-bit java is run in one case, and 64-bit in another.
To fix this, you could explicitly specify the 64-bit javaw.exe in your batch file.
C:\path\to\javaw.exeinstead of justjavaw.