how to run a java program..when the program using jar
hi..
i successfully compiled the java program with
Code :
javac -classpath "D:\Libraries\SQLite_DAL.jar" JavaApplication_KMF_Test.java
.
but i am unable to run the program in windows command prompt....
my program uses sqlitejdbc-v056.jar(driver) and SQLite_DAL.jar(it returns connectionstring .. etc..)... then how to run program...
sqlitejdbc-v056.jar(driver) and SQLite_DAL.jar(it returns connectionstring .. etc..) both are in same directory "D:\Libraries\"
and JavaApplication_KMF_Test.class is in "C:\Users\Srihari\Documents\NetBeansProjects\JavaA pplication_KMF_Test\src\JavaApplication_KMF_Test.c lass"
Re: how to run a java program..when the program using jar
I'm moving this thread. Please read this: http://www.javaprogrammingforums.com...e-posting.html
What do you mean you are "unable to run the program"? Do you get an error message? Strange behavior? Something else?
Re: how to run a java program..when the program using jar
Open a command prompt window, change to the folder with the class file and enter the java command there:
java -cp <JARFILENAMES>;. JavaApplication_KMF_Test
If there are errors:
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.