This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes How to invoke own customized package implicitly like java.lang Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

How to invoke own customized package implicitly like java.lang

Robin Rath
Greenhorn

Joined: Jan 07, 2008
Posts: 10
Hi All,
I want to write a package that should be imported automatically like java.lang. Can anybody help me!Its urgent please reply me soon, I will be greatfull to you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39570
    
  27
That's not possible. (And if it were, it would be a functionality of the compiler, not the code you create.) What's the big deal with having an import statement in a source file?


Ping & DNS - updated with new look and Ping home screen widget
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8713
    
    6

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to invoke own customized package implicitly like java.lang
 
Similar Threads
standard action doubt
important package
can we add our own package in java?
important package
How to invoke own customized package implicitly like java.lang