Very simple java program not working!


by camel-man
Tags: java, program, simple, working
camel-man
camel-man is offline
#1
Nov12-12, 11:27 AM
P: 55
I am using the netbeans IDE

All I am trying to do is print out to the screen, but I keep getting this error.

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: system.out.println
	at mysqlconn.mainhgf4.main(mainhgf4.java:19)
Here is my short code

package mysqlconn;
import java.io.BufferedReader;
/**
 *
 */
public class mainhgf4{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
       system.out.println("Welcome friend!!");
    }
}
This is not really a java program, it is a SQL program that I am supposed to somehow implement a DB in java... IDK im so frustrated over this. I am originally a C programmer and have very basic knowledge of java, but the fact that I have to incorporate a database and SQL queries is making this impossible for "ME", I know alot of people can do this with their eyes closed.
Phys.Org News Partner Science news on Phys.org
Review: With Galaxy S5, Samsung proves less can be more
Making graphene in your kitchen
Study casts doubt on climate benefit of biofuels from corn residue
DavidSnider
DavidSnider is offline
#2
Nov12-12, 11:44 AM
PF Gold
P: 431
Try System.out.println(...)
gabbagabbahey
gabbagabbahey is offline
#3
Nov12-12, 04:55 PM
HW Helper
gabbagabbahey's Avatar
P: 5,004
Java is a case-sensitive language, and by convention, class names (like System), start with an upper-case letter, whereas variable and method names start with a lower-case letter (like out & println() )

camel-man
camel-man is offline
#4
Nov13-12, 07:04 PM
P: 55

Very simple java program not working!


Ahh wow that was simple lol thank you, I might be back for more questions because if I had trouble with that then there is no telling how many problems I am going to run across lol


Register to reply

Related Discussions
simple java grade program Programming & Computer Science 7
Simple Java class + driver program help. Program isn't working, but should be. Programming & Computer Science 7
Java program isn't working please help Programming & Computer Science 6
Very Simple Java Program. Engineering, Comp Sci, & Technology Homework 0
Simple Java Program Help Programming & Computer Science 18