0

I googled to see solution for my problem, but no luck. I need to run two classes using single java jar file. Below are the steps I performed:

> jar cvf db-p.jar A.class B.class 
added manifest
adding: A.class(in = 31907) (out= 14360)(deflated 54%) 
adding: B.class(in = 14066) (out= 6912)(deflated 50%) 
> java -classpath db-p.jar A
Error: Could not find or load main class A

Please let me know what's the issue with my steps.

Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
CentosUser
  • 201
  • 1
  • 4
  • 14

0 Answers0