Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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
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