LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices

Reply
 
Search this Thread
Old 06-12-2012, 03:30 PM   #1
randosa
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 06-12-2012, 03:32 PM   #2
randosa
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
unable to access repositories betula Linux - Desktop 7 08-20-2008 02:04 PM
Unable to access hg!!! please help wrapster Solaris / OpenSolaris 2 07-21-2008 08:14 AM
Unable to access a particular website jdavis72 Linux - Networking 3 06-22-2006 05:33 PM
[SOLVED] unable to access harddisk lunardragon Linux - Hardware 4 03-03-2006 09:18 AM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration