Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unhappy new user saying hi and hit the ground running

    hi guys...sorry but i am new to this site abd linux and i am going to have to hit the ground running lol

    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

    sometimes when i type in the command jar -jar EOPPrototype.jar it just moves to the next command line statement? how can i solve this problem?




  2. #2
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    sorry guys the IDE used to create the jar is NETBEANS

  3. #3
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    new error

    new error...it shows this when i try to run the jar file along with the path to where my jar file is actually located and this is the error i receive


    Error occurred during initialization of VM
    java.lang.Error: Properties init: Could not determine current working directory.
    at java.lang.System.initProperties(Native Method)
    at java.lang.System.initializeSystemClass(System.java :1070)

 

 

Similar Threads

  1. Samba 3 and Winbind (local user + domain user)
    By ma00 in forum General Server
    Replies: 0
    Last Post: 05-09-2012, 10:02 AM
  2. Audit of user's activity
    By efromeroc in forum General Server
    Replies: 2
    Last Post: 03-20-2012, 09:30 AM
  3. User-friendly fancontrol?
    By carbon333 in forum General Linux
    Replies: 1
    Last Post: 02-16-2012, 02:18 PM
  4. The Linux top 10 hit parade
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-29-2011, 08:01 PM
  5. Carrier IQ monitoring company hit by lawsuits
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-06-2011, 09:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,537
Threads: 3,911
Posts: 9,421
Top Poster: Fred (1,486)
Welcome to our newest member, Richelles

» Links



Powered by vBadvanced CMPS