Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Khalid Test Not working

 
Deepa sivasankar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded th khalid;s test but when i run i am getting the error message
count = 0, total = 31
Failed to load Main-class manifest attribute from
pgjc-engine.jar
any one has any idea will be greatly appreciated.
I run from the dos prompt java -jar pgjc-engine.jar
I have path set correctlky i use jdk1.2
thanks for ur help
 
Deepa sivasankar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one has used khalid's test tell me whether they got it worked?
thanks for ur help
 
Surya B
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deepa,
I downloaded the exam from this link
http://www.ii.uib.no/~khalid/pgjc/jcbook/engine.html.
Maybe as per my guess the download was not proper.Anyway after downloading to your directory go from the command prompt to that directory and say
set classpath=.;%classpath;and then i typed in
java -jar pgjc-engine.jar
It worked on my machine,i am also using jdk 1.2.2.
Try downloading the stuff once again,it might work.

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

For me, the .jar file didnot work. So, I had to download
the .zip file and that worked with the same command like above...
java -jav ???.zip
Regds.
- satya
 
Deepa sivasankar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot satya and surya.
I downloaded the zip file again and it worked. but jar file didn't work.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
I just downloaded the jar file and it worked. If it still doesnt work try the command
java -cp pgjc-engine.jar no.rwr.engine.App
Anyway does any one know how to create a jar file such that you can execute by using the java -jar option . I will give my comments later.
Hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic