Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   rt.jar classlpath confusion (http://www.velocityreviews.com/forums/t946591-rt-jar-classlpath-confusion.html)

Roedy Green 05-27-2012 02:10 AM

rt.jar classlpath confusion
 
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.
..


All times are GMT. The time now is 12:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57