The attched simple sample can not compile with javac. There is no problems with eclipse, and in the rt.jar and the file XMLStreamReaderFactory.class is on the correct place.
Command line: %JAVA_HOME6%\bin\javac CompilerSample.java
OS: Windows 2000 and Windows XP
Version:
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b100)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b100, mixed mode, sharing)
Compiler Output:
=================
CompilerSample.java:1: package com.sun.xml.internal.ws.streaming does not exist
import com.sun.xml.internal.ws.streaming.XMLStreamReaderFactory;
^
CompilerSample.java:8: cannot find symbol
symbol : variable XMLStreamReaderFactory
location: class CompilerSample
XMLStreamReaderFactory.createXMLStreamReader(new StringReader(""), false);
^
2 errors
Source:
=======
import com.sun.xml.internal.ws.streaming.*;
import java.io.StringReader;
public class CompilerSample{
void test(){
XMLStreamReaderFactory.createXMLStreamReader(new StringReader(""), false);
}
}