Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:47:42+00:00 2026-06-12T16:47:42+00:00

I have a requirement in which my front-end screen creates an XSD at run

  • 0

I have a requirement in which my front-end screen creates an XSD at run time.

After which i need to create Java Classes for the same then zip it into an war file.
all this needs to be done at run time and within JVM.

I have researched on this and found that xjc( xjc -p foo myschema.xsd ) tool command. Unfortunately it seems that the tool cannot be run from inside my java application.

There is an Process API to run the tool from Java, but i think it will make it OS dependent.

Please help me.

I need to generated Java Source Code or direct Binaries(Class Files) from XSD at run time and package the same to an EAR.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:47:43+00:00Added an answer on June 12, 2026 at 4:47 pm

    You can definitely run the tool from your Java program, just like any other application can be invoked that way.

    You can even supply the current working directory when executing the Process.

    As long as you don’t do anything OS dependent, then you won’t make your application OS dependent. This is particularly relevant when supplying the paths. If they are relative, then use Linux style paths (and avoid spaces in the paths) to stay safe.

    Once you do that, you can group the *.java and *.class files and Jar them using regular Java tools. From there, you can use some API to load the EAR into your Java EE environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a scenario: I have a java front end (RCP/SWT) app which currently has
I have the below requirement: Front end for a big database which stores details
Good day, I have a requirement which i need to include a layout (actually
I have a unique requirement which I need to meet to with sitecore, and
I have a requirement to create a windows form control which has to detect
I have a requirement in which i need to call webservice 12 times for
I have a requirement in which i need to display in formation in a
I am no stranger to front-end development, but I have come across a requirement
I have to build an Automated Chat Application which will have it's front end
I have a requirement which sounds like kind of simple but hard to implement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.