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: 10384
- 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.
-
- 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: 10384
- 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
Who is online
Users browsing this forum: No registered users and 11 guests