Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2004

Tip: Looking for answers? Try searching our database.

Trying to extend a CharsetConverter

Thread view: 
Mark88 - 19 Apr 2004 21:28 GMT
I get the compiler error:

can not resolve symbol:
Symbol: CharToByte8859_1
location: package io
import: sun.io.CharToByte8859_1;

with the following bit of code:

import sun.io.CharToByte8859_1;

public class <class-name> extends CharToByte8859_1{

...
}

Could someone help with this?
Roedy Green - 20 Apr 2004 04:20 GMT
n 19 Apr 2004 13:28:13 -0700, yonathan@berkeley.edu (Mark88) wrote or
quoted :

>import: sun.io.CharToByte8859_1;

you are cheating. You are not supposed to use these sun.* classes only
indirectly.

The class file lives in C:\j2sdk1.4.2_04\lib\charsets.jar

What happens if you put this jar explicitly on the classpath?

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Thomas Weidenfeller - 20 Apr 2004 09:17 GMT
> import sun.io.CharToByte8859_1;
>
> public class <class-name> extends CharToByte8859_1{

http://java.sun.com/products/jdk/faq/faq-sun-packages.html

/Thomas


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.