"Jos Walrave" <> wrote in
news:beutae$t26$:
> 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------
|