Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Creating CGI exe

Posted on 1999-08-27
Medium Priority
Last Modified: 2013-11-18
How do I create an executable CGI in linux?
I'm using the Apache web server and I write the CGI in Java.
I want the exe to include the class and the virtual machine.
Question by:gilbert_chang
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Astroman earned 100 total points
ID: 1637027
Cut and paste the follwing into a file, e.g. YourClass, and then give it executable permissions:

chmod u+x YourClass

Make sure the owner of the file is allowed to execute cgi programs (look at webserver conf to see what user)


java YourClass.class $@

Expert Comment

ID: 1637028
Sorry to answer all three questions. I guess there was a mistake and you didn't really want to offer 150 points!

Have you considered using servlets and the Apache jserv module.

Servlets will do the same things as CGI but, without going into details, are a lot faster, efficient and powerful. CGI is dead with the advent of servlets, especially in the Java language.

Have a look at to find out more,


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question