new user saying hi and hit the ground running

Discussion in 'Member Introductions' started by randosa, Jun 12, 2012.

  1. randosa

    randosa New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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. randosa

    randosa New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    sorry guys the IDE used to create the jar is NETBEANS
  3. randosa

    randosa New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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)

Share This Page