How can i import java.sql package for midlet development

I am trying to write a midlet app using Wireless Toolkit 2.5.2. I would like to connect my application to JavaDB in embedded mode. But when I write "import java.sql.*;", I get an error "package java.sql does not exist
". I would like to know how can i include this package. please help.

FBL wrote:
Sorry to jump in, but isn't there limited jdbc using unconventional methods?
[http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/|http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/]
If so, I feel this may better answer the OPs question.
-TresAbove article refers to CDC - it is useless in CLDC midlets

Similar Messages

  • BC4J - How can I get java.sql.Connection ?

    Hi,
    I am using BC4J for my Application and want to get the java.sql.Connection from ApplicationModule or from anywhere such that I can use the same connection as in ApplicaitonModule, to do some work in the database.
    I tried to get it from the SessionInfo :
    sessioninfo.getConnectionInfo();
    but this returns me oracle.dacf.dataset.connections.Connection
    How can I convert this to java.sql.Connection?
    Or Is there any other means to get hold of sql.Connection?
    Any help would be appreciated.
    TIA

    Thanks for this reply.. but
    I need java.sql.Connection to call a stored procedure in Oracle database and I have to pass oracle.sql.ARRAY to it.
    My Stored Procedure looks like:
    create or replace PROCEDURE updateRevenueNetworkInfo(revid varchar2, netids Varchar32Array)
    where 'Varchar32Array' is my own datatype in the database which is mapped to oracle.sql.ARRAY object in java.
    And in order to create oracle.sql.ARRAY I need java.sql.Connection as shown below
    oracle.sql.ARRAY pTable = new oracle.sql.ARRAY(desc, connection, netidarray);
    I am executing my stored procedure like this:
    ArrayDescriptor desc = null; CallableStatement cs = null;
    String[] netidarray = {"00-AOL-T1-N003"};
    desc = ArrayDescriptor.createDescriptor("VARCHAR32ARRAY", conn);
    oracle.sql.ARRAY pTable = new ARRAY(desc, connection, netidarray);
    cs = conn.prepareCall( "BEGIN updaterevenuenetworkinfo(?,?); END;" );
    ((OracleCallableStatement)cs).setString(1,"00-AOL-T1-R3");
    ((OracleCallableStatement)cs).setArray(2, pTable);
    cs.execute();
    Is there any way of getting java.sql.Connection such that I can use the same connection as in the ApplicationModule?
    OR Is there any other way of passing Array of Strings to a stored procedure in the database?
    Thanks for the help.
    null

  • How can we relase app with URL for iOS Developer Enterprise program

    Hi,
    I want to release our developed IOS app to our employees through URL for iOS Developer Enterprise program.

    Hello,
    Thank you for your answer. Can you tell me where did you find this information ?
    Thank you
    Eric

  • How can I import an expdat.dmp for one user into an another ?

    Hi Folks !
    I have an expdat.dmp for a scheme USER1 (the whole user scheme is exported)
    I want to import this scheme into Database, but into USER2 and NOT
    USER1. so at the End of Import I would have 2 schemes that are the same.
    How could I do it ?
    MfG,
    Alexandre Ossipov

    Hi
    Suppose you have expdat.dmp for a schema user: USER1
    Pre-requisite: Same DB version , Adequate Space
    Use following Command :
    imp userid=usr/pwd@sid fromuser=USER1 touser=USER2 FULL=Y
    Thanks
    Vishwas
    Hi Folks !
    I have an expdat.dmp for a scheme USER1 (the whole user scheme is exported)
    I want to import this scheme into Database, but into USER2 and NOT
    USER1. so at the End of Import I would have 2 schemes that are the same.
    How could I do it ?
    MfG,
    Alexandre Ossipov

  • How can I download Adobe CC Package for Windows version 1.1?

    Hi
    I'm the user administrator of Adobe CC for teams in a spanish company. The problem that we found is we can't download the 1.1 version of the Adobe CC Package, just because in the spanish website it's only available the 1.0.
    I have this link: http://helpx.adobe.com/creative-cloud/packager.html but it always downloads the 1.0 spanish version.
    Thank you in advance for your help.

    At the bottom of the http://helpx.adobe.com/creative-cloud/packager.html page is a Choose your region option. Does switching to the United States help?

  • How can I download Japanese language package for Mac SOX 10.2.5?

    I received a PDF in Japanese, but my acrobat reader cannot read it. It gives me a message that I need a Japanese language package which is not available for this version. What should I do?

    You should be running OS 10.2.8 (the final build for Jaguar - download it from Apple.com/support), and check Apple.com to see if there are some international language updates as well - you may have to install those from your original OS 10.2 Disc. If you have those, you should be able to open a Japanese PDF in Preview (the built in PDF viewer in OS X).

  • How can I import Outlook for Mac mail into Lion Mail?

    How can I import mail from Outlook for Mac into Lion Mail?

    It is not Outlook that needs to be sync'd; it is the Exchange Server.  Find out from the System Administrator of the Exchange Server the EXTERNAL name and use that to setup a new mail account in Lion Mail.  I highlight the "external" because the URL used for Window's Outlook Clients will not work.  Try the webmail URL first.

  • : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    Save the file from Gmail onto your computer and add it to iTunes.  How you save from Gmail is a Gmail question (their own support pages), not an iTunes question.

  • How can I import an project .imoviemobile file to imovie 10.0.6 on my mac book for further processing

    How can I import an project .imoviemobile file to imovie 10.0.6 on my mac book for further processing?

    You can't.  (http://www.macworld.com/article/2057972/imovie-for-ios-projects-no-longer-work-o n-the-mac.html)
    Geoff.

  • How can I import photo to computer if my photo were save in event instead of saved photo for ipad1?  Why Photo in event are not detected ?

    How can I import photo to computer if my photo were save in event instead of saved photo for ipad? Photo in event are not detected.

    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • How can i import dll files in java project in eclipse?

    Hi All,
    How can i import or link dll files in java project in eclipse?....
    dll files contains
    import com.ms.com.ComLib;
    import com.ms.com.Variant;
    import com.ms.com.ComFailException;
    import com.ms.wfc.data.AdoException;
    import com.ms.wfc.data.AdoEnums;
    Any idea of this please tell me.....
    I am using eclipse 3.4 and JRE 1.4
    Is this possible?
    Please tell me!!!!!!!!!!!!!
    Voddapally

    iMovie cannot edit mpg files, unles they come directly from a supported camera.
    I would suggest that you use a free third party app to convert it.
    Get MPEG Streamclip from Squared 5, which is free.
    Drag you mpg clip into MPEG Streamclip.
    Then, FILE/EXPORT USING QUICKTIME
    Choose Apple Intermediate Codec, and save it where you can find it. You should be able to import this file into iMovie, using the FILE/IMPORT/MOVIE command.
    Note: If your file is an MPEG2 clip, you may need to purchase the Apple QuickTime MPEG2 Playback Component from Apple. MPEG Streamclip will tell you if you need this. Don't buy it unless you have to. It costs about $20. You just have to install the component. MPEG Streamclip will use it in the background.

  • (HELP!)How can I import Windows Media Player Playlists, into iTunes Playlists, with Music . .  for an iPod

    How can I import Windows Media Player Playlists, into iTunes Playlists, with Music . .  for an iPod
    We are having no luck with the thousands of songs we have to manualy add to a particular playlist in iTunes alone. .. there must be a simpler way! How can this be done . . . if there is and it's complicated, is the Genius allowed to help us out with this? They seem to only master Mac's only. .  or can they help us? PL E A SE E E  HELLPPP!

    tt2,
    Your very helpful and knowledgeable. I for one appreciate all the hardwork and help you have been giving the people on theses lists, especially with the problems associated with the "importing playlists" from windows media. Unfortunately I need more help if you or someone else can provide it. I followed all the steps you have instructed so far in the threads I have seen. Unfortunately nothing so far works for me. Maybe you or someone can help me, I'd really appreciate it. I tried the notepad++ method and when I click on save I always get a notepad file that my iTunes can't do anything with. I click the "convert to UTF-8 without BOM" then click save as and it still saves as a notepad file. I am also unable to find the \n\ file path to replace with my \C:\ filepath. Here is a copy of the first part of one of my playlists:
    <?wpl version="1.0"?>
    <smil>
        <head>
            <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.17514"/>
            <meta name="ItemCount" content="161"/>
            <author/>
            <title>Power Surge</title>
        </head>
        <body>
            <seq>
                <media src="..\Various Artists\Mixed Tape 2\13 Out of Control.wma" tid="{650561AF-AA9D-4EA3-84CC-2F09C24DF3B3}"/>
                <media src="..\Various Artists\Mixed Tape 1\12 One Step Closer.wma" tid="{EE5ADD9D-A879-404A-BC60-CE841045BCB6}"/>
                <media src="..\Various Artists\Mixed Tape 1\15 Click Click Boom.wma" tid="{0F71941C-1B67-425F-BDAA-246618709179}"/>
    Now I went and switched the part from  <media src="..\ to <media src="C:\ in all the files in hopes that was where I am supposed to have my drive letter but it didn't seem to help. Please forgive my encoding ignorance if that's what my problem is. I hope you can help.  Thanks in advance.
    Madmaxneo

  • Re user tip: How can I import a homemade DVD into iMovie for editing? - I've followed instructions so far so good, until I get to "You can then FILE/EXPORT USING QUICKTIME and choose Apple Intermediate Codec as your video codec. "  How do I do that?

    Re AppleMan 1958 excellent user tip: How can I import a homemade DVD into iMovie for editing? -
    I've followed instructions with success until  "You can then FILE/EXPORT USING QUICKTIME and choose Apple Intermediate Codec as your video codec. "  How do I do that?
    I installed MGEG Streamclip 193b8 and used their utility to install quicktimempeg2 and got a message stating it was successfully installed.  (I'm on latest Maverick 10.9.2 on iMac)  Then I dragged the VIDEO_TS file from my home DVD into the streamclip app.  It asked which of 4 files to use, and I selected the first one.  Streamclip played the video with the sound.  so far so good. but now I cannot figure how to use quicktime player 10.3 to export this vob file out of streamclip.

    Thank you for your quick reply and for clearing up my confusion.  I'm exporting the first section now.  I choose the smallest size, 3x4 but I'd prefer to go higher as this DVD was originally a VHS home movie.  I'm wondering if after three conversions (VHS,->DVD->MPEG) the resolution will be so poor as to not support a larger size frame?  If it can, what size should I select when I export? 

  • Premiere CS4 - How can you import QuickTime (.mov) videos and which settings for the sequence?

    Premiere CS4
    How can you import QuickTime (.mov) videos and which settings for the sequence?
    Please reply in plain English or if possible in German
    Greetings from Vienna, Peter

    I have not installed Quicktime.
    I got a few scenes (.mov) from a Canon Eos 70d.
    I want to create a short film (in Premiere CS4) with these scenes, mixed with photos and MP3 music.

  • How can I resolve java.lang.NoClassDefFoundError?

    I am new to Java and have installed it on my Linux Ubuntu 9.04 workstation in order to learn Java. Basic Java programs work, but I am having trouble connecting to a MySQL database. I installed these packages using Synaptic Package Manager, which I thought should cover everything I need for database connectivity: 1.gsfonts-x11; 2.java-common; 3.odbcinst1debian1; 4.sun-java6-bin; 5.sun-java6-jdk; 6.sun-java6-jre; 7.unixodbc.
    After these packages were installed, I was not sure if I needed to do this, but I downloaded the MySQL connector from http://www.mysql.com/products/connector/ and installed in a directory called /home/mark/mysql/.
    I edited /etc/environment" and added a CLASSPATH to where I installed the connector:
    {code}CLASSPATH="/home/mark/mysql/mysql-connector-java-5.1.7/mysql-connector-java-5.1.7-bin.jar"
    {code}
    I created a very simple Java program based on one I found on the internet. I named the program Jdbctest to test the connection,
    {code}import java.sql.*;
    public class Jdbctest {
    public static void main(String[] args){
    System.out.println("running Jdbctest.java");
    try {
    Statement stmt;
    //Register the JDBC driver for MySQL.
    Class.forName("com.mysql.jdbc.Driver");
    //Define URL of database server for database named mysql
    // on the localhost with the default port number 3306.
    String url = "jdbc:mysql://localhost:3306/mysql";
    //Get a connection to the database for a
    // user named root with password carrot.
    // This user is the default administrator
    // having full privileges to do anything.
    Connection con = DriverManager.getConnection(url,"root", "carrot");
    //Display URL and connection information
    System.out.println("URL: " + url);
    System.out.println("Connection: " + con);
    //Get a Statement object
    stmt = con.createStatement();
    //Select from a table
    stmt.executeQuery("SELECT host, user FROM mysql.user ");
    con.close();
    }catch( Exception e ) {
    e.printStackTrace();
    }//end catch
    }//end main
    }//end class Jdbctest{code}
    but I get this error:
    {code}Exception in thread "main" java.lang.NoClassDefFoundError: Jdbctest
    Caused by: java.lang.ClassNotFoundException: Jdbctest
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: Jdbctest. Program will exit.{code}
    I don't really understand what this error message is telling me. I've Googled for an explanation, and it seems to indicate that my CLASSPATH is wrong, but I'm not sure what it should be and how to fix it. Any assistance would be greatly appreciated.

    Your class JdcbTest isn't in that JAR, is it? So you need the CLASSPATH to also specify where that is. Typical CLASSPATHs start with a dot and then some jars.

Maybe you are looking for

  • How do I boot from an external CD drive?

    On a different thread, I've been reporting problems with my internal HD. When I went to Disk Utility and ran Verify Disk on the HD, I got the error back telling me that the Mac HD needs repairing. Now, to run the repair facility, I seem to have to re

  • How do I restore old emails from recovered data after hard drive crash?

    Hi all - I used data rescue II to recover data from a crashed hard drive - seems to have worked pretty well, as the file structure seems to be mostly intact - now I'm trying to find the old emails and get them back in my inbox/sent mailboxes where th

  • How do I identify the actual /dev nodes in use by ASM?

    I'm using ASM on LUNs from an EMC SAN, fronted by PowerPath. Right now I have only one fiber path to the SAN, so /dev/emcpowera3 maps directly to /dev/sda3, for example. Oracle had a typo in what they told me to do in /etc/sysconfig/oracleasm*, so th

  • Proactive Tablespace Management

    hi, In Oracle Database 10g, by default, all tablespaces have built-in alerts that notify you when the free space in the tablespace goes below a certain predetermined threshold level. Is it True? How to check default threshholds at tablespace level in

  • Adobe Reader on Mac changes page size when navigating or searching

    Upgraded to version 11.0.09 of Reader and when I search or use the navigation links the page size is not maintained. How do I set the page size to remain constant for all actions in Reader.