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

  • Home
  • SEARCH
  • 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 8235327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:46:09+00:00 2026-06-07T18:46:09+00:00

I built a java program that consists of 2 files. The one that contains

  • 0

I built a java program that consists of 2 files. The one that contains the main is SnortMonitor.java and it uses Database.java to connect to the database and run a query. I migrated it from my windows machine to the linux machine where it needs to be. I am able to compile it and run it just fine on both machines.

My ultimate goal, which is my next step, is finding a way to make this into an executable with will constantly run on this linux machine. The program is designed to scan each record of a database and send certain information to another machine, I need it to run constantly so that it is constantly sending this information to this other machine, or something like every 3-5 seconds.

One Footnote: For some reason that is beyond my knowledge, I ended up with SnortMonitor.java, Database.java, SnortMonitor.class and Database.class once I finished compiling and running on linux, I’m not sure if this makes a difference, I’m very new to linux.

  • 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-07T18:46:11+00:00Added an answer on June 7, 2026 at 6:46 pm

    You have two options:

    1. Create a start-up script, such as a .sh bash script for example, that launches your java application. See Tomcat startup script for an example.
    2. Use GCJ to compile it to machine code, but your application loses portability.

    Personally I prefer the first option, but choose what is right for you.

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

Sidebar

Related Questions

We use exe4j 4.4.4 to build an exe that runs our Java program. One
I built this program that works with files. Since I made it for a
I built a java program that runs the command jps and sees all JVMs
I've built a Java program as a front end for a database on a
I have built a small program for school that runs perfectly when i run
I am trying to run my first Java program, an example script that interacts
Is there a built in Java code that will parse a given folder and
I have built a Java application that has some dependencies (~10). I would like
I'm looking for a Java built-in data structure that would be the best at
I have an existing system built in Java we currently expand that by adding

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.