Page 1 of 1
About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Sun Sep 08, 2019 9:09 am
by zunayeed
Hi,
In the correct answer, why is there .; after classpath : java -classpath .;abc.utils.jar Main
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Sun Jan 23, 2022 2:16 pm
by brintal
Same question. Anyone got an answer for that?
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Sun Jan 23, 2022 10:52 pm
by admin
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.
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Fri Feb 07, 2025 10:05 am
by raphaelzintec
can enthuware team please answear to my questions because i don't use forum to waste time, or critisize your amazing job, i just use the forum to improve my knowledge in java, i'm not the smartest
so here is my question regarding this topic
why guys do you use .;abc.utils.jar and not ".;abc.utils.jar" because i learned that on linux you use : without "" but on windows you use ; with ""
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Fri Feb 07, 2025 10:56 am
by admin
There is no particular reason to use one style over the other. Commands specified on the command line are OS/platform dependent and you should be aware of both styles.
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
Posted: Fri Feb 07, 2025 11:12 am
by raphaelzintec
thank you