Tagged Questions
0
votes
2answers
29 views
Not able to execute a batch file in JSP
I am trying to execute a batch file in a jsp which resides in the TOMCAT Server. jsp is in webapps/ROOT/test.jsp, batch file is also placed in the same location as webapps/ROOT/test.bat. Following is ...
1
vote
2answers
47 views
Execute batch files from JAVA and capture batch environment
I need a solution that allows to capture the batch file exit code and the resultant environment - by this I mean that I need to retrieve the system environment + variables set within the batch.
For ...
-2
votes
0answers
44 views
Installation of JAVA according to System architecture using batch file [on hold]
Duplicate question of
How to check PATH variable for java already installed or not in a batch file
but has some more requirements.
I have a test.bat file where i need to write a script to check
...
0
votes
3answers
54 views
How to check PATH variable for java already installed or not in a batch file
I have a test.bat file where i need to write a script to check PATH VARIABLE for java already installed or not ?
Conditions :-
1) If yes then
a) Check for the java version .
b) ...
0
votes
3answers
39 views
How to call a batch file from a windows service?
we have a java application, which is running as windows service. Actually we need to call a batch file to start windows 'calculator' application. But we can't. If we start java application not as a ...
1
vote
1answer
26 views
Java IOException When Trying to Run a Bat File in Another Directory
I'm using Apache Commons Exec to run a bat file in my specified directory.
File file = new File("C:\\Users\\Aaron\\Documents\\MinecraftForge\\forge\\mcp");
for(String s : file.list())
{
...
-1
votes
1answer
50 views
How GitHub gets information about person's main programming languages? [closed]
And why GitHub thinks I'm a shell and javascript developer?
In my profile (https://github.com/ My_Name), GitHub tells everybody that I'm not only java developer but shell and javascript developer ...
-2
votes
1answer
42 views
Installing Java using batch file [closed]
I want to install java using windows batch file,means suppose I have jdk1.7.exe file and I want it to convert in batch file.I am totally new to this topic and I am really not getting what to do..?
I ...
0
votes
2answers
32 views
Scheduled tasks does not run during certain time in the night
One of the Scheduled tasks fails from 11:30 P.M in the night to 8:00 A.M in the morning, after which everything seems to work fine
ERROR:
**
Task Scheduler successfully completed task ...
-2
votes
0answers
26 views
Include batch & txt in jar [closed]
I have a netbeans swing project which is using 2 bat files and 2 txt files located outside the project folder. Now i am building a Jar of my netbeans project of my project.When I am running my jar ...
0
votes
4answers
46 views
return a value from .bat file to the calling application
I am using the below code to execute the .bat file and read the response.
java.lang.ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/C", "C:\\main.bat");
java.lang.Process p = pb.start(); ...
1
vote
1answer
44 views
Java read String on batch
I have a batch as follows:
@echo off
java Main 127.0.0.1
pause
Now I want the number after 'Main' in the code above to be a String, so that you can change the String by editing the batch file.
4
votes
1answer
44 views
Make shared memory for multiple batch files running simultaneously
I am trying to run a tagger through batch file for different files. This is my code:
String runap1="cd spt1"+"\n"+"java -Xss8192K -Xms128m -Xmx640m -classpath stanford-postagger.jar ...
0
votes
1answer
37 views
Pass the value of variable to calling java code from .bat file
I have the following scenario.
Java --> main.bat --> sub.bat
sub.bat--> main.bat-->java
the main.bat looks something like this
call sub.bat c:\sample.txt value1
echo %value1% <--does not work
...
0
votes
4answers
70 views
Get java installed path using batch file? [duplicate]
I need to set JAVA_HOME variable using batch script
Tried below codes, but no use.
for /f %%j in ("java.exe") do @echo.%%~dp$PATH:j
the above script gives empty
FOR /F "skip=2 tokens=2*" ...