Vids

Greenhorn
+ Follow
since Oct 30, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vids

It was a small mistake in classpath. In customize-options of Kawa editor I had to give the path for Java lib Directory as "C:\jdk1.2.2\lib" for which I had given as "c:\jdk1.2.2\lib". After correction the problem is solved.
Thanks,
Vids
23 years ago
I wrote a small applet program as follows:
import java.applet.*;
import java.awt.*;
public class FirstApplet extends Applet
{
public void paint(Graphics g)
{
g.drawString("hello world",25,50);
}
}
It compiled fine. But when I run the program it gives the following error:
C:\jdk1.2.2\bin\java.exe
Working Directory - D:\shrividya\myprogs\
Class Path - C:\jdk1.2.2\lib\tools.jar;.;d:\kawa\kawaclasses.zip;c:\jdk1.2.2\jre\lib\rt.jar;c:\jdk1.2.2\jre\lib\i18n.jar
Usage: java.exe [-options] class [args...]
(to execute a class)
or java.exe -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-? -help print this help message
-X print help on non-standard options
Process Exit...
in the Kawa editor.
What should I do to resolve this error???
Thanks,
Vids
23 years ago
I have downloaded JAXP1.1 but where do I find parser.jar. It did not come along with the download:-(
I have jdk1.2.2. I am compiling a small java program with embedded XML document. The program is as follows:
import org.xml.sax.*;
public class BookCounter extends HandlerBase
{
private int count = 0;

public void countBooks() throws Exception
{
Parser p=new com.sun.xml.parser.ValidatingParser();
p.setDocumentHandler(this);
p.parse("file:///d:javaex/books.xml");
}
public static void main(String args[]) throws Exception
{
(new BookCounter()).countBooks();
}

public void startElement(String name,AttributeList atts) throws SAXException
{
if (name.equals("book"))
count++;
}
public void endDocument() throws SAXException
{
System.out.println("there are "+count+ "books");
}
}
During compilation it gives the error:
BookCounter.java:9: Class com.sun.xml.parser.ValidatingParser not found.
Parser p=new com.sun.xml.parser.ValidatingParser();
I am using kawa editor.
Please lemme know how to solve this. If there is any problem with class path please give the full steps to set up my classpath appropriately.
Thanks,
Vids.
Hi SVR,
It will be a standalone application. Yes, I would be building XML document using the data from MSAccess and then pass this XML document to Java program. All the programs will be on the same machine and no question of remaote machine.
So keeping these requirements, can U just gimme an idea how to proceed or a small piece of code wherein XML document is built in Java program and data comes from D/b.
Thanks,
Vids
I need to code an application with XML wherein data comes from a database say MSAccess. I want to have this in my Java application wherein it operates on XML data. I am constrained to use only Java as I know only programming in Java and of course XML. Please tell me how to go about this. A sample program would be of great help. Please suggest me some related links.
Thnx in advance,
Vids.
Yeah, I have created a File DSN using Control Panel -- 32 bit ODBC and still I am getting the same error message. Please help.
Hi,
I have just now started with my first example on JDBC, ie, the demo ex. which u get with jdk. The example is just to create a table -- Coffee. It compiles fine but when I run it gives SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
I have just installed jdk 1.2.2 and trying out with MSAccess. Please help me solve this problem.
Regards,
Shrividya.