Pages

Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess


Search the blog instead

Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Saturday, January 30, 2010

Java Webstart in ubuntu 8.10

I just tried to run Java Web Start Application in my Ubuntu Box and it threw this error.

net.sourceforge.nanoxml.XMLParseException: XML Parse Exception during parsing of the XML definition at line 5: Unexpected end of data reached
at net.sourceforge.nanoxml.XMLElement.unexpectedEndOfData(XMLElement.java:1169)
at net.sourceforge.nanoxml.XMLElement.readChar(XMLElement.java:940)
at net.sourceforge.nanoxml.XMLElement.skipSpecialTag(XMLElement.java:878)
at net.sourceforge.nanoxml.XMLElement.sanitizeInput(XMLElement.java:1293)
at net.sourceforge.jnlp.Parser$1.run(Parser.java:959)
at java.lang.Thread.run(Thread.java:636)
netx: Invalid XML document syntax.
Solution found was as following
java -jar /usr/share/java/netx.jar -jnlp "and-the-jnlp-path-here

Sunday, November 25, 2007

Jar files database

Website having list of jars around the web

http://www.jarhoo.com/

Friday, November 23, 2007

Reading String in JAVA from command line

Reading in string input from the command line in Java


import java.io.*;

public class StringReader
{

public static void main (String[] args)
{

System.out.println("Type some text and press 'Enter.'");


String string = "";
InputStreamReader input = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(input);

// read in user input

try
{

string = reader.readLine();

}
catch(Exception e){}
System.out.println("You typed: " + string);

// wait for user to type 'Enter' so console window won't dissapear

System.out.println("Type 'Enter' to exit.");

try
{

string = reader.readLine();

}
catch(Exception e){e.PrintStackTrace();}

}

}



Site: http://rotterdam.ics.uci.edu/info/JavaStringReading.htm

Your Ad Here