Q: How to setting the Sun ONE Studio JDK and Class(and file) Path.

1.I'll use two JDK version.
2.I'll add the Oracle JDBC driver.
3.In my city, I'm didn't find the Sun ONE Studio book.(Forte for Java 4).
need help.
Thank you.

Dear javaunter20000,
I'm used the Windows XP Professional(SP1),
I'm use the
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@127.0.0.1:1521:netcob";
String user="***"; String password="***";
Connection conn= DriverManager.getConnection(url,user,password);
connect Orcale, compiler return:
***[34:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
^
***[34:1] unreported exception java.lang.InstantiationException; must be caught or declared to be thrown
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
^

Similar Messages

  • How to set the default focus component using FocusTraversalPolicy class??

    hi all...
    I have a JPanel, of which setFocusCycleRoot() has been made true. I am trying to make sure that whenever I open this panel, the first JTextField must have the focus.
    the problem is that I have to hit the tab key once, ay satrtuptime. after that all works fine. Kindly rell me a way to eliminate this first-time tab key hitting.
    please note that I have extended FocusTraversalPolicy class and have defined all its methods accordingly....
    thanx...

    try this at the end of your constructor:
    myTextField.requestFocusInWindow();
    it works in my login panel that wants to focus the second password field after i added the panel to the internal frame.

  • How to set the Purchase Order screen to display Add and Cancle button

    Hi Experts,
    Do anybody knows that how can we see the Add / Cancle button on Purchase Order screen ? , at present I need to compulsory scroll vertically to look at Add / Button button.
    In Stock Transfer / Inventory transfer screen when we maximise it than also we can see the add / cancle button
    will change of font will effect it ?
    BR
    Samir Gandhi

    Hi,
    Can you maximize the PO screen too? You should try a smaller font to seem more within a window form.
    Thanks,
    Gordon

  • Can not add the Palm Emulator to Sun ONE Studio 5 ME

    I am trying to add the Palm Emulator (version 3.5) to the list of emulation devices within the Sun ONE Studio 5 ME.
    First, it seems like Studio 5 requires that the emulator resides in a bin subdirectory. Second and here where the problem is. Once the emulator is identified by Studio 5 (as a "Standard UEI Emulator" and after I click on "Next", Studio 5 tries to get information about the configuration of the emulator and its profiles.
    I, immediately get an error (generated by the Palm OS Emulator) stating: "Don't understand the command line parameter "-version"." within a message box. Once I click OK, the Studio 5 says that the operation failed.
    This is as far as I could go.
    I would like to mention that I am running Windows XP Professional with Service Pack 1. I am also working with a ROM image that I downloaded from my PalmVx PDA.

    Hello Hassan,
    I've done the following: I've used Palm emulator that's included with WTK 1.0.4_01 provided with Sun ONE Studio 5, ME. If you try to execute application using this 'device' you'll be asked to point to directory with Palm Emulator 3.5 (the one you have), emulator.exe. Then it takes over and asks for skins, ROMs and other stuff.
    Hope this helps,
    Peter

  • I am beginner to sun one studio and sun one application server

    How can i access a cmp from a jsp page.
    in sun one application server.
    thanx in advance

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Connecting to MySQL from Sun One Studio

    Hi,
    I am trying to connect to the MySQL from the Sun One Studio 5. I followed these steps.
    1. I downloaded the MySQL software and installed on my local computer, it was successful.
    2. I got the drivers [b][b][b]mysql-connector-java-3.0.8-stable-bin.jar and placed it in the <stdudio5>/lib/ext/ directory.
    3. And I successfully got through that one also, and in the database section it showed me the icon for connecting to mysql database. I gave the url, username, and password. It worked fine.
    4. Then I created the connection pool, JDBC resource, and Persistence manager for my server instance. It was also successful.
    5. When I built a cmp bean accessing the table in mySQL database, it is giving me these errors.
    If you notice these error, it is asking for vendor type. But i don't have any option to choose the vendor type when i configured the database resources.
    Can soem body suggest some other method and clear this error. I am struggling with this since a week.
    Thank you.
    [[b]09/Oct/2003:11:12:31] WARNING ( 3476): Cannot get database metadata: database product name.
    java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnection(SystemJdbcDataSource.java:252)
    at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(SystemJdbcDataSource.java:154)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(EJBHelper.java:169)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:781)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    [09/Oct/2003:11:12:31] INFO ( 3476): Bean Jobinfo method ejbFindByTitle: problems running JDOQL query.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store.
    NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:802)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    The AS7 error suggests that you have not set up the server startup classpath to include the driver jar. The steps to do this are included in the article mentioned in Chris's reply, namely:
    http://developers.sun.com/tools/javatools/tips/tip03-08-22.html
    Note especially the part starting with Step 3 under the section "Enabling the JDBC Driver in the IDE."
    -Jane

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Read-Only error in Sun One Studio IDE 4

    I have been using Sun One Studio IDE 4 for months, and updated it for several time. Today I mounted a directory and wanted to create a new plain java class under this directory, but it always reported: Error: File in D:\..... is read-only. It never happened before. I am confused. Then I tried to mount other direcotries and create new java files, always got the same error. Could anyone please kindly tell me what�s wrong with the Sun One Studio? Thank you very much.
    Ellen

    Nobody familiar with Sun One Studio here? I don�t want to change IDE and could anyone please kindly help?

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Bug Database for Sun ONE Studio 8

    Is there an online bug database for the Sun ONE Studio 8 Compiler Collection, like there is for all of the Java related tools? I know we have product support, but I don't want to go through the overhead of 4 or 5 layers of people to report a minor problem I have found.
    The minor problem is that the er_src utility will open files in the current working directory in preference to an absolute pathname specified on the command line. I used it from my home directory, giving it an executable name and source file name each about 5 levels deep in directories below my home -- with absolute paths. I was shocked to see the source from a six year old version of the file in the output. The 'truss' utility revealed that the source was being opened from my current directory -- ignoring the absolute path. This version of the file is one I have kept for reference, being the initial port of the program from a different language.
    It appears that er_src attempts the unqualified file name first, then the absolute path if it fails to find the unqualified name.

    The er_src man page does say the .er.rc files are processed, which implies that the setpath/addpath handling is done, at least to me. So the behavior reported is what I would have expected, but the manpage could, and should be more explicit.
    The er_print man page is more specific, and does say that the compiled-in path is used only if the file is not found searching the current path mappings, which do contain "."
    Can you tell me exactly what you'd like us to do? We did it this way because users complained about using the compiled in path, rather than finding the file in . or the experiments, where we explicitly tell people to copy files for archival purposes.
    If you want us to change the behavior, please tell us EXACTLY what the desired behavior is. We could define a special symbol, like $EXPTS, to refer to the compiled-in path, $COMPPATH, perhaps, and then it could be put before or after . or $EXPTS.
    Another issue is which name to use when. er_src has two referents for a path, one for "object", the thing whose source is being dumped, and a second for "item", specifying which item contained in the object should be dumped. For item, I believe we always only use the
    base name, even if an absolute name is given. It is used to match against the names contained in object's symbol tables. All of this is complicated by NFS -- the present functionality is intended to behave gracefully when a file is examined on a machine other than the one on which
    it was compiled.

  • Installing Sun One Studio on Linux Mandrake 9.1

    I try to install the Sun One Studio 5 on my mandrake 9.1 Linux.
    I am using the jdk 1.4.2 and I am logged as root.
    When running the command:
    ./s1s5se-linux-en.bin -isjavahome /home/products/j2sdk1.4.2
    I get the error message:
    The installation cannot continue for the following reason(s):
    To install Sun ONE Studio 5 you need to log in as superuser or a user with administrator privileges.

    Yep I agree this is very disapointing, however I have got Sun One Studio 5 Standard Edition working on Mandrake 9.1
    Fortunatley I am lucky enough to have a spare hard drive and RedHat7.2, another pc networked up and the following is what I did....
    Installed Redhat7.2, j2sdk1.4.2, then ran the SunOneStudio install as root, tested and works fine.
    The Studio gets installed into /opt there are 2 dirs which are needed from what I can tell 1 is the ide "studio5_se" itself and the other called "imq"
    cd into the root dir and create a tar file of the opt dir
    tar -cf opt.tar opt
    gzip opt.tar
    I then copied the opt.tar.gz to a place I could download to the other machine, so I downloaded it, then shutdown RedHat,
    re-installed my original Mandrake9.1 Hard Drive, and booted up.
    logged in as root, and then transferred my opt.tar.gz to Mandrake,
    untared it into the opt dir and then moved the imq and studio5_se dirs into /opt
    installed j2sdk1.4.2 rpm on Mandrake9.1
    then command line I
    1, cd /opt/studio5_se/bin
    2, ./runide.sh -jdkhome /usr/java/j2sdk1.4.2
    and HEY PRESTO
    The only reason why I can see that the IDE will not install under mandrake is possible the coding under the Installsheild, maybe it looks for a file or someting that RedHat has and not mandrake, or just tests the OS to see if it is in the supported list, and if not then throws the error
    If that is the case then it's proberly likely that it was setup like this because RedHat gives money to sun and not Mandrake????!!!?????
    maybe I don't know3 just my observation, but 1 thing I do know is that due to this error I shall not be buying it, until sun change the way to install it or they go back to the old way the Forte installed
    Just my thoughts,
    and I hope this helps someone

  • Sun One studio

    where to find the sun-cmp-mapping.xml in the Sun One studio enterprise 6.. I get the following error while validating:
    CMP Mapping Error in bean empEntity:: The field deptid has an invalid fetch group. Default is not a valid fetch group for managed fields. If your field is not a managed field, it may be treated as one if you have a CMR to this bean which is mapped to the same column as deptid.
    Select a different fetch group.
    I need to change the fetch group for this field, but to no avail.. Please help..

    You need to download the J3D separately, I installed in order:
    J2SE1.4.2, then Sun ONE Studio 4, then J3D1.3, and wrote code in java3d with forte, and everything compiled quite nicely without having to do any tweaking.

  • Sun ONE Studio Compiler Collection Portal Launched

    A new portal with resources for application developers using the Sun ONE Studio Compiler Collection (C, C++, and Fortran) has been launched.
    Go to http://forte.sun.com/s1scc/
    Technical articles, knowledgebase items, code samples, full documentation, etc., for the C, C++, and Fortran developer.
    Send us your feedback. We'd like to hear what you think.
    <Richard Friedman - Sun ONE Studio Compiler Collection Documentation>

    To all: There are some good articles there focusing
    on fortran and on Open-MP. Go have a look.

  • Problem installing Sun ONE Studio 4 update 1, Community Edition

    I recently downloaded the Sun ONE Studio 4 update 1, Community Edition and tried to install it. At one point it searches for a valid JAVA 2 SDK. This seems to go on forever. I quit after 5 hours of waiting. I already have Java 2 standard edition v1.4.1 installed. Can someone please help?

    Well thanks Chuck!
    With a bit of messing around and a LOT of patience I finally installed Sun ONE Studio update 1 on my laptop pc, running Windows ME.
    The trick was (I think) to apply both of the above fixes, but also a couple of things that was not quite as evident.
    1 - Do NOT install the SDK in "C:\Program Files\" or any directory path that contains spaces in the name! Apparently that causes problems, and is noted in one of the Knowledge Base articles.
    2- When making the file noted in the Knowledge Base:
    ( http://forte.sun.com/cgi-bin/WebX?[email protected]@.ee815f4 )
    - It says: Contents of this new file should be:.
    jh=<jdk Home Path> (for example, jh=c:\j2sdk1.4.0_01)
    Well it does NOT mention that there should be 2 lines in that file!
    Make sure you include a carriage return and a second "blank" line!
    OK, that's it. GO ahead & loose yourself in the IDE.
    I hope this does not cause undue traffic in the forums but what the heck...
    -- HSC --

  • Problem Installing Sun One Studio ce on Linux RedHat 8.0

    I have a problem installinh Sun One Studio CE on a machin with Linux RedHat 8.0.
    The installation starts but at about 80% of its ther is an error and install stops.
    Does anybody help me?
    I don't know what error stop the install

    I'm having the same problem.
    The Sun One Studio CE starts up fine then towards the end it says:
    "installing... this my take a few minutes"
    But it doesn't, in fact it freezes there and doesn't do anything else.
    (I left it running over night and it was still there with the same message)
    Need help.

Maybe you are looking for