I am getting com.sun.kvem.ktools.ExecutionException error

Below is the error that I get in the console while building the midlet in J2ME Wireless ToolKit 2.0
Building "ParseXML"
C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \187
+import javax.microedition.midlet.*;*+
*^*
C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \191+
*import javax.microedition.midlet.*;
+^+
+2 errors+
com.sun.kvem.ktools.ExecutionException
Build failed
Below is the actual java code
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
//kxml imports
import org.kxml.*;
import org.kxml.parser.*;
public class ParseXML extends MIDlet implements CommandListener {
private Command exitCommand; // The exit command
private Command displayXML; // On execution, it displays title and description
// on phone screen
private Display display; // The display for this MIDlet
// UI Items for display of title and description on phone screen
private static TextBox t;
private static String textBoxString = "";
// XML String
private String xmlStr = "";
public ParseXML() {
display = Display.getDisplay( this );
exitCommand = new Command( "Exit", Command.EXIT, 2 );
displayXML = new Command( "XML", Command.SCREEN, 1 );
// The XML String in form of RSS
StringBuffer xmlString = new StringBuffer();
xmlString.append("<?xml version=\"1.0\"?><!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"");
xmlString.append("\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">");
xmlString.append("<rss version=\"0.91\">");
xmlString.append("<channel><title>Meerkat: An Open Wire Service</title>");
xmlString.append("<link>http://meerkat.oreillynet.com</link>");
xmlString.append("<description>Meerkat is a Web-based syndicated content reader based on RSS (\"Rich Site Summary\"). RSS is a fantastic, simple-yet-powerful syndication system rapidly gaining momentum.");
xmlString.append("</description><language>en-us</language>");
xmlString.append("</channel>");
xmlString.append("</rss>");
xmlStr = xmlString.toString();
public void startApp() {
// The textbox displays title and description from a RSS String
t = new TextBox( "MIDlet XML", "kXML", 256, 0 );
t.addCommand( exitCommand );
t.addCommand( displayXML );
t.setCommandListener( this );
display.setCurrent( t );
Pause is a no-op since there are no background activities or
record stores that need to be closed.
public void pauseApp() { }
Destroy must cleanup everything not handled by the garbage collector.
In this case there is nothing to cleanup.
public void destroyApp(boolean unconditional) { }
Respond to commands, including exit. On the exit command, cleanup
and notify that the MIDlet has been destroyed.
public void commandAction(Command c, Displayable s) {
if ( c == exitCommand ) {
destroyApp( false );
notifyDestroyed();
else if ( c == displayXML ) {
try {
viewXML();
catch( Exception e ) {
e.printStackTrace();
// This function sets up kxml parser and calls traverse() to parse the whole XML String
public void viewXML() throws IOException {
try {
byte[] xmlByteArray = xmlStr.getBytes();
ByteArrayInputStream xmlStream = new
ByteArrayInputStream( xmlByteArray );
InputStreamReader xmlReader = new
InputStreamReader( xmlStream );
XmlParser parser = new XmlParser( xmlReader );
try
traverse( parser, "" );
catch (Exception exc)
exc.printStackTrace();
return;
catch ( IOException e ) {
return ;
} finally {
return ;
Traverses the XML file
public static void traverse( XmlParser parser, String indent ) throws Exception
boolean leave = false;
String title = new String();
String desc = new String();
do {
ParseEvent event = parser.read ();
ParseEvent pe;
switch ( event.getType() ) {
// For example, <title>
case Xml.START_TAG:
// see API doc of StartTag for more access methods
// Pick up Title for display
if ("title".equals(event.getName()))
pe = parser.read();
title = pe.getText();
// Pick up description for display
if ("description".equals(event.getName()))
pe = parser.read();
desc = pe.getText();
textBoxString = title + " " + desc;
traverse( parser, "" ) ; // recursion call for each <tag></tag>
break;
// For example </title?
case Xml.END_TAG:
leave = true;
break;
// For example </rss>
case Xml.END_DOCUMENT:
leave = true;
break;
// For example, the text between tags
case Xml.TEXT:
break;
case Xml.WHITESPACE:
break;
default:
} while( !leave );
t.setString( textBoxString );

Below is the error that I get in the console while building the midlet in J2ME Wireless ToolKit 2.0
Building "ParseXML"
C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \187
import javax.microedition.midlet.;
^
C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \191
import javax.microedition.midlet.;
^
2 errors
com.sun.kvem.ktools.ExecutionException
Build failed
Below is the actual java code
import javax.microedition.midlet.;
import javax.microedition.lcdui.;
import javax.microedition.io.;
import java.io.;
//kxml imports
import org.kxml.;
import org.kxml.parser.;
public class ParseXML extends MIDlet implements CommandListener {
private Command exitCommand; // The exit command
private Command displayXML; // On execution, it displays title and description
// on phone screen
private Display display; // The display for this MIDlet
// UI Items for display of title and description on phone screen
private static TextBox t;
private static String textBoxString = "";
// XML String
private String xmlStr = "";
public ParseXML() {
display = Display.getDisplay( this );
exitCommand = new Command( "Exit", Command.EXIT, 2 );
displayXML = new Command( "XML", Command.SCREEN, 1 );
// The XML String in form of RSS
StringBuffer xmlString = new StringBuffer();
xmlString.append("<?xml version=\"1.0\"?><!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"");
xmlString.append("\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">");
xmlString.append("<rss version=\"0.91\">");
xmlString.append("<channel><title>Meerkat: An Open Wire Service</title>");
xmlString.append("<link>http://meerkat.oreillynet.com</link>");
xmlString.append("<description>Meerkat is a Web-based syndicated content reader based on RSS (\"Rich Site Summary\"). RSS is a fantastic, simple-yet-powerful syndication system rapidly gaining momentum.");
xmlString.append("</description><language>en-us</language>");
xmlString.append("</channel>");
xmlString.append("</rss>");
xmlStr = xmlString.toString();
public void startApp() {
// The textbox displays title and description from a RSS String
t = new TextBox( "MIDlet XML", "kXML", 256, 0 );
t.addCommand( exitCommand );
t.addCommand( displayXML );
t.setCommandListener( this );
display.setCurrent( t );
Pause is a no-op since there are no background activities or
record stores that need to be closed.
public void pauseApp() { }
Destroy must cleanup everything not handled by the garbage collector.
In this case there is nothing to cleanup.
public void destroyApp(boolean unconditional) { }
Respond to commands, including exit. On the exit command, cleanup
and notify that the MIDlet has been destroyed.
public void commandAction(Command c, Displayable s) {
if ( c == exitCommand ) {
destroyApp( false );
notifyDestroyed();
else if ( c == displayXML ) {
try {
viewXML();
catch( Exception e ) {
e.printStackTrace();
// This function sets up kxml parser and calls traverse() to parse the whole XML String
public void viewXML() throws IOException {
try {
byte[] xmlByteArray = xmlStr.getBytes();
ByteArrayInputStream xmlStream = new
ByteArrayInputStream( xmlByteArray );
InputStreamReader xmlReader = new
InputStreamReader( xmlStream );
XmlParser parser = new XmlParser( xmlReader );
try
traverse( parser, "" );
catch (Exception exc)
exc.printStackTrace();
return;
catch ( IOException e ) {
return ;
} finally {
return ;
Traverses the XML file
public static void traverse( XmlParser parser, String indent ) throws Exception
boolean leave = false;
String title = new String();
String desc = new String();
do {
ParseEvent event = parser.read ();
ParseEvent pe;
switch ( event.getType() ) {
// For example, <title>
case Xml.START_TAG:
// see API doc of StartTag for more access methods
// Pick up Title for display
if ("title".equals(event.getName()))
pe = parser.read();
title = pe.getText();
// Pick up description for display
if ("description".equals(event.getName()))
pe = parser.read();
desc = pe.getText();
textBoxString = title " " desc;
traverse( parser, "" ) ; // recursion call for each <tag></tag>
break;
// For example </title?
case Xml.END_TAG:
leave = true;
break;
// For example </rss>
case Xml.END_DOCUMENT:
leave = true;
break;
// For example, the text between tags
case Xml.TEXT:
break;
case Xml.WHITESPACE:
break;
default:
} while( !leave );
t.setString( textBoxString );
}

Similar Messages

  • Com.sun.kvem.ktools.ExecutionException

    Hi,
    I am very new to j2me. I am currently working on my final year project and is using an open source program known as gcalsync. When i load the jar file into my mobile phone, it is able to work. However, when I run the program on my laptop, i encounter the following error. Please help, thanks..
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:5: class or interface expected
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:9: annotations are not supported in -source 1.3
    (use -source 5 or higher to enable annotations)
    by Greg Stein - mailto:[email protected] -->
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:9: class or interface expected
    by Greg Stein - mailto:[email protected] -->
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:71: <identifier> expected
    <table class="auto">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:75: generics are not supported in -source 1.3
    (use -source 5 or higher to enable generics)
    <tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: illegal start of type
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: illegal start of expression
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: '(' expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: ';' expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: <identifier> expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: <identifier> expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of type
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of type
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: > expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of expression
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: ')' expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: <identifier> expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: <identifier> expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: > expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: <identifier> expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: illegal start of type
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: <identifier> expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: > expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: <identifier> expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: illegal start of type
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: <identifier> expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:82: <identifier> expected
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:82: <identifier> expected
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:83: <identifier> expected
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:83: <identifier> expected
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: illegal start of type
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: illegal start of expression
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: '(' expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: illegal start of type
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: > expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: illegal start of expression
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: '(' expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: <identifier> expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: ';' expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: <identifier> expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: > expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: illegal start of expression
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: illegal start of expression
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: > expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: illegal start of expression
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: <identifier> expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: ';' expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: <identifier> expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: illegal start of expression
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:95: illegal start of type
    </form>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:97: illegal start of type
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:98: illegal start of type
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:99: illegal start of type
    </table>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:110: illegal start of expression
    <hr />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:110: illegal start of expression
    <hr />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: > expected
    <a name="rev20"></a>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: illegal start of expression
    <a name="rev20"></a>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: <identifier> expected
    <a name="rev20"></a>
    ^
    100 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed

    HI,
    Sorry, I dont understand your reply. What do u mean by it is a misunderstanding and that you are correct?

  • FileOutputStream , j2me, com.sun.kvem.ktools.ExecutionException

    Dear all,
    please check it out the original code below, can anyone explain to me the problem and solution? Thank you.
    import java.io.*;
    import java.util.*;
    import java.lang.Character;
    import java.io.OutputStream;
    public class engineConvertion{
         public engineConvertion(){}
    //write a string to output file in format utf8
    static void writeOutput(String str, String fname) {
    try {
    FileOutputStream fos = new FileOutputStream(fname);
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    Here is the exception,
    Project settings saved
    Building "WMADemo"
    C:\Documents and Settings\Student\j2mewtk\2.5.2\apps\WMADemo\src\example\sms\engineConvertion.java:16: cannot find symbol
    symbol : class FileOutputStream
    location: class engineConvertion
    FileOutputStream fos = new FileOutputStream(fname);
    ^
    C:\Documents and Settings\Student\j2mewtk\2.5.2\apps\WMADemo\src\example\sms\engineConvertion.java:16: cannot find symbol
    symbol : class FileOutputStream
    location: class engineConvertion
    FileOutputStream fos = new FileOutputStream(fname);
    ^
    2 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed

    HI,
    Sorry, I dont understand your reply. What do u mean by it is a misunderstanding and that you are correct?

  • Missing class com.sun.kvem.ktools.RunRetro for RetroGuard in WTK 2.5 ?

    I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
    The obfuscation class file can not be loaded.
    com.sun.kvem.ktools.RunRetro
    Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
    Obfuscation failed.
    then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
    is that a bug? or anything i am missing?

    I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
    The obfuscation class file can not be loaded.
    com.sun.kvem.ktools.RunRetro
    Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
    Obfuscation failed.
    then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
    is that a bug? or anything i am missing?

  • Com.sun.kvem.midletsuite.InvalidJadException: Reason = 13 error!

    I get this error in WTK2.1 while trying to create package. Even the demos cannot be packaged.
    The exact error is:
    com.sun.kvem.midletsuite.InvalidJadException: Reason = 13
    The file C:\WTK21\apps\photoalbum\bin\MANIFEST.MF is missing the required attribute: MIDlet-Name
    The parameters are correctly set in Settings (the program above is a demo packaged with WTK2.1)
    Any help is appreciated. I use Windows XP.

    strange, check if the manifest looks like this one
    MIDlet-1: PhotoAlbum,, example.photoalbum.PhotoAlbum
    MIDlet-Data-Size: 256
    MIDlet-Description: Photoalbum of images
    MIDlet-Name: PhotoAlbum
    MIDlet-Permissions: javax.microedition.io.Connector.http
    MIDlet-Vendor: Sun Microsystems, Inc.
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0
    if not, there is something wrong. These lines above are from my manifest and it works. Maybe you made some strange settings about the MIDlet-Name?
    hth
    Kay

  • Where to get com/sun/mirror/apt/AnnotationProcessorFactor?

    I am facing a problem with locating com/sun/mirror/apt/AnnotationProcessorFactory while trying to deploy my webservice in Tomcat. Could you please tell in which JAR file can I find this?
    I made an apt build task in this manner. My compile.classpath contains: jaxws-tools.jar.
        <taskdef name="apt" classname="com.sun.tools.ws.ant.Apt">
            <classpath refid="compile.classpath"/>
        </taskdef>
        <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
            <classpath refid="jaxws.classpath"/>
        </taskdef>
        <target name="apt">
            <mkdir dir="${build.dir}"/>
            <mkdir dir="${build.dir}/WEB-INF"/>
            <mkdir dir="${build.dir}/WEB-INF/classes"/>
            <mkdir dir="${build.dir}/WEB-INF/lib"/>
            <copy todir="${build.dir}">
                <fileset dir="${web.dir}"/>
            </copy>
            <apt sourcepath="${src.dir}"
                 destdir="${build.dir}/WEB-INF/classes"
                 debug="${compile.debug}"
                 deprecation="${compile.deprecation}">
                <classpath refid="compile.classpath"/>
            </apt>
            <copy todir="${build.dir}/WEB-INF/classes">
                <fileset dir="${src.dir}" excludes="**/*.java"/>
            </copy>
            <copy todir="${build.dir}/WEB-INF/lib">
                <fileset dir="${lib.dir}">
                    <include name="*.jar"/>
                </fileset>
            </copy>
        </target>Then I tried building my project, but I got this error.
    humpty@nifty:~/lab/wsdl/jaxrpc$ ant
    Buildfile: build.xml
    Trying to override old definition of task apt
    apt:
          [apt] An exception has occurred in apt (1.6.0_10). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
          [apt] java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
          [apt]     at java.lang.ClassLoader.defineClass1(Native Method)
          [apt]     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          [apt]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          [apt]      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          [apt]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          [apt]      ... 38 more
          [apt] Command invoked: apt -d /home/humpty/lab/wsdl/jaxrpc/build/WEB-INF/classes -sourcepath /home/humpty/lab/wsdl/jaxrpc/src/java -g -classpath /home/humpty/lab/wsdl/jaxrpc/lib/FastInfoset.jar:/home/humpty/lab/wsdl/jaxrpc/lib/activation.jar:/home/humpty/lab/wsdl/jaxrpc/lib/http.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-impl.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-xjc.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-rt.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-tools.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr173_api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr181-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr250-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/mimepull.jar:/home/humpty/lab/wsdl/jaxrpc/lib/resolver.jar:/home/humpty/lab/wsdl/jaxrpc/lib/saaj-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/saaj-impl.jar:/home/humpty/lab/wsdl/jaxrpc/lib/stax-ex.jar:/home/humpty/lab/wsdl/jaxrpc/lib/streambuffer.jar:/home/humpty/lab/wsdl/jaxrpc/lib/woodstox.jar
    BUILD FAILED

    i found it in axis2-1.4-bin\axis2-1.4\lib\jaxb-xjc-2.1.6.jar
    but in different package
    jaxb-xjc-2.1.6.jar\com\sun\xml\xsom\parser
    maybe look for this jar.

  • Com/sun/jmx/mbeanserver/GetPropertyAction error installing

    I get the following error during installation of j2eejdk 1.4.2
    com/sun/jmx/mbeanserver/GetPropertyAction
    I have tried to create the domain1 manually with command
    asadmin create-domain adminport <port> adminuser <admin> adminpassword <pwd> instanceport <port> domain1
    com/sun/jmx/mbeanserver/GetPropertyAction
    I cannot start the server or do anything...I always get this message.

    You got the jdk1.5 classes somewhere in your classpath. jdk1.5 rt.jar ships with this class. make sure u remove it from the classpath

  • WebRowSet & com.sun.xml.parser.Resolver error

    Hi all,
    I have a xml file which is generated by a webrowset on the server and which is read by a webrowset object in an applet with readXml method. I know that the xml is sent in a well-formed format as I checked it in IE6.
    I also know that the applet is reading the url correctly. From my searches I have found people refering to chaning the SYTEM_ID property which keeps the location of the DTD file to point to a local copy to avoid lookup problems. I have done this and still get the error.
    I have an idea that it may be the way the XML file is being read. (See code below.)
    URL url = new URL ("http","localhost",8081,"/getXML.jsp");
    HttpURLConnection host =(HttpURLConnection)url.openConnection();
    host.connect();
    java.io.Reader tmp = new java.io.InputStreamReader(host.getInputStream());
    java.io.BufferedReader buf = new BufferedReader(tmp);
    webrs.readXml (buf);
    Any ideas or pointer appreciated.
    TIA

    Hmm. Could you perhaps post the full stack trace and error message from the exception.
    .P.

  • New com.sun.mirror.* packages - annotation processing

    Hello,
    i would like to use annotation processing tool (APT), but there is much to learn yet.
    So, please help me.
    Let�s have an annotation that can be apllied to all code declarations (source code entities).I want to process some *.java files (their proper source code) via APT.From this code i wanna gain (in any way) those declarations (classes, ifaces, methods, constructors, etc.) that are annotated just with the only one annotation that i have.
    i was already going through the API, but not well-understood.
    As written, i created AnnotationProcessorFactory (just my annotation should be processed by this factory) with an appropriate AnnotationProcessor.
    I�ve already done some steps to succeed, but you know, that�s not that i want
    Of course, all is performed in build-time, after i call apt command with the option factory with the appropriate factory class
    Thank you a lot

    Hi,
    I am new to this forum and also just started
    working on apt can u plz tell me where do i get
    com.sun.mirror package and its sub-packages
    hanksIf you can use JDK 6, I strongly recommend using the standardized annotation processioning in javac and the packages javax.annotation.processing and javax.lang.model..* instead of apt and its com.sun.mirror.* API. To get started, take a look at
    sample/javac/processing/src/CheckNameProcessor.java
    under the JDK 6 install directory.
    If you just need to compile against the apt API, it is found in the tools.jar file in Sun's JDK; see http://java.sun.com/j2se/1.5.0/docs/guide/apt/GettingStarted.html
    You can find a jar file with just the API definition from https://aptmirrorapi.dev.java.net/.

  • How to get the " com.sun.xml.* " package?

    In a java xml sample, it uses a class "com.sun.xml.tree.XmlDocument". Its author said it is a internal class.But I can't find the class in "com.sun" package. Please tell me how to get the class?
    Thanks very much!

    This set of classes was available in the J2ee.jar that was packaged with j2sdkee1.2.1, This set of classes is NOT in the j2ee.jar of the j2sdkee1.3.1. After we upgraded, we started to get these errors ... have no idea where/if these classes are still available as add on api or not. I downloaded the the java xml pack and this class is not available in any of the jars contained within.

  • Getting Error IDM8.1patch11WebLogic Server com/sun/idm/idmx/txn/Transaction

    I installed IDM 8.1 Patch 11 on WebLogic server. When I start the server I am getting following error. The Login page never shows up. I will appreciate if you can give me the pointer.
    ] Root cause of ServletException.
    java.lang.NoClassDefFoundError: com/sun/idm/idmx/txn/TransactionManager
         at com.waveset.ui.LoginHelper.csrfGuardTokenEnabled(LoginHelper.java:2471)
         at com.waveset.ui.LoginHelper.handleCSRFGuardToken(LoginHelper.java:2186)
         at jsp_servlet.__login._jspService(__login.java:251)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.sun.idm.profiler.instrumentation.RequestTimingFilter.doFilter(RequestTimingFilter.java:76)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 842717 on Mar 8, 2011 12:16 PM

    You are receiving this error because one of the fields being pulled from IdM, exceeds he column limit defined in the GLOBALUSERS database table.
    I received this error before because the PRIMARYEMAIL column in the GLOBALUSERS table was defined as [PRIMARYEMAIL] [nvarchar](50).
    I went into Microsoft SQL Server Management Studio and updated the field to [PRIMARYEMAIL] [nvarchar](100), and then the import worked.
    Hope this helps,
    Larry L. Viars | Senior Consultant
    Logic Trends, Identity & Access Management Specialists

  • URGENT!!!! help me!Where I can get package com.sun.awt.svg.*

    Hello,everybody!
    I want to know Where I can get package com.sun.awt.svg.* ??

    Requirements
    JDK 1.3 Software -
    To use the Graphics2D SVG Generator, you need to have installed the Java 2 Software Developer's Kit (SDK). You can obtain the Java 2 SDK from the Sun Java 2 web site (http://java.sun.com/j2se/).
    The Graphics2D SVG Generator software was tested with version 1.3, so you should use the same version or a newer one.
    DOM Implementation -
    A DOM level 1 implementation is needed to use the Graphics2D SVG Generator. You can obtain a Java language DOM implementation from the following:
    Apache Xerces (http://xml.apache.org/xerces-j/index.html)
    Sun Microsystem's Project X
    (http://developer.java.sun.com/developer/products/xml)
    You also need to put the corresponding jar files in the classpath. The following table shows commands for doing this.
    Operating System DOM Implementation Command
    Windows 98 Xerces set classpath=%classpath%;
    xercesinstalldir\xerces.jar
    Windows 98 Project X set classpath=%classpath%;
    projectxinstalldir\xml.jar
    UNIX Xerces setenv CLASSPATH ${CLASSPATH}:
    xercesInstallDir/xerces.jar
    UNIX Project X setenv CLASSPATH ${CLASSPATH}:
    projectxinstalldir/xml.jar
    SVG Viewer
    To view the generated SVG files, you need to have an SVG viewer. You can find a list of available SVG viewers at the W3C SVG web site (http://www.w3.org/Graphics/SVG/SVG-Implementations).
    top of the page
    Installing the Graphics2D SVG Generator Software
    IMPORTANT:
    Before installing the software, make sure you agree to the license terms.
    To install the software, perform the following steps:
    Step 1: Uncompress the distribution file in the desired installation directory. Use these commands (from the command line):
    > cd installDir
    > jar xf j2d2svg.zip
    The j2d2svg.jar file expands into a directory (j2d2svg) that contains the following:
    README.html (this file) -- Provides important information about installing and using the Graphics2D SVG Generator.
    svggraphic_license.html -- License agreement.
    svggen.jar -- A jar (java archive) file that contains the SVGGraphics2D classes.
    glf.jar -- A jar file that contains the Graphic Layers Framework classes.
    svggenDoc.jar -- A jar file that contains the software's API documentation in HTML.
    HelloSVG.java -- Example file.
    HelloManipulatedSVG.java -- Example file.
    Step 2: Add svggen.jar to the classpath.
    On Windows, use this command:
    - set classpath=%classpath%;<j2d2svginstalldir>\svggen.jar
    On UNIX, use this command:
    - setenv CLASSPATH=${CLASSPATH}:j2d2svginstalldir/svggen.jar
    To use the Graphic Layer Framework conversion utility (i.e., to use the com.sun.awt.svg.util.GlfSVGPrettyPrint), you will also need to add the glf.jar file to your classpath. However, this is not required to run the examples.

  • Where I can get package com.sun.awt.svg.*

    Hi:
    Anyone know Where I can get package com.sun.awt.svg.* ??
    My Email is :[email protected]
    thank you !

    I do not know,
    but if you need to deal with SVG take a look at Batik at xml.apache.org,
    http://xml.apache.org/batik/index.html

  • How to get import com.sun.image.codec.jpeg.*;..Help..

    I’m doing a research for video compression n I need to compress the frame as image, I want to use com.sun.image.codec.jpeg.* , but I can’t download the plugin every where. I use JDK 1.5.0 to do my java program. Does any one have a suggestion about my problem? What should I do, so I can use com.sun.image.codec.jpeg.*?
    thanks

    That is part of the following:
    [http://java.sun.com/javase/technologies/desktop/media/2D/]

  • Com.sun.tools.javac.Main: method compile errors

    I had a working web project the other day, and something happened that caused every page to start throwing this error:
    # javax.servlet.ServletException: com.sun.tools.javac.Main: method compile([Ljava/lang/String;Ljava/io/PrintWriter;)I not found
    # at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:779)
    # at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:978)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.mayco.mvc.MVCServlet.processRequest(MVCServlet.java:426)
    # at com.mayco.ldap.MayServlet.service(MayServlet.java:415)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
    # at com.mayco.cy.filter.AuthenticateFilter.doFilter(AuthenticateFilter.java:167)
    # at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    # at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    # at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    # at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    # at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    # at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    # at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    # at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    I tried setting up a clean environment (server, EAR, web project), but haven't been able to re-solve the problem I had with the original project yet.  If I could get a starting point to look for how to solve this type of error it would be greatly appreciated!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I checked my JDK compliance (1.4) and the installed JREs (Standard VM; WebSphere v5.1 EE JRE; C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51_stub\java\jre)
    I did notice that it was using the JRE System LIbrary [WebSphere v5.1 JRE] and I changed it to the WebSphere v5.1 EE JRE like I think it should have been...
    and the web server startup begins with:
    *** Starting the server ***
    ************ Start Display Current Environment ************
    WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 2692
    Host Operating System is Windows XP, version 5.1
    Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;C:\WebSphere\properties;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\bcprov-jdk14-139.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\config.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\spi4jStub_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES100J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES110J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES120J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES200J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XTCP211.jar;C:\spi4j2.5.4_J2ee1.4\Demo\log4j-1.2.8.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\spi4jCore_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\axis-1.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xmlParserAPIs-2_2_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jaxrpc.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\wsdl4j.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fsgWsif1.1.jar;C:\spi4j2.5.4_J2ee1.4\Demo\commons-logging.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\tools.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-pool-1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\saaj.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-beanutils-core.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-collections-3.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-discovery.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-lang-2.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\connector.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\FEDRWSCHECKSTATUSAxisInfo.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fscontext.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\IFSClassLoader1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\j2ee1.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jca.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jta.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\mail.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\providerutil.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\qname.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\soaprmi-1_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xalan.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xercesImpl-2_2_1.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;Y:\oracle\ora92\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\IBM\SDP70\jdk\bin
    ************* End Display Current Environment *************

Maybe you are looking for