A
asd
hi all,
I am using jsdk1.4.2.
My simple application goes like this:
import java.io.*;
import javax.xml.transform;
public class Jax{
public static void main(String args[]) throws
javax.xml.transform.TransformerException{
File xmlFile = new File(args[0]);
System.out.println("Created the file");
javax.xml.transform.Source xmlSource =
new javax.xml.transform.stream.StreamSource(xmlFile);
System.out.println("Created XmlSource");
}
}
and when I compile this file by typing the command javac Jax.java
this is the error that I get.
[root@localhost exp]# javac Jax.java
Jax.java:2: Class or interface `javax.xml.transform' not found in
import.
import javax.xml.transform;
^
Jax.java:5: Class `javax.xml.transform.TransformerException' not found
in `throws'.
public static void main(String args[]) throws
javax.xml.transform.TransformerException{
^
Jax.java:9: Type `javax.xml.transform.Source' not found in the
declaration of the local variable `xmlSource'.
javax.xml.transform.Source xmlSource =
^
3 errors
I opened src.jar and found that javax.xml.transform package is
implemented.
Any idea what is the problem.
Any help will be appreciated.
regards and thanx in advance
asd
I am using jsdk1.4.2.
My simple application goes like this:
import java.io.*;
import javax.xml.transform;
public class Jax{
public static void main(String args[]) throws
javax.xml.transform.TransformerException{
File xmlFile = new File(args[0]);
System.out.println("Created the file");
javax.xml.transform.Source xmlSource =
new javax.xml.transform.stream.StreamSource(xmlFile);
System.out.println("Created XmlSource");
}
}
and when I compile this file by typing the command javac Jax.java
this is the error that I get.
[root@localhost exp]# javac Jax.java
Jax.java:2: Class or interface `javax.xml.transform' not found in
import.
import javax.xml.transform;
^
Jax.java:5: Class `javax.xml.transform.TransformerException' not found
in `throws'.
public static void main(String args[]) throws
javax.xml.transform.TransformerException{
^
Jax.java:9: Type `javax.xml.transform.Source' not found in the
declaration of the local variable `xmlSource'.
javax.xml.transform.Source xmlSource =
^
3 errors
I opened src.jar and found that javax.xml.transform package is
implemented.
Any idea what is the problem.
Any help will be appreciated.
regards and thanx in advance
asd