Hi,
In the correct answer, why is there .; after classpath : java -classpath .;abc.utils.jar Main
About Question enthuware.ocpjp.i.v11.2.3025 :
Moderator: admin
-
- Posts: 10
- Joined: Fri Jun 28, 2019 10:58 am
- Contact:
-
- Posts: 6
- Joined: Sun Jan 23, 2022 8:43 am
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Same question. Anyone got an answer for that?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
That is the path separator. Observe this line in the problem statement:
(Assume that abc.utils.jar and your application classes are in current directory.)
So, you need both - the current directory and the module jar, in your classpath.
(Assume that abc.utils.jar and your application classes are in current directory.)
So, you need both - the current directory and the module jar, in your classpath.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Bing [Bot] and 46 guests