A novice in need of help --- Need JAVA GOD

Hello everyone, i would appreciate any help anyone can give me. I am tyring to make a connection to Oracle via Java and make some tables. what am i doing wrong?
package edu.uwec.cs.jorandbe.assignment5;
import java.awt.HeadlessException;
import java.sql.*;
import javax.swing.*;
public class OracleDBConnection {
String username;
String host;
String password;
Driver theOracleDriver;
Connection myConn;
String sqlQuery;
ResultSet rs;
Statement stmt;
public OracleDBConnection() {
public OracleDBConnection(String hostn, String usern, String passw) {
this.host = hostn;
this.username = usern;
this.password = passw;
public void Open() {
try {
theOracleDriver = (Driver) (Class
.forName("oracle.jdbc.driver.OracleDriver")).newInstance();
DriverManager.registerDriver(theOracleDriver);
Connection myConn = DriverManager.getConnection(this.host,
this.username, this.password);
stmt = myConn.createStatement();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
public void Close() {
try {
if (rs != null)
rs.close();
if (myConn != null)
myConn.close();
if (stmt != null)
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
public void setQueryString(String Query) {
sqlQuery = Query;
public void getQueryString(String Query) {
System.out.println("Current SqlQuery : " + sqlQuery);
//public String [][] executeSELECT() {
//rs = stmt.executeUpdate(sql);
// return rs;
public static void main(String[] args) {
OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
//CLASS 2
package edu.uwec.cs.jorandbe.assignment5;
public class NFL_DDL {
     public static void main(String[] args) {
          OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
Oracle1.Open();
Oracle1.Close();
public void createTables(Object Oracle1){
//Oracle1.Open();
can anyone tell me why Oracle1.Oen(); works in my main method
but in my create Table method as well??

public class NFL_DDL {
     public static void main(String[] args) {
          OracleDBConnection Oracle1 = new OracleDBConnection("jdbc:oracle:thin:@stef.cs.uwec.edu:1521:csdev","Jorandbe","j8114");
Oracle1.Open();
Oracle1.Close();
public void createTables(Object Oracle1){
//Oracle1.Open();
In the main up top, i can get the connection to open/ Oarcle1.Open works and it gives me no compile errors
but when i try to do the same thing in the createTables it gives me the evil red line under open and says
"The method Open() is undefined for the type Object"Where are you calling the createTables method ? How will the compiler know that it has to start off with the createTables ?
Open() is not a static method either ...?!?!?!?
what are you trying to do ?

Similar Messages

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • HT5675 i need java 1.6 to get ,m,inecraft but it wont ever work please help?

    i need java 1.6 to get minecraft but it wont ever work someone please help me!

    Hello,
    What version of Mac OS X are you running on your iBook?
    Also check what version of java is currently installed by doing the following,
    Open Terminal, type in java -version then press Enter.  Then retrieve the current java version, in this example being 1.6.0_24

  • Need help in Java Script

    i Need some help in Java Script,
    am using the following code :
    <script type="text/javascript">
    var newwindow;
    function poptastic(url)
    newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
    else {newwindow.close()}
    //     if (window.focus) {newwindow.focus()}
    </script>
    In HTML,
    thWorld Environment
    Day, June 5<sup>th</sup>,2005
    Am using onmouseover event, so that when my mouse in on the link, popup is opened....and when my mouse is out of the link, the new window should b closed....
    but according to the above code, the new window is opened but have to close it manually....
    Is there any other way to close the popup when my mouse is out of the link

    Prawn,
    This is not really a good way to make friends. With the cross posting and the posting in a wrong forum anyway thing you have going.
    Please kindly take your question to an appropriate JavaScript forum.
    Have a happy day.
    Cross post from http://forum.java.sun.com/thread.jspa?messageID=3797201

  • Photoshop will not launch. Window indicates need JAVA SE6. Already have it, but re-installed. Photoshop will still not launch. Help! MacOS 10.10.1

    Since installing Mac OS 10.10.1 photoshop will not run, it will not launch. A window indicates that it needs JAVA SE6 to run. JAVA SE6 is installed. I have re-installed and restarted but photoshop will not run and I get the same message window that I need to install JAVA SE6. How do I make this work?

    Have you added any Photoshop Add-on that uses an external JavaScript.  Photoshop itself has is own ScriptingSupport Plug-in and does not use an external java.  Also Java SE6 is old and has security issues you should update to version SE8
    Note the plug-in is system info
    Adobe Photoshop Version: 2014.2.1 20141014.r.257 2014/10/14:23:59:59 CL 987299  x64
    Required plug-ins:
       3D Studio 15.2.1 (2014.2.1 x001 x003)
       Accented Edges 15.2.1
       Adaptive Wide Angle 15.2.1
       Angled Strokes 15.2.1
       Average 15.2.1 (2014.2.1 x001 x003)
       Bas Relief 15.2.1
       BMP 15.2.1
       Camera Raw 8.7
       Camera Raw Filter 8.7
       Chalk & Charcoal 15.2.1
       Charcoal 15.2.1
       Chrome 15.2.1
       Cineon 15.2.1 (2014.2.1 x001 x003)
       Clouds 15.2.1 (2014.2.1 x001 x003)
       Collada 15.2.1 (2014.2.1 x001 x003)
       Color Halftone 15.2.1
       Colored Pencil 15.2.1
       CompuServe GIF 15.2.1
       Conté Crayon 15.2.1
       Craquelure 15.2.1
       Crop and Straighten Photos 15.2.1 (2014.2.1 x001 x003)
       Crop and Straighten Photos Filter 15.2.1
       Crosshatch 15.2.1
       Crystallize 15.2.1
       Cutout 15.2.1
       Dark Strokes 15.2.1
       De-Interlace 15.2.1
       Dicom 15.2.1
       Difference Clouds 15.2.1 (2014.2.1 x001 x003)
       Diffuse Glow 15.2.1
       Displace 15.2.1
       Dry Brush 15.2.1
       Eazel Acquire 15.2.1 (2014.2.1 x001 x003)
       Embed Watermark 4.0
       Entropy 15.2.1 (2014.2.1 x001 x003)
       Export Color Lookup Tables NO VERSION
       Extrude 15.2.1
       FastCore Routines 15.2.1 (2014.2.1 x001 x003)
       Fibers 15.2.1
       Film Grain 15.2.1
       Filter Gallery 15.2.1
       Flash 3D 15.2.1 (2014.2.1 x001 x003)
       Fresco 15.2.1
       Glass 15.2.1
       Glowing Edges 15.2.1
       Google Earth 4 15.2.1 (2014.2.1 x001 x003)
       Grain 15.2.1
       Graphic Pen 15.2.1
       Halftone Pattern 15.2.1
       HDRMergeUI 15.2.1
       HSB/HSL 15.2.1
       IFF Format 15.2.1
       IGES 15.2.1 (2014.2.1 x001 x003)
       Ink Outlines 15.2.1
       JPEG 2000 15.2.1
       Kurtosis 15.2.1 (2014.2.1 x001 x003)
       Lens Blur 15.2.1
       Lens Correction 15.2.1
       Lens Flare 15.2.1
       Liquify 15.2.1
       Matlab Operation 15.2.1 (2014.2.1 x001 x003)
       Maximum 15.2.1 (2014.2.1 x001 x003)
       Mean 15.2.1 (2014.2.1 x001 x003)
       Measurement Core 15.2.1 (2014.2.1 x001 x003)
       Median 15.2.1 (2014.2.1 x001 x003)
       Mezzotint 15.2.1
       Minimum 15.2.1 (2014.2.1 x001 x003)
       MMXCore Routines 15.2.1 (2014.2.1 x001 x003)
       Mosaic Tiles 15.2.1
       Multiprocessor Support 15.2.1 (2014.2.1 x001 x003)
       Neon Glow 15.2.1
       Note Paper 15.2.1
       NTSC Colors 15.2.1 (2014.2.1 x001 x003)
       Ocean Ripple 15.2.1
       OpenEXR 15.2.1
       Paint Daubs 15.2.1
       Palette Knife 15.2.1
       Patchwork 15.2.1
       Paths to Illustrator 15.2.1
       PCX 15.2.1 (2014.2.1 x001 x003)
       Photocopy 15.2.1
       Photoshop 3D Engine 15.2.1 (2014.2.1 x001 x003)
       Photoshop Touch 14.0
       Picture Package Filter 15.2.1 (2014.2.1 x001 x003)
       Pinch 15.2.1
       Pixar 15.2.1 (2014.2.1 x001 x003)
       Plaster 15.2.1
       Plastic Wrap 15.2.1
       PLY 15.2.1 (2014.2.1 x001 x003)
       PNG 15.2.1
       Pointillize 15.2.1
       Polar Coordinates 15.2.1
       Portable Bit Map 15.2.1 (2014.2.1 x001 x003)
       Poster Edges 15.2.1
       PRC 15.2.1 (2014.2.1 x001 x003)
       Radial Blur 15.2.1
       Radiance 15.2.1 (2014.2.1 x001 x003)
       Range 15.2.1 (2014.2.1 x001 x003)
       Read Watermark 4.0
       Render Color Lookup Grid NO VERSION
       Reticulation 15.2.1
       Ripple 15.2.1
       Rough Pastels 15.2.1
       Save for Web 15.2.1
       ScriptingSupport 15.2.1  <------------------------------------------------------------------ Photoshop Scripting Support Plug-in
       Shake Reduction 15.2.1
       Shear 15.2.1
       Skewness 15.2.1 (2014.2.1 x001 x003)
       Smart Blur 15.2.1
       Smudge Stick 15.2.1
       Solarize 15.2.1 (2014.2.1 x001 x003)
       Spatter 15.2.1
       Spherize 15.2.1
       Sponge 15.2.1
       Sprayed Strokes 15.2.1
       Stained Glass 15.2.1
       Stamp 15.2.1
       Standard Deviation 15.2.1 (2014.2.1 x001 x003)
       STL 15.2.1 (2014.2.1 x001 x003)
       Sumi-e 15.2.1
       Summation 15.2.1 (2014.2.1 x001 x003)
       Targa 15.2.1
       Texturizer 15.2.1
       Tiles 15.2.1
       Torn Edges 15.2.1
       Twirl 15.2.1
       U3D 15.2.1 (2014.2.1 x001 x003)
       Underpainting 15.2.1
       Vanishing Point 15.2.1
       Variance 15.2.1 (2014.2.1 x001 x003)
       Virtual Reality Modeling Language | VRML 15.2.1 (2014.2.1 x001 x003)
       Water Paper 15.2.1
       Watercolor 15.2.1
       Wave 15.2.1
       Wavefront|OBJ 15.2.1 (2014.2.1 x001 x003)
       WIA Support 15.2.1 (2014.2.1 x001 x003)
       Wind 15.2.1
       Wireless Bitmap 15.2.1 (2014.2.1 x001 x003)
       ZigZag 15.2.1
    Optional and third party plug-ins:
       CUR (Windows Cursor) NO VERSION
       Face Control II 2.00
       Fine Touch 3.25
       GREYCstoration NO VERSION
       ICO (Windows Icon) NO VERSION
       Reduce Noise 7.0.0.0
       ScriptListener 13.0
       StarFilter Pro 3 3.0.5.1
       SuperPNG 2.0
       Variations 14.2.1 (14.2.1 x001)
    Plug-ins that failed to load: NONE
    Flash:
       Libraries
       Adobe Color Themes
    Installed TWAIN devices: NONE

  • Need java script 6.26 to use banking software keep getting "the connection was reset" error Java appears on addon blocked list

    I am trying to use Team One Credit Unions CU@home to access my accounts. Their support team tells me I need Java script 6.26. I show that on my add on list but it also states Java is blocked on the blocked software list. How do I get Java script running so I can do my home banking or at least test it to be sure that is the issue. I have tried running this program with Java enabled and disabled with the same results.

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    See:
    * http://kb.mozillazine.org/Java
    * http://kb.mozillazine.org/JavaScript
    Java 6 U26 is about the Java plugin.
    You can see in "Tools > Add-ons > Plugins" if the Java plugin is installed and also on the about:plugins page via the location bar.
    * http://www.java.com/en/download/help/testvm.xml - How do I test whether Java is working on my computer? - 1.4.2_xx, 1.5.0, 6.0

  • I Need Java code for following Algorithm

    * I Need Java code for following algorithm. Kindly any one help.
    1. Read the contents (ideas and its corresponding scores) from two files named as 'a' and 'b'.
    2. Stored the file 'a' contents in array a[].
    3. Stored the file 'b' contents in array b[].
    4. compare both files like
    if(a.equals(b[j])
    Writing the common idea and add the score from file 'a' and 'b'.
    else
    write the uncommon idea and its score..
    For example :
    Form Agents.txt
    action,65
    architecture,85
    eco-,15
    essay,30
    form,85
    form,85
    link,40
    tangent,25
    Form Agents1.txt
    Black holes,69
    essay,78
    Herewith i have above mentioned two files named as Form Agents and Form Agents1.
    Form Agents has eight fields
    Form Agents1 has two fields
    --> 'essay' is common in two files, so store the idea 'essay' and add the score from Form Agents score is '30' and Form Agents1 has 78 (essay 108).
    Finally it stores idea in another file with uncommon fields also.
    Please help us.

    We have tried with following code.
    But we cant add the scores.
    For Example:
    Form Agents.txt --> has "essay,30"
    Form Agents1.txt --> has "essay,78"
    Result is: essay,108
    Finally it stores idea in another file with uncommon fields also.
    So Any one pls correct the following code.
    try
    DataOutputStream o1=new DataOutputStream(new
    FileOutputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\CandidateResponses\\Form
    Agents.txt"));
    //Reading the contents of the files
    BufferedReader br= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Ideological\\Form
    Agents.txt")));
    BufferedReader br1= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Related\\Form
    Agents.txt")));
    while((s=br.readLine())!=null)
    s1+=s+"\n";
    while((s2=br1.readLine())!=null)
    s3+=s2+"\n";
    int numTokens = 0;
    StringTokenizer st = new StringTokenizer(s1);
    String[] a = new String[10000];
    String[] br_n=new String[10000];
    int i=0;
    while (st.hasMoreTokens())
    s2 = st.nextToken();
    a=s2.substring(0,s2.length()-3);
    s6=s2.substring(s2.length()-2);
    br_n[i]=s6;
    i++;
    numTokens++;
    int numTokens1 = 0;
    StringTokenizer st1 = new StringTokenizer (s3);
    String[] b = new String[10000];
    String[] br1_n=new String[1000];
    int j=0;
    while (st1.hasMoreTokens())
    s4 = st1.nextToken();
    b[j]=s4.substring(0,s4.length()-3);
    s7=s4.substring(s4.length()-2);
    br1_n[j]=s7;
    j++;
    numTokens1++;
    int x=0;
    for(int m=0;m<a.length;m++)
    for(int n=0;n<b.length;n++)
    if(a[m].equalsIgnoreCase(b[n])){
    int sc=Integer.parseInt(br_n[m]);
         int sc1=Integer.parseInt(br1_n[n]);
    int score=sc+sc1;
         o.writeBytes(a[m]+","+score+"\n");
    break;
    else
    o.writeBytes(a[m]+","+br_n[m]+"\n");
    break;
    }catch(Exception e){}

  • Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7

    Hi All
    I Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7.
    SQL developer behaves weirdly sometimes. It frequently drops connection, doesn;t show compile button when i open a procedure and certain other things.... I found ver 3.0 quiet stable.
    I think it may be because of my incorrect java version (1.6.0). Please tell me how can I get this Java version 1.6.0_4. I checked oracle.com, version 35 is available there....
    Can you please help me by providing this ?
    Thanks

    >
    I Need java 1.6.0_4 for SQL developer 3.2 64bit, Win 7.
    I think it may be because of my incorrect java version (1.6.0). Please tell me how can I get this Java version 1.6.0_4.
    Can you please help me by providing this ?
    >
    No - we can't provide it. You have to download it yourself. If you have trouble with the download you should report the problem to Oracle.
    >
    I checked oracle.com, version 35 is available there....
    >
    If you checked at the Java SE Downloads page
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Then you should have seen the 'Previous Releases' link jus above the download Icons near the top of the page.
    http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u1-oth-JPR
    All of the available prior versions are available at that link.
    But I strongly suggest you heed the advice given to use the latest 1.6 version of Java available unless you have a very good reason not to.

  • I need java code to flatten an image

    Hy! I need java code to flatten an image/sketch...someone can help me? Thanks to everybody!

    http://java.sun.com/developer/technicalArticles/Security/JCE/ ?

  • I need java code for chating application

    i need java code for chating application. plz help me

    GANGINENI wrote:
    i need java code for chating application. plz help meGIYF.
    [http://today.java.net/pub/a/today/2006/10/05/instant-messaging-for-jabber-with-smack.html|http://today.java.net/pub/a/today/2006/10/05/instant-messaging-for-jabber-with-smack.html]
    File under: lern2Google

  • HT1338 I need java update or java software for mac

    I need java update or java for mac.  I keep updating software but java is not there, can you please help?

    Open up Java preferences located in your Application>Utilities folder. Make sure it's enabled. Mac automatically disables it if not used within a certain amount of time.

  • Why Do We Need Java Adapter module ???

    Hi All,
    Why Do We Need Java Adapter module ???
    What is the Use of it ????
    Where we Write the code for this
    Regards
    Vamsi

    Hi Vamsi,
    Adapter modules are required to enhance the functionality of SAP XI.
    Enhancements like.
    1. Converting the payload (not covered with standards)
    2. Changing encoding
    3. Encryption and decryption
    4. Creating and merging of additional attachments
    Please follow the links below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e">How to Create Modules for the J2EE Adapter Engine</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3">Adapter Module Development  - Presentation</a>
    *Reward points if helpful*
    Regards,
    Sushil.

  • Can't open NeoOffice, need java update, do update, can't open, same reason

    Try to open NeoOffice.
    Told I need java update
    download latest update
    try to open again
    get same message that I need update.

    Are you doing this:
    https://www.java.com/en/download/help/mac_10_10.xml
    Also see:
    https://www.java.com/en/download/faq/java_mac.xml

  • Curl in java (needs Java files in JCurl_code)?

    HI,
    I am new to java,So I hav used curl functions in php.But in java I hav to use same curl function to connect URL thru java pgm.So I hav i Got JCurl .But i dont have Curl java files & Curl Glue etc.For installing curl in java any dll files must be loaded...? So can u help me out. Iam in Hectic .So just can u send links regardings this class files.please I eil be waiting for reply........
    JCurl_code provides API.But I need java files of Curl.
    Thanx In advance.

    Hello,
    I need to to execute java pgm from which i need open the url which i have mentioned in pgm.But i have got JCurl_code in which only API 's is there.But I need to get source files Curl.java Curl_Glue.java,etc. And I wil use this curl for parsing purpose. Just I need java files.
    package org.curl;
    public class curl_java
    public static void main(String args[])
              try
                   //System.loadLibrary("javacurl");
                   String url = "http://www.yahoo.com";
                   CURL c = new CURL();
                   CurlGlue cg = new CurlGlue();
                   cg.setopt(c.OPT_URL,url);
                   int result = cg.perform();
                   cg.finalize();
                   System.out.println("result:"+result);
              catch(Exception e)
              System.out.println("Exception:"+e);
         Here is the link of curl _ java package : http://sourceforge.net/projects/javacurl . So I am need of Java files
    I am in trouble. So plz help me out
    prashu.dr

  • Need  java code to perform refresh button action using swings and awt

    i need java code to perform refresh button action using swings and awt.please help me

    Wait ! Noboby ? OK, I'll do it
    public void onBtnAction ()
        if (!fresh)
            refresh ();
    }Seriously, did you expect anyone to answer such a cryptic question ?

Maybe you are looking for

  • ITunes Seem to Have Suddenly Stopped Communicating With the CD/DVD Burner

    Hello, I wonder if anybody can help - my itunes application seems to have suddenly stopped communicating with my laptop's cd/dvd burner (Generic Name (E: H - T-S D D A S - 20N ATA Device)). About 2 years ago, I have experienced a similar problem, but

  • Tab to window browsing

    Need to be able to open an app or two while using safari. The window version or thumb would work here but not tabs. This pad continues to give the student additional stress.

  • Using own domain name , duplication of web address HELP !!

    Hi all, Although this is not a big problem it is quite annoying. I am currently building website within Iweb 09. I have managed to set up my own domain name with no problems at all. The only thing is I get a duplication of my website name on the brow

  • Verificati​on email not received

    Hello, When I try to log into my account on bestbuy.com, it says I need to verify my account. I've tried to log in a few times, but I never get an email. The email address with my best buy account is the same email with this account. I've checked the

  • E-Mail message format

    I have recently encountered a problem with the formatting on e-mail messages that I receive on my BB from sweeping both Outlook and internet e-mail addresses.  The spacing is very large so that I am able to only see a few random bits/pieces of the me