Sign in to follow this  
homka

[java] Set the Classpath

Recommended Posts

Hello,

I have an application which read xsd file, and [font=sans-serif][size=2] XSD file is supposed to be stored somewhere on CLASSPATH. Do you have any idea?[/size][/font]
[font=sans-serif][size=2]Thx a lot.[/size][/font][img]http://public.gamedev.net/public/style_emoticons/default/blink.gif[/img]

Share this post


Link to post
Share on other sites
I don't understand your question. What are you having trouble with:
[list]
[*] Getting the file into the class path?
[*] Reading [u]any[/u] file from the class path?
[*] Finding the given XSD file on the class path?
[*] Setting the class path when running your program?
[*] Something else?
[/list]
Can you show us any code?

Share this post


Link to post
Share on other sites
[quote name='rip-off' timestamp='1317816086' post='4869357']
I don't understand your question. What are you having trouble with:
[list][*] Getting the file into the class path?[*] Reading [u]any[/u] file from the class path?[*] Finding the given XSD file on the class path?[*] Setting the class path when running your program?[*] Something else?[/list]
Can you show us any code?
[/quote]

well, I'm pretty new in java.
Actually i have an xsd file, then I use ant -> build.xml and generate jaxb. then i use those generated *.java classes and compile the project. But I dont know how set the classpath to xsd file .... make my app find the xsd file by classpath.... Hope you understand what do I want.. :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this