Open a .bat file
Solved
ellsamig
Posted messages
64
Status
Membre
-
simonboss -
simonboss -
Hello,
I can't open a .bat file
when I click on it, the command prompt opens and closes very very quickly
how can I open it and what will I find in this type of file
thank you in advance
I can't open a .bat file
when I click on it, the command prompt opens and closes very very quickly
how can I open it and what will I find in this type of file
thank you in advance
8 réponses
Hello,
to open a batch file, right-click on it, then click on 'open with', and choose notepad.
Best regards.
--
That guy wasn't too bright, because he was stupid.
to open a batch file, right-click on it, then click on 'open with', and choose notepad.
Best regards.
--
That guy wasn't too bright, because he was stupid.
I right-clicked on it, but the context menu does not contain "open with"; it only has the open option.
Thank you, I can open the file with Notepad
but I want to execute it since the execution instructions indicate that the .bat file should be executed
also, I cannot understand the code it contains
here is the code:
@echo off REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
thanks again
but I want to execute it since the execution instructions indicate that the .bat file should be executed
also, I cannot understand the code it contains
here is the code:
@echo off REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
thanks again
Once you have properly configured your environment variable, the content of the .bat file is used to compile the AutoSummENGGui.java class
your file allocates 256MB of memory to the JVM and then loads the two jars JInsect.jar;lib/openjgraph.jar and compiles your AutoSummENGGui class
@echo off REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
see the link:
https://forums.commentcamarche.net/forum/affich-2143404-variable-d-environnement-java
your file allocates 256MB of memory to the JVM and then loads the two jars JInsect.jar;lib/openjgraph.jar and compiles your AutoSummENGGui class
@echo off REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
see the link:
https://forums.commentcamarche.net/forum/affich-2143404-variable-d-environnement-java
I can open the file with Notepad as described by "nathom"
but I don't understand the code it contains
here is the code:
@echo off
REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
but I don't understand the code it contains
here is the code:
@echo off
REM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
Hello,
This .bat is intended to execute the "program" or rather the Java project contained in the JInsect.jar archive.
To run it and see any messages related to its execution in the console, you need to go to Start / Run
There, type cmd in the text box, then press [enter].
A command window (pseudo DOS) opens, and you need to navigate to the directory where your .bat is stored on your PC.
For example, if the command prompt displays C:\Documents and Settings\ellsamig>
And the .bat is located under C:\Documents and Settings\ellsamig\Project\
=> You should type CD Project [Enter]
Then, once you are in the right directory, simply type the name of your .bat file (without ".bat"), followed by the [enter] key.
--
(:*Þ Pitù
This .bat is intended to execute the "program" or rather the Java project contained in the JInsect.jar archive.
To run it and see any messages related to its execution in the console, you need to go to Start / Run
There, type cmd in the text box, then press [enter].
A command window (pseudo DOS) opens, and you need to navigate to the directory where your .bat is stored on your PC.
For example, if the command prompt displays C:\Documents and Settings\ellsamig>
And the .bat is located under C:\Documents and Settings\ellsamig\Project\
=> You should type CD Project [Enter]
Then, once you are in the right directory, simply type the name of your .bat file (without ".bat"), followed by the [enter] key.
--
(:*Þ Pitù
No way, not even close
I did everything you said
but the following message is displayed "offREM Should update the java path below
offREM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
'java' is not recognized as an internal or external command, operable program or batch file
what's the problem???
I have the JDK, JRE and JAVA virtual machine installed on my PC
but the following message is displayed "offREM Should update the java path below
offREM Should update the java path below
java -Xmx256M -cp JInsect.jar;lib/openjgraph.jar gr.demokritos.iit.jinsect.gui.AutoSummENGGui
'java' is not recognized as an internal or external command, operable program or batch file
what's the problem???
I have the JDK, JRE and JAVA virtual machine installed on my PC
The problem in this case is that you haven't set the HAVA_HOME variable in the environment variables to point to the JDK (e.g., C:\Program Files\Java\jdk1.6.0_30).
That's why when you type a -java command, it is not recognized by your system.
Test in a command prompt >> java -version
If you don't see something that looks like the text below, then your variable is not set:
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
That's why when you type a -java command, it is not recognized by your system.
Test in a command prompt >> java -version
If you don't see something that looks like the text below, then your variable is not set:
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)