See zhi-ming zhou teacher of Java virtual machine (there are so a -- -- -- -- -- --
"If readers are interested, you can try to write a rt. The class name repetition of the jar libraries Java classes, will find that it can be normal compilation, but can never be loaded running"
I tried to find a custom moniker class (I'm here "LineTokenizer" this class), can be used by the normal load?
Where is my wrong?
CodePudding user response:
refer to the original poster north north I's reply: see zhi-ming zhou teacher have so a Java virtual machine (the book -- -- -- -- -- -- "If readers are interested, you can try to write a rt. The class name repetition of the jar libraries Java classes, will find that it can be normal compilation, but can never be loaded running" I tried to find a custom moniker class (I'm here "LineTokenizer" this class), can be used by the normal load? Where is my wrong? Are you sure you this class is rt. The jar of the following? CodePudding user response:
Is not the same as the package name, equivalent to two classes CodePudding user response:
I didn't find the class anyway below 1.8 CodePudding user response:
This class compilation tool himself unable to load the class you rewrite the also have no meaning, you need to find the class compiler can load CodePudding user response:
You rewrite the public class, can't call on this package, rewritten into a public class, you can package calls, this two kind of different permissions, when the package other available will not cause conflict, CodePudding user response:
reference 1st floor qq_39936465 response: Quote: refer to the original poster north north I's reply: see zhi-ming zhou teacher have so a Java virtual machine (the book of -- -- -- -- -- -- "If readers are interested, you can try to write a rt. The class name repetition of the jar libraries Java classes, will find that it can be normal compilation, but can never be loaded running" I tried to find a custom moniker class (I'm here "LineTokenizer" this class), can be used by the normal load? Where is my wrong? Are you sure you this class is rt. The jar of the following? Do you see the third picture is rt. The jar of ah CodePudding user response:
refer to the second floor do a pirates reply: package names are different, the equivalent of two class Rt. Under the jars of class how can I be in the same package to write a moniker class??????? CodePudding user response:
The path of the package types CodePudding user response:
refer to the second floor do a pirates reply: package names are different, the equivalent of two class Oh I are crazy I try myself to define a package reference 5 floor qq_39936465 reply: you rewrite the public class, can't call on this package, rewritten into a public class, you can package calls, this two kind of different permissions, when the package diversion will not cause conflict, it Understand a little bit I look for other classes have a try