Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14828
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | rt.jar classlpath confusion |
| Date | 2012-05-26 19:10 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <trf1s71fck5nvoissf1gstqd1brp8j0pvq@4ax.com> (permalink) |
I thought that Javac.exe finds rt.jar all by itself. Now I am
puzzled.
I have code like this:
// Ideally turn off Java logging even SEVERE faulty cookie
messages from KOBO, but Javac can't find jars
PlatformLogger logger = PlatformLogger.getLogger(
"java.net.CookieManager" );
logger.setLevel( PlatformLogger.OFF );
CookieHandler.setDefault( new CookieManager( null /* in ram
store */, CookiePolicy.ACCEPT_ORIGINAL_SERVER ) );
It complies fire under IntelliJ, but when I feed it to Javac.exe with
ant it says there is no such package as
sun.util.logging.PlatformLogger;
I discovered the class lives in E:\Program
Files\Java\jdk1.7.0_04\jre\lib\rt.jar
JAVA_HOME=E:\Program Files\java\jdk1.7.0_04
--
Roedy Green Canadian Mind Products
http://mindprod.com
I would be quite surprised if the NSA (National Security Agency)
did not have a computer program to scan bits of shredded
documents and electronically put them back together like a giant
jigsaw puzzle. This suggests you cannot just shred, you must also burn.
.
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
rt.jar classlpath confusion Roedy Green <see_website@mindprod.com.invalid> - 2012-05-26 19:10 -0700
csiph-web