Can see my db in Java DB

Hello all!
I am using netbeans.
I am using derby drive.
I cant see my db that I creates with this method:
      Class.forName("org.apache.derby.jdbc.EmbeddedDriver";);
       con = DriverManager.getConnection("jdbc:derby:"+getDBSystemDir()+";create=true;user=demo;password=demo");
   con.commit();
[/code]
All works fine from the code and from  code I can get all the tables but I cant see my db in Services->Databases->Java DB
how can I fix it?
thanks for helping                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Well maybe Netbeans is looking at a different database then. Print out the url you are passing to getConnection() in your code and compare what the code is using to what you have configured in Netbeans.

Similar Messages

  • Can see in appletviewer but not in browser

    Hy,
    I am trying to display a text on JTextArea using the code below. In appletviewer this is OK but I can not see the text on browser (IE 6, NS 8, Firefox 1.0.7). The browser only show a retangle applet. No exceptions.
    If I insert this two lines
    output = " \nHy";
    outputArea.append( output );
    then I can see "Hy" but not the text in mytext.txt. Why?
    Thanks
    Flow
    import java.io.*;
    import java.awt.Container;
    import javax.swing.*;
    public class myClass extends JApplet {
         public void init() {
              JTextArea outputArea = new JTextArea();
              outputArea.setLineWrap(true);
                 outputArea.setWrapStyleWord(true);
                 outputArea.setEditable (false);
              Container container = getContentPane();
              container.add( new JScrollPane( outputArea ) );
              String output = "";
              String file = "mytext.txt";
              try {
                   BufferedReader bufR = new BufferedReader(new FileReader(file));
                   String s = null;
                   while ((s = bufR.readLine()) != null) {
                        output += s;
                   bufR.close();
              } catch (Exception e) {
                   e.printStackTrace();
              outputArea.setText(output);
    <html>
    <head>
    <title>Untitled Document</title>
    </head>
    <body>
              <applet code="myClass.class" width="300" height="80"></applet>
    </body>
    </html>

    in your Java Console, while runnig your applet on browser you'll se...
    Java Plug-in 1.5.0_04
    Usar versi�n JRE 1.5.0_04 Java HotSpot(TM) Client VM
    Directorio local del usuario = C:\Documents and Settings\mbaiges
    java.security.AccessControlException: access denied (java.io.FilePermission mytext.txt read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileReader.<init>(Unknown Source)
         at myClass.init(myClass.java:24)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)That's because an applet needs to be a "signed applet" to have the requested privileges to access to local files, such as your "mytext.txt".
    There are many topics related to this problem that will help you to solve it :-)

  • How can I find out the java version Oracle has ?

    How can I find out the java version Oracle has built in?
    I've tried with ..
    SELECT comp_id, comp_name, version
    FROM dba_registry ;
    But I get.."table doesn't not exist".
    Thenks in advance!

    Pl post details of OS and database versions. Pl see this MOS Doc
    What Version of Java is Compatible With The Database JVM? [ID 438294.1]     
    and these Oracle docs
    11gR2 - http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_environments.htm#ADFNS654
    11gR1 - http://docs.oracle.com/cd/B28359_01/java.111/b31225/whatsnew.htm
    HTH
    Srini

  • WHere i can see the Server side Errors in WAS

    Hi,
    I'm creating a java application.where i wrote Jsp,Servlet,Sessionbeans.I'm getting runtime Exception.Like in Weblogic/Tomcat, In WAS where I can see the console so that I can see the Error messages.
    Or will it create any Log file If so Where it will be created.Plz Suggest me how can we view the error message or log message.
    THanx

    Hi Lakshmi,
    depends on the version you are on.
    EP5: See /thread/23766 [original link is broken]
    EP6SP2: See /thread/25694 [original link is broken]
    EP6 NW04: See /thread/19070 [original link is broken]
    Best regards
    Detlev

  • Can't modify the advanced Java setting

    I can't modify the advanced Java setting in Windows Vista if the UAC is on. If I disable the UAC the setting can be modified but when I turn the UAC on again return the old setting. This is a big problem because the jre in IE7 results deactivate and I can't open the Java applet infact the browser show the message:
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
    I have installed the latest version: Java Runtime Environment 6 Update 4
    Thanks for the support sorry for the bad English.

    See http://www.google.com/search?q=java+vista+uac+problem

  • Can't convert int to java.lang.Object

    When I deploy my customer Bean, the following error occures, I think the main problem is Can't convert int to java.lang.Object, does anyone facing the same problem with me?
    <pre>C:\j2sdkee1.3\repository\home\gnrtrTMP\CustomerApp\CustomerBean_RemoteHomeImpl.j
    ava:27: Incompatible type for declaration. Can't convert int to java.lang.Object
    java.lang.Object primaryKey = ejb.ejbCreate(param0, param1, para
    m2);
    ^
    C:\j2sdkee1.3\repository\home\gnrtrTMP\CustomerApp\CustomerBean_RemoteHomeImpl.j
    ava:57: Incompatible type for =. Can't convert int to java.lang.Object.
    primaryKeys = ejb.ejbFindByPrimaryKey( param0);
    ^</pre>
    I really need your help!!!

    you can only convert one object type to another. Integer is an object int isnt. You might want to convert int to Integer and then go ahead.
    see if it works.

  • HT5367 Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess and it is preventing me from working... need to go back :-(

    Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess for me and is preventing me from working remotely...  :-( really need to go back to older Java, don't have the Time Machine set up ...  Thx

    I wonder if it's a variation of this, of which I've seen many different symptoms...
    http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/TS4135/TS4135_01-osx _1072-login_window-001-en.png
    Resolution
    Move the mouse or trackpad cursor over the center area of the login window so you can see the user icons. Click on the icon of the user that you would like to login as, type in the user's password, and press Return.
    If the login window is configured to show only the name and password fields, type in the user's name and password into the fields, and press Return (even if you cannot see the rest of the login window).
    Additional Information
    This issue will not occur if the display is not sleeping when the account is logged out. Use the steps below to confirm that the account is not configured to log out automatically while the display is sleeping:
    Open System Preferences > Security & Privacy > General.  Click the padlock to unlock the preference pane and enter your admin password. Click the Advanced button at the bottom, then see if the option "Log out after N minutes of inactivity" (where N is the number of minutes) is enabled.
    Open System Preferences > Energy Saver and configure Display Sleep to occur after the account is logged out, by dragging the slider to a number of minutes that is greater than N was set to in the previous step.
    Important: If automatic log out is not needed, disable "Log out after Nminutes of inactivity" in System Preferences > Security & Privacy > General. This will also prevent the issue.
    http://support.apple.com/kb/TS4135?viewlocale=en_US

  • How can I change the Jframe Java help Icon

    How can I change then Jframe Java help Icon?.
    I am using then HelpSet class and HelpBroker.
    I want to change the java help icon
    Any Idea? thanks. ...

    It can be done, but it's ugly...
    Add in a listener to your topmost JFrame to sense when the focus is lost, since this happens when a help window comes up. When the focus leaves the main window, check all the windows that are up to see if one is a help window. If so, this will give you a reference to the help window and you can drill down to change what you want.
    Here's an example that changes the icon and removes the borders from the javahelp buttons.
    WindowListener wndCloser = new WindowAdapter() {
              //A necessarily roundabout method to affect
              //look and feel aspects of the javahelp viewer.
              //(there is no way to get at these components directly.)
              //When the main frame loses focus, it may be because
              //the help viewer was brought up. Look through all
              //the current frames to see if one is a help viewer.
              //If it is, change the look of the help viewer
              //to what we want.
              Frame m_helpFrame = null;
              public void windowDeactivated(WindowEvent e) {
              if (m_helpFrame != null)
                   return;
              Frame[] frames = getFrames();
              for (int k = 0; k < frames.length; k++) {
                   if (!(frames[k] instanceof JFrame))
                   continue;
                   JFrame jf = (JFrame)frames[k];
                   if (jf.getContentPane().getComponentCount()==0)
                   continue;
                   Component c = jf.getContentPane().
                   getComponent(0);
                   if (c == null || !(c instanceof JHelp))
                   continue;
                   m_helpFrame = jf;
                   //now that we know the Frame, we can change the title icon
                   final Image image2 = <your icon here>
                   m_helpFrame.setIconImage(image2);
                   JHelp jh = (JHelp)c;
                   for (int s=0; s<jh.getComponentCount(); s++) {
                   c = jh.getComponent(s);
                   if (c == null || !(c instanceof JToolBar))
                        continue;
                   JToolBar jtb = (JToolBar)c;
                   //now that we've accessed the toolbar, we can
                   //modify the look of the buttons.
                   for(int i=0; i<jtb.getComponentCount(); i++) {
                        Component comp = jtb.getComponentAtIndex(i);
                        if(comp instanceof JButton) {
                        JButton button = (JButton)comp;
                        button.setBorder(null);

  • From where can I download ADF Faces java doc

    From where can I download ADF Faces java doc, i.e. all packages in oracle.adf.*.
    --Mukul                                                                                                                                                                                                                       

    Hi,
    see http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/apidocs/index.html
    Frank

  • Why can't i download usps' java, in order to select my printer and print shipping labels? btw, how do i get firefox 4.o back, since i can't use google toolbar, i want to change back

    The java applet will not download and allow me to select my printer, so as to print my shipping label from the US postal service.
    Also, can no longer use google toolbar, all my bookmarks with
    the ff 5.0, so prefer to go back to the ff 4.0.

    Not a good idea to post a phone number in a forum. Anyone with access to the forum now has your phone number. Return to the forum, sign-in, click "Edit" to the right of your post and remove that phone number.
    Many users have restored the functionality of Google toolbar by installing the '''''Add-on Compatibility Reporter''''' extension. Google needs to test the toolbar in Firefox 5 and change one line of their code to make it compatible with Firefox 5.
    Add-on Compatibility Reporter: https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    You either do not have Java installed or you have it disabled in Add-ons > Plugins. See if you have Java Platform SE ''version number'' installed there. If there and disabled, click the "Enable" button and try the site again. If not, install Java.
    #'''Install or Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • It can be done in C++, can it be done in Java?

    Hi
    In C++, the following code will change a to 2.
    int a = 1;
    int *b = &a;
        *b = 2;How can this be done in Java?
    My reason is that I implemented SortedSet so that it creates and maintains a binary tree (Assignment pre-requisite).
    If the subSet method is called, it returns a portion of the Tree!
    How can i get it to return this portion so that any changes which are made to this subSet are automatically reflected in the original Tree? (Just trying to be a geek and get extra brownie points)
    Thanx
    Tecknick

    public class MyInt {
    public int sss;
    public MyInt myInt = null; // only reference
    public MyInt( ){
    } // default constructor
    } // class MyInt ends here..
    // here now..
    public MyInt a = new MyInt( );
    a.myInt = a; // very Clever
    a.sss = 1; // Your ---------------> int a = 1;
    public MyInt b = a.myInt; // your
    ------------------> *b = &a;
    b.sss = 2; // Your -----------------> *b = 2;
    What is the point of the member field myInt here? The example code gives the effect of just using MyInt myInt = this; and not setting the value in the client code. Why would you ever need to explicitely give an object a reference to itself? You would get exactly the same results (and clearer code) if it wasn't present:
    public class MyInt {
      public int value;
      public MyInt(int value) {
        this.value = value;
      public static void main(String[] argv) {
        MyInt a = new MyInt(1);
        a.value = 1;
        MyInt b = a;
        b.value = 2; //Since a == b, a.value is now equal to 2 as well.
    }Notice that this is now the same idea as was posted by rabbit3000 earlier - it just doesn't use accessor methods (up to you if you decide you want to) - all it is, is a mutable version ot java.lang.Integer. I couldn't see a good reason for a default constructor, so I took that out too.

  • Where we can see

    Where we can See the Polymorphism and Abstraction
    in Java(with example)
    Please Clear my point

    i'd rather have a bottle in front of me than a frontal labotomy.
    ..speaking of which, where's my six-er at?

  • How can i use the operationsComplete JAVA API in EJB2.0

    Hello guys,
    My Issue is cleaning the EJB Cache. some guys saying using JAVA API like operationsComplete like the follwing
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    Please reffer the link below
    (http://e-docs.bea.com/wls/docs92/ejb/entity.html#wp1194003)
    Understanding Passivation of Entity Beans
    Entity beans that are involved in transactions can be passivated when necessary in order to attempt to prevent a CacheFullException when an attempt is made to insert an entity bean into a cache that is full. Passivation is handled automatically by the EJB container and you do not need to change the way you program EJBs in order to take advantage of this feature. However, you can optionally program your EJBs to communicate to the cache that they are done performing all operations in the current transaction. The cache can then make use of this information when evaluating beans for the possibility of passivation.
    To optionally program EJBs to notify their cache that they are done performing operations in the current transaction, you can use the operationsComplete Java API as follows:
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    It would be great help if any guy give me a solution.
    Thanks in Advance
    Rajasekhar

    Netweaver is comprised of different components...
    in WAS ABAP.. if you go to SPAM.. and select imported support packages and click display..
    You will see list of components.. some of the components you might see at same level and some follow different paths...
    ex:
    SAP_OCS  - > SPAM/SAINT UPDATE 24
    SAP_BASIS -> Support pacakage 13 for 7.0
    SAP_ABAP-> Support pacakge 13 for 7.0
    and the same way you can find different components in java engine...
    http://<host>:<port>/sap/monitoring/SystemInfo
    You can upgrade each of them by individual support packages.. or you can upgrade stack by stack..
    stack is collection of supporpt packages...
    If you follow stack.. then you can tell that you at NW04S Support stack 10 or 11... if you upgrade by support package always it is collection of versions of different support packs in your system...
    Please do come back if you require any further information..
    Award points if this reply found useful

  • How can i become Sun Certified Java Programmer?

    Dearl All,
    Can anyone tell me how can i become Sun Certified Java Programmer?
    Thanks in Advance..
    thanks & Regards,
    Mark Spenser
    [web design los angeles|http://www.plaveb.com]

    No link sigs in here please.
    See this link for all information needed:
    [http://www.sun.com/training/certification/]

  • How can I trasfer file using java program (from NT to Unix)

    Hi all,
    I want to transfer a text file from Windows NT to Unix machine inside the Java program.
    How should i do it.
    Thanks in advance.
    Regards
    Rajeev

    you have several options:
    - make your system administrator software install software on Unix and NT so that you can see a directory on the Unix machine from your NT machine, and just copy the file there
    - use FTP to put the file on the Unix machine
    Jesper

Maybe you are looking for

  • Weird issue - BEX analyser vs Web report

    Hi, In BEX analyser variant screen, I could not find a particular cost center, but I could see it if I use web report. this is really stange since I am running same report. thanks in advance

  • Resource Manager question

    Hi, In 10g , Automatically Assigning Resource Consumer Groups to Sessions done by using the following package: DBMS_RESOURCE_MANAGER.set_consumer_group_mapping ( attribute IN VARCHAR2, value IN VARCHAR2, consumer_group IN VARCHAR2 DEFAULT NULL) For e

  • Text issue in FBL5N

    Hi I created Credit note and credit memo , there we g\have not maintained any text. bt once i go to FBL5N  and locating my all item details there i am finding text(xyz) in below of that line item. i checked there is no any precedent docs having text

  • Required Month end process in MTS

    Dear All, Plz. explain me the details for Month end process in Make to Stock (Repititive Manufacturing) OH Calculation WIP Calculation Variance Calculation Settlement what is entries system will pass and how the system is picking the G/L account or C

  • Lost bookmarks in Safari

    For some reason I have lost all the bookmarks in Safari. I have tried to restore Safari from TimeMachine but I still don't get the bookmarks. Are these stored somewhere that I can retrieve them? If so how?