-   Linux - Newbie (
-   -   unable to access jarfile (

randosa 06-12-2012 04:30 PM

unable to access jarfile
i am new to java and the linux environment and i have created a java form and added a class to it in the form of a library. I can run it successfully from my IDE but i cannot run it from the terminal. When i try to run it from the terminal i get "unable to access jarfile" error. i have not entered my PATH OR LIBRARY PATH AS i am confused on how this is done in linux. I know i have to use setenv and i sued that to add the CLASSPATH but when i try to do it for PATH it says command not found and plus it overwrites the current environment variables. How do i run this .jar file as an executbale from the command line terminal? i have the manifest file that was generated by the IDE and it says the following

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Created-By: 1.6.0_22-b04 (Sun Microsystems Inc.)
Class-Path: lib/mysql-connector-java-5.1.13-bin.jar lib/mylib.jar
X-COMMENT: Main-Class will be added automatically by build
Main-Class: eopprototype.EOPPrototype

i have created an environment variable called classpath and added this to it but i dnt know why it i am not able to run this .jar file

randosa 06-12-2012 04:32 PM

also sometimes when i try to type in the command java -jar EOPPrototype.jar it doesnt do anything it just moves to the next command line terminal statement

All times are GMT -5. The time now is 01:15 PM.