The java command? sorry I don't know what you mean. Is that a specific file in the jar?
Printable View
The java command? sorry I don't know what you mean. Is that a specific file in the jar?
java -jar <JARFILENAME>.jar
The java command? I don't know what that is....Is it a specific file in the jar?
The java.exe program
I just typed what you put into the cmd and got this...i don't know if that's what you mean:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Danny>APCHEM.jar
C:\Users\Danny>
C:\Users\Danny>java -jar APCHEM.jar
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Danny>
You need to have the full path the java.exe file
just the same as I asked you to use in the batch file.
I don't have a .exe program....I'm assuming you mean the .jar. And when i run the .bat file which runs it it just says invalid/corrupt jar
If you do not have the java.exe file, you can NOT execute a jar file.
What command did you put in the batch file?
The java.exe file comes with the JDK.
i put this in the batch:
ECHO OFF
C:\Users\Danny\APCHEM.jar
PAUSE
all I did was export through eclipse. I don't know exactly where I should be searching for a java.exe
Do you have the JDK installed? It has a bin folder and inside there is the java.exe program.
alright well i found the java.exe in the bin folder....i double clicked it and it pops up and goes away. what exactly do you want me to do?
You need to find a tutorial that explains how to use the java command and how to set up and use jar files.
It's late and I'm done for the night.
Good luck
alright my laptop's about to die anyway. Thank you for all of your help I'll look into it more.