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
- 
				zunayeed
 - Posts: 10
 - Joined: Fri Jun 28, 2019 10:58 am
 - Contact:
 
- 
				brintal
 - 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?
			
			
									
									
						
		Online		
						
						
		
				
		
		
	- 
				admin
 - Site Admin
 - Posts: 10443
 - 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.
- 
				raphaelzintec
 - Posts: 167
 - Joined: Sun Apr 21, 2024 10:43 am
 - Contact:
 
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
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 ""
			
			
									
									
						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 ""
		Online		
						
						
		
				
		
		
	- 
				admin
 - Site Admin
 - Posts: 10443
 - Joined: Fri Sep 10, 2010 9:26 pm
 - Contact:
 
Re: About Question enthuware.ocpjp.i.v11.2.3025 :
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.
			
			
									
									
						- 
				raphaelzintec
 - Posts: 167
 - Joined: Sun Apr 21, 2024 10:43 am
 - Contact:
 
Who is online
Users browsing this forum: No registered users and 10 guests