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 6042913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:50:33+00:00 2026-05-23T06:50:33+00:00

I have a Java server process that I normally run in either Windows batch

  • 0

I have a Java server process that I normally run in either Windows batch file consoles or in Linux Bash script consoles. I manage these scripts independently of each other and I wish I had something that was cross platform, more powerful, and easier.

Besides running the java process itself, the scripts need to create files, configure files, read/write .xml config data, prepare databases, etc.

So, which scripting language would be the best for this that would allow the script to go cross platform?

Also, if you have heard of someone doing something similar to this, I would love a link to see the example.

  • 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-05-23T06:50:33+00:00Added an answer on May 23, 2026 at 6:50 am

    I think Groovy would be a great choice. It’s syntax is very similar to Java, but it is much more concise (than Java), particularly for the kind of things you need to do in scripts. For example, here’s a Groovy script that reads the content of a file:

    String content = new File("/path/to/file.txt").text
    

    That’s it! There’s no need to put it inside a class or even compile it. Just put the text above in a file named Script.groovy and invoke it from the command line using groovy Script.groovy.

    Also, because Groovy runs on the JVM there should be no cross-platform issues, and you’ll already have the necessary runtime installed on all the machines you need to run your scripts on.

    Groovy comes with a console that you can use to quickly test out your scripts.

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

Sidebar

Related Questions

I have a Java process that runs on a Windows server where I have
I have a server written in Java that runs as a Windows service (thanks
I have a piece of server-ish software written in Java to run on Windows
I have a process that is running as a java daemon on Ubuntu Linux.
I have a very simple Java RMI Server that looks like the following: import
i have a server - client application that runs on java 1.3; i want
I have a java app that creates a socket to talk to a server
I have a Java client - server application. The client is designed to run
I have only started learning Java. My task is to create a file server
I have a client-server application written in Java using CORBA for the communication. The

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.