Re: Java novice

2003-01-30 Thread Jeremias Maerki

On 30.01.2003 11:55:11 Matthew Lancashire wrote:
 I hace created an exe from ExampleXML2PDF.

Well, exe don't exist in Java. I guess you mean you ran the build
script in examples/embedding and now you've got a bunch of *.class files
in the build directory, right?

 How can I run this.
 I get NoClassDefFoundError.

This means that a class could not be found in the classpath. Usually,
the error message also tells you which class. And that will give you an
indicator what is missing. Next time you should provide the full error
message.

 I know very little about the runtime environment set-up!

It would be best if you got yourself a Java-for-starters book.

What you're probably missing are several JAR files in the classpath. You
need to do something like:

java -cp
lib/xml-apis.jar;lib/xercesImpl-2.2.1.jar;lib/xalan-2.4.1.jar;lib/avalon-framework-cvs-20020806.jar;lib/batik.jar;build/fop.jar;examples/embedding/build/classes
embedding.ExampleXML2PDF

 Also is it possible to use Streamed CML instead of seperate XML/XSL files?

Sorry, I don't know what you mean by Streamed CML.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java novice

2003-01-30 Thread Matthew Lancashire
I am using MS VJ++ 6 which builds an exe file!
The class is the Driver class (found from debugging not the error message)
CML was supposed to be XML.
Any clues

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 30 Jan 2003 11:28
To: [EMAIL PROTECTED]
Subject: Re: Java novice



On 30.01.2003 11:55:11 Matthew Lancashire wrote:
 I hace created an exe from ExampleXML2PDF.

Well, exe don't exist in Java. I guess you mean you ran the build
script in examples/embedding and now you've got a bunch of *.class files
in the build directory, right?

 How can I run this.
 I get NoClassDefFoundError.

This means that a class could not be found in the classpath. Usually,
the error message also tells you which class. And that will give you an
indicator what is missing. Next time you should provide the full error
message.

 I know very little about the runtime environment set-up!

It would be best if you got yourself a Java-for-starters book.

What you're probably missing are several JAR files in the classpath. You
need to do something like:

java -cp
lib/xml-apis.jar;lib/xercesImpl-2.2.1.jar;lib/xalan-2.4.1.jar;lib/avalon-fra
mework-cvs-20020806.jar;lib/batik.jar;build/fop.jar;examples/embedding/build
/classes
embedding.ExampleXML2PDF

 Also is it possible to use Streamed CML instead of seperate XML/XSL files?

Sorry, I don't know what you mean by Streamed CML.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java novice

2003-01-30 Thread Jeremias Maerki
I would have put it a little differently, but Mr. Hujer is right. You
won't have any luck with VisualJ++, especially as a Java novice. I
recommend you switch to a more compatible Java VM. As the release notes
say you need at least JDK 1.2.

FWIW the Driver class is in fop.jar. So you need to get this JAR in your
classpath. But staying with VJ++ this will only be the first of many
problems. Sorry.

On 30.01.2003 12:49:01 Matthew Lancashire wrote:
 I am using MS VJ++ 6 which builds an exe file!
 The class is the Driver class (found from debugging not the error message)
 CML was supposed to be XML.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java novice

2003-01-30 Thread Matthew Lancashire
Thanks for the help.
I was using the VJ6++ IDE because I am used to MS IDEs.
The class seems just fine.
I still use the sun java bits to run the class. Have given up on the exe

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 30 Jan 2003 14:32
To: [EMAIL PROTECTED]
Subject: Re: Java novice


I would have put it a little differently, but Mr. Hujer is right. You
won't have any luck with VisualJ++, especially as a Java novice. I
recommend you switch to a more compatible Java VM. As the release notes
say you need at least JDK 1.2.

FWIW the Driver class is in fop.jar. So you need to get this JAR in your
classpath. But staying with VJ++ this will only be the first of many
problems. Sorry.

On 30.01.2003 12:49:01 Matthew Lancashire wrote:
 I am using MS VJ++ 6 which builds an exe file!
 The class is the Driver class (found from debugging not the error message)
 CML was supposed to be XML.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]