Re: Could not find the main class - JBuilder 8 Enterprise

Discussion in 'Java' started by Tris Orendorff, Jul 16, 2003.

  1. "Jos Walrave" <> wrote in
    news:beutae$t26$1.nb.home.nl:

    > Dear programmer,
    >
    > I am a newbie. I just created this java code, for which JBuilder 8
    > Enterprise generates when build the following message : " Could not
    > find the main class. Will exit program."
    >
    > Can someone advise me on this and also on the runtime configuration
    > settings ? I understand one can define a default setting regarding the
    > purpose of your code (application, etc.).
    >
    > Here is my code so far:
    > ------------------------------------------------- >
    >
    > import java.sql.*;
    >
    > class loadJdbc {
    >
    > public static void main (String[] args) {


    Your class loadJdbc needs to be public and in its own file, loadJdbc.java
    for it to run.


    --
    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.12
    GCS d++ s+:- a+ C+ UL++++ P+ L+ E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP
    t+ !5 X- R- tv--- b++ DI++ D+ G++ e++ h---- r+++ y+++
    ------END GEEK CODE BLOCK------
    Tris Orendorff, Jul 16, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tarlika Elisabeth Schmitz

    [WebStart] "Could not find main-class"

    Tarlika Elisabeth Schmitz, Nov 3, 2004, in forum: Java
    Replies:
    13
    Views:
    5,846
    Tarlika Elisabeth Schmitz
    Nov 4, 2004
  2. davout
    Replies:
    1
    Views:
    559
  3. Replies:
    0
    Views:
    454
  4. Replies:
    2
    Views:
    795
  5. Ramon F Herrera
    Replies:
    6
    Views:
    657
    Ramon F Herrera
    Nov 11, 2007
Loading...

Share This Page