[HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
Moderator: admin
-
- Posts: 6
- Joined: Tue Apr 23, 2024 3:03 am
- Contact:
[HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
Not adding Class-Path: . in manifest made me looking for error for an hour: no main manifest attribute, in accounting.jar
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
There is no need to add Class-Path: . in manifest. You must be doing something different from the steps explained in the book. Which JDK are you using?
I tried the steps exactly as given in the book just now and it worked fine. No Class-Path: . in manifest.
I tried the steps exactly as given in the book just now and it worked fine. No Class-Path: . in manifest.
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Tue Apr 23, 2024 3:03 am
- Contact:
Re: [HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
i followed book instructions
JDK version:
java version "11.0.16" 2022-07-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16+11-LTS-199)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16+11-LTS-199, mixed mode)
JDK version:
java version "11.0.16" 2022-07-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16+11-LTS-199)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16+11-LTS-199, mixed mode)
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
Something is messed up with your JDK installation.
See the attached screenshot. It shows the contents of the manifest as well as the output of java -version. You can see that there is no Class-Path in the manifest. It is not required and it shouldn't be there anyway.
See the attached screenshot. It shows the contents of the manifest as well as the output of java -version. You can see that there is no Class-Path in the manifest. It is not required and it shouldn't be there anyway.
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Tue Apr 23, 2024 3:03 am
- Contact:
Re: [HD Pg 22, Sec. 1.8.2 - packaging-classes-into-jar]
yes probably i'll check it later
sorry for this short waste of your time
sorry for this short waste of your time
Who is online
Users browsing this forum: No registered users and 30 guests