#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Cant run .jar file


    Some time ago I installed winrar and then I could not open. Jar files anymore. I've tried to open it with javaw.exe but nothing happens. What to do?
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    348
    Do you get any error messages? Open a command prompt window, change directory to the one with the jar file and enter the command:
    java -jar <THE JARFILENAME HERE>

    Copy the contents of the command prompt window and paste it here.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0
    No nothing happens. How do I change the directory?
  6. #4
  7. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,711
    Rep Power
    348
    Depends on the OS.
    On windows use the cd command. For example:
    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    D:\JavaDevelopment\Testing>dir forum*
     Volume in drive D is Work
     Volume Serial Number is 7CE8-AEC3
    
     Directory of D:\JavaDevelopment\Testing
    
    09/24/2011  09:46 AM    <DIR>          ForumQuestions
    09/24/2011  09:45 AM    <DIR>          ForumQuestions2
    09/24/2011  09:45 AM    <DIR>          ForumQuestions3
    09/24/2011  09:43 AM    <DIR>          ForumQuestions4
    09/24/2011  09:42 AM    <DIR>          ForumQuestions5
    06/20/2012  02:06 PM    <DIR>          ForumQuestions6
    09/15/2012  02:01 PM    <DIR>          ForumQuestions7
    09/24/2011  09:40 AM    <DIR>          ForumQues_Ubuntu
    09/24/2011  09:40 AM    <DIR>          Forum_CodeGuru
    09/24/2011  09:40 AM    <DIR>          Forum_JavaForum
    09/24/2011  09:40 AM    <DIR>          Forum_JavaRanch
                   0 File(s)              0 bytes
                  11 Dir(s)  55,972,106,240 bytes free
    
    D:\JavaDevelopment\Testing>cd forumQuestins7   <<<<<< Misspelled
    The system cannot find the path specified.
    
    D:\JavaDevelopment\Testing>cd ForumQuestions7
    
    D:\JavaDevelopment\Testing\ForumQuestions7>

IMN logo majestic logo threadwatch logo seochat tools logo