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:
-
- Site Admin
- Posts: 10064
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
As the problem statement says your application classes are in current directory, you need the current directory in the classpath. dot implies current directory.
If you like our products and services, please help us by posting your review here.
-
- Posts: 10
- Joined: Fri Jun 28, 2019 10:58 am
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
after the dot, there is a semicolon. why is that ?
-
- Site Admin
- Posts: 10064
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
path separator. to separate the two paths - . and abc.utils.jar
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 87 guests