Jump to content

Help me in opening jar files..

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
raghu

raghu

    Newbie

  • Members
  • PipPip
  • 11 posts
Hey anyone please provide instructions to open a .jar file...

Thanks in advance..:)


#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
In order to run a .jar file, you must have the Java Runtime Environment (JRE) installed. A .jar is like a zip (i think you can even open it with winrar or so) but it is also runnable as Java software if the JRE is installed.

I suppose a JRE is automatically installed if you have the JDK (Java Development Kit) installed.

#3
raghu

raghu

    Newbie

  • Members
  • PipPip
  • 11 posts

oxano said:

In order to run a .jar file, you must have the Java Runtime Environment (JRE) installed. A .jar is like a zip (i think you can even open it with winrar or so) but it is also runnable as Java software if the JRE is installed.

I suppose a JRE is automatically installed if you have the JDK (Java Development Kit) installed.

I've installed JDK 1.6. But after running that .jar file using java -jar command it saying that main class path file is missing.. :(

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
That suggests that whoever created the jar file may have screwed up. It could be missing a file, have files in the wrong place, etc. Moving things around in the jar file is unlikely to work well. It's also possible that someone renamed the jar file, which will cause problems.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Then, assuming the .jar files contains a .class file with the main method, the .jar file must be corrupt or some kind. :(

The JRE will search for the main method to start running with help from the manifest file which tells the JRE where that main method is. For some odd reason it can't find it. The manifest file should be automatically created when the .jar is being made.

#6
raghu

raghu

    Newbie

  • Members
  • PipPip
  • 11 posts

oxano said:

Then, assuming the .jar files contains a .class file with the main method, the .jar file must be corrupt or some kind. :(

The JRE will search for the main method to start running with help from the manifest file which tells the JRE where that main method is. For some odd reason it can't find it. The manifest file should be automatically created when the .jar is being made.

Ok. I'll check it once..
Thankyou dude..