Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Could not find the main class - JBuilder 8 Enterprise

Reply
Thread Tools

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

 
 
Tris Orendorff
Guest
Posts: n/a
 
      07-16-2003
"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------

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If you try the JBuilder Enterprise trial, you won't be able to run Turbo JBuilder afterwards Ramon F Herrera Java 6 11-11-2007 06:27 AM
JAR[error] : could not find main class asiankent@gmail.com Java 2 03-13-2007 09:23 AM
Why do JARs made with JBuilder 2006 Enterprise not work outside IDE??? alan_conoco@hotmail.co.uk Java 0 08-02-2006 07:52 AM
JBuilder 2005 - JBuilderW fails but JBuilder runs from dos box?!? davout Java 1 03-06-2005 02:38 AM
[WebStart] "Could not find main-class" Tarlika Elisabeth Schmitz Java 13 11-04-2004 02:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57