I am trying to create a jar. But when I try to run the jar command following errors occur:
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
I have read posts from people having same problem but couldnot solve the error.Please help.
Please supply more details, otherwise we can’t help.
What command are you using?
What are the contents of the .jar’s manifest file?
What happens when you execute java -version and javac -version from the command line?
Tell us the full error message, using copy-and-paste.
Joined: Apr 03, 2012
command : jar cf jar-file input-files
java -version: java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
The error message I gave in my first post is the full error message