Results 1 to 2 of 2
  1. #1
    bluesagemedia is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default error in the Command Prompt when running a bat file

    I am getting an error when I am trying to run a bat file can anyone tell me what to d to correct this

    Error occurs during initialization of VM
    java/lang/ClassNotFoundException: error in opening jar file c:\jre\lib\rt.jar
    I have read that I may need to reinstall the jre and when I do it tells me there ia a copy already on the computer. now when i install do i need to have Xp windows VM running and how do I uninstall the corrupted jre

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    On XP you add and remove programs from the Control Panel by selecting ... "Add or Remove Programs".

    But before you reinstall the jre you should make sure there really is something wrong with it. You haven't posted the contents of the .bat or the (complete) console message so it's really a bit hard to know at this distance whether a reinstallation is justified.

    Begin by writing a small "hello world" type app and launch that from a batch file and see what happens.

Similar Threads

  1. Compiling/Running in Command Prompt
    By coke_in_a_can in forum New To Java
    Replies: 12
    Last Post: 05-31-2010, 09:05 AM
  2. running command prompt using java
    By xclaim in forum New To Java
    Replies: 1
    Last Post: 01-14-2010, 03:46 AM
  3. Running applet from command prompt
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 03-12-2009, 08:10 AM
  4. problems in running d command prompt commands
    By postaholic066 in forum Advanced Java
    Replies: 1
    Last Post: 09-10-2008, 03:47 PM
  5. Running eclipse java project on command prompt
    By hnmapara in forum New To Java
    Replies: 1
    Last Post: 07-09-2008, 08:29 AM

Posting Permissions

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