OpenGL not starting from java using java web start

Dear All,
I am a beginner in java2d, please excuse if what I am asking is not your standards. My problem is that I am using a swing application that is delivered to a client machine through the webstart. It is a medical Image viewer(usually DICOM images of size 10~15 MB) . I am using windows XP in my client machines. My graphics card is 'Intel(R) 82865G Graphics controller' and installed with the latesr driver from the intel web site. My current problems are:
1. I tried starting the opengl through the command line using the option java -Dsun.java2d.opengl=True MyApp. My application started however the verbose says opengl could not be started. The message is as follows:
Could not enable OpenGL pipeline for default config on screen 0
2. How can I start open gl when my application is run by java web start? How can I know that open gl has started? I tried giving System.setProperty("sun.java2d.opengl","True") in the main function of the program. I couldnt see any message regarding the opengl in the web start console.
Any help would be greatly appreciated,
Thanks in advance,
zeus

Im not sure but a lot of times corruption happens and hence its better you redo your scheduling.
Regards,
Den

Similar Messages

  • Error of using Java Mail in Web Start

    Hi,
    I got a problem when using Java Mail to send email. My apps is a stand alone and no problem when it was deployed normally. When I used the Web Start to deploy it, the following error was caught when I tried to send email:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2824645.1032281188963"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at javax.mail.Transport.send0(Transport.java:164)
         at javax.mail.Transport.send(Transport.java:81)
         at com.mailcom.client.util.EMail.sendMail(EMail.java:180)
    Here is the source code:
    public class EMail {
    public static void sendMail(String host,
    String sender,
    String recipient,
    String subject,
    String content,
    Vector fileNames) throws MessagingException {
    Properties props = new Properties();
    props.put("mail.smtp.host",host);
    Session session = Session.getDefaultInstance(props,null);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient,false));
    msg.setSubject(subject);
    Multipart mp = new MimeMultipart();
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(content);
         mp.addBodyPart(mbp1);
    // attach the file to the message
    if(fileNames != null && fileNames.size() != 0) {
    FileDataSource fds = null;
    for(int i = 0; i < fileNames.size(); i++ ) {
    String currentFileName = (String)fileNames.elementAt(i);
         fds = new FileDataSource(currentFileName);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
    msg.setHeader("X-Mailer",MAILER);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
    line 180     Transport.send(msg);

    Yes. All the third party jar files and our application jar are put on the server side. Here is the JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for software-->
    <jnlp spec="1.0+" codebase="http://www.software.com/apps" href="client.JNLP">
    <information>
    <title>client application</title>
    <vendor> * </vendor>
    <homepage href="docs/help.html"/>
    <description>Client</description>
    <description kind="short">A tool</description>
    <icon href="images/logo.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="lib/client.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/smtp.jar"/>
    <jar href="lib/activation.jar"/>
    </resources>
    <application-desc main-class="com.software.client.MainFrame">
         <argument>2226</argument>
         <argument>www.software.com</argument>
         <argument>5351</argument>
    </application>
    </jnlp>

  • How to access a file in Unix server from windows using java

    I want to access a file in unix server from windows using java program.
    I have the following code. I am able to open the url in a web browser.
    String urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
    URL url = new URL(urlStr);
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream)));
    String inputLine;
    while((inputLine=in.readLine()))!=null){
    System.out.println(inputLine);
    in.close();
    I get the following error
    java.io.FileNotFoundException: /javatest/test.csv
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:333)
    at java.net.URL.openStream(URL.java:960)
    at com.test.samples.Test.main(Test.java:45)

    urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
    I have given the format of the urlStr that I am using in the code. The actiual values are used in my code. I have tried pasting this url in the browser and it opens the file.

  • Fastest way to remove html tags except url in href from string using java

    Hi All,
    Please suggest the, fastest way to remove html tags (stripe) except url in href of an anchor tag from string using java.
    Please help me with the best solution as I use parser but it's taking time to remove the html tags from string of file.
    I want the program should give the performance as 1 millisecond for 2kb file.
    Please help me out... Thanks in advance

    Hi,
    how can I replace the anchor tag in a string, by the url in the href of that anchor tag by using jsoup,
    e. g.
    <code>
    suppose input text is :
    test, string using, dsfg, 1:14 PM, < a t a r ge t="_ablank" s t y l e = " color: red" h r e f = " h t t p : / / t e s t u r l . c o m / i n d e x . j s p ? a = 1 2 3 4 " > s u p p o r t < / a >, s c h e d u l a r t a g , < a t a r g e t = " _ vbblank " s t y l e = " c o l o r : g r e e n " h r e f = " h t t p : / / t e s t u r l g r e e n . c o m / i n d e x . j s p ? a = a s d f a s df 4 " > s u pp o r t r e q < / a > a s d f pq r
    then out put text should be :
    test, string using, dsfg, 1:14 PM, http://testurl.com/index.jsp?a=1234, schedular tag, http://testurlgreen.com/index.jsp?a=asdfasdf4 asdf pqr
    </code>
    Please help at the earliest..
    Thanks in advance
    as this text editor is not supporting html anchor tag the example is not displaying correctly
    Edited by: 976815 on Dec 17, 2012 5:17 AM

  • How to send sms to mobile from tomcatserver using java code?

    Hi,
    Could you please let me know that,
    How to send sms to mobile from tomcatserver using java code? Please provide the code snippet.
    Thanks in advance.

    Yes, but something needs to send that message. You can't just take an arbitrary computer and send an SMS, it does not have the hardware to do that.
    So either you have a mobile through which you do that or more likely - you use some sort of online service to do it. Whatever choice you make will determine what code you will have to write to get it done. Nobody is going to deliver the code to you, that's your job. It is also your job to figure out what service you are going to use.

  • How to view file from vss using java Commandline

    Hi To ALL,
    I wanted to view a file from vss through java code.
    By using the folowing code,i could able to get vss file in to local folder.
    Runtime.getRuntime().exec
    ("cmd /c ss Get $/Mywork/Myfile.java -GLC:/New");
    But i wanted to view file from vss using java code.
    any one please help me..
    Thanks in advance.........

    As always, Google is your friend.
    Follow the bouncing link.
    http://www.google.com/search?hl=en&q=VisualSourceSafe+%2B+Java+API
    PS.

  • How to retrieve data from MDM using java API

    hi experts
    Please explain me the step by step procedure
    how to retrieve data from MDM using java API
    and please tell me what are the
    important classes and packages in MDM Java API
    thanks
    ramu

    Hi Ramchandra,
    You can refer to following links
    MDM Java API-pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
    webinr of java API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
    Following Fourm Threads will also help.
    Java API
    Java API
    Re: usage of  java API ,
    Matching Record
    Need Java API for Matching Record
    Thanks and Regards,
    Shruti.
    Edited by: Shruti Shah on Jul 16, 2008 12:35 PM

  • I am really pisssed off at two characteristics of Firefox 4: Size and position do not stick, and view menu selections do not stick from one use to the next.

    I am really pissed off at two characteristics of Firefox 4: 1) Toolbar selections don't stick and 2) firefox window position and size settings do not stick from one use to the next.
    The Bookmarks toolbar is the selection that does not stick, and Firefox, even though I set it to the size and position I want every time I use the program, always loads flush left, full top to botton, and about 1/3 of the width of the screen EVERY TIME it loads. These two characteristics are extreme pains in the ass.

    This problem occurs on the Juno webmail site?
    I assume you are doing something different than just correcting the squiggly red underlined words. How are you spell-checking the email: using an add-on or using a feature of the Juno webmail site? If it's an add-on, which one is it?

  • Calling a web service from BPEL using java web methods

    Hello everyone,
    I have an application my BPEL process should connect to. The application which is a web service needs to be called using pre defined web methods defined in java from my bpel process using Jdev 10g. Any suggestions in how I can go about doing that? Please I really need help

    Hi there,
    If you have defined already your partner links to the service you can use the BPEL API to invoke them from RMI. See this blog entry
    http://technology.amis.nl/2006/06/08/oracle-bpel-pm-invoking-a-remote-bpel-service-from-java-using-rmi/
    It'd be also good if you post the question on the bpel forum BPEL
    Thanks,
    JC

  • Java Programming - Run Web Start App Through IDE Using Existing JNLP(s)

    I apologize for the cross post. I believe I mis-posted the first time. The thread belongs here.
    http://forums.sun.com/thread.jspa?threadID=5434826

    You might try pointing JaNeLA *(<- link)* at it, and fixing any errors it reports. Ignore any optimisations suggested. The optimisations are not properly debugged and would not cause the kind of errors you report.
    Oh, and a ++++ to that advice to to ensure the console pops open when encountering a web start app. Make sure the code is not [swallowing exceptions|http://pscode.org/javafaq.html#stacktrace] *(<- link)* at any stage.

  • Creating desktop shorcut and start menu entry using java

    Hey Guys
    I have a requirement in which i will need to install a desktop application .After installing i will need to created desktop shortcut icon and start menu entries.
    I have worked very less with desktop application and hence i need some help in figuring out how to achieve this.
    Any help would be greatly appreciated.
    Thanks
    Chetan

    George ,
    Thanks for ur reply .Just to give you some background on this one.
    We were using Java web start to do the installation and it used to take care of creating the shortcut icon and start menu entries.
    The problem is that we have decided to move away from java web start and use the exe approach of installing .We wrap our JAR files in an exe and make use of Launch4j. See - launch4j.sourceforge.net/ .
    The launch4j software helps in bundling all our JARs into an exe and when the exe is clicked it invokes a class present in our JAR file .However it does not create any icons because of which we will need to do that manually.
    Any ideas on this?
    Thanks
    Chetan

  • Java 7 u45 Web Start application won't launch

    I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup.
    I've added to the manifest:
    Permissions: all-permissions
    Codebase: *
    Trusted-Library: true
    This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load the first necessary class from my jar.  This is new to update 45. To add to the complication, my application uses Eclipse RCP, so the classloading is through OSGi.

    This likely won't answer your question, but this update has messed up quite a bit with the way applet security is handled.
    There are a laundry list of "known issues" in the release notes and they don't make sense.
    For example, I use JavaScript to communicate to my applet and I have several trusted signed jars on it's class path. To permit JavaScript calls, a new parameter "Caller-Allowable-Codebase: http://*.mysite.etc" must be provided.  To permit my applet to communicate with other jars I had previously used "Trusted-Library: true", but that setting now displays a false warning.  Here's the KNOWN ISSUE from Oracle:
    KNOWN ISSUE
    Area: Deployment/Plugin
    Synopsis: Caller-Allowable-Codebase may be ignored when used with Trusted-Library.
    If a trusted, signed JAR file is using the Caller-Allowable-Codebase manifest attribute along with Trusted-Library then the Caller-Allowable-Codebase manifest entry will be ignored and, as a result, a JavaScript -> Java call will show the native LiveConnect warning. The workaround is to remove the Trusted-Library manifest entry.
    Next, I generally test my applet by running a sample.html from my desktop.  With Java 7 u45, this fails with an InvocationTargetException.
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException ...
    Caused by: java.lang.NullPointerException
      at sun.plugin2.applet.Plugin2ClassLoader.loadAllowedCodebases(Unknown Source)
    Is this a KNOWN ISSUE too?  Hard to tell.. here's the snippet from the release notes...
    KNOWN ISSUE
    Area: Deployment/Plugin
    Synopsis: Applet could fail to load by throwing NPE if pack compression is used with deployment caching disabled.
    If a JAR file is using pack compression with manifest entries Permissions and Caller-Allowable-Codebase while deployment caching is disabled, then:
    The Permissions manifest entry will be ignored. (This can be seen from the fact that yellow warning is there on security dialog even though the Permissions attribute is there.) This only happens if Caller-Allowable-Codebase attribute is present along with the Permissionsattribute.
    The Caller-Allowable-Codebase attribute will cause the applet to fail to load by throwing ajava.lang.NullPointerException.
    I don't use deployment caching because it started causing problems with Java 7 u21.  Adding the cache_jar parameter back in doesn't fix this.  But the irony is this exception is only raised with the Trusted Godaddy Certificate and only when being launched from file:/// url.  The Self-Signed version actually works (although some dialogs appear, but no NPE).  This doesn't make any sense. Furthermore, when the trusted-signed version is launched from http:// it works fine.   Should I turn off compression (and why would anyone do this?)
    But what's worse than all of this listed above is when I finally choose the right combination of settings that permits the applet to load, it completely fails on older versions such as Java 7 u40 and Java 7 u21.  My applet is compiled using JDK 5 for backwards compatibility with Mac PPC Java 1.5 and Mac Intel Java 1.6 (the sun one has compatibility issues on Mac only), but now does every client need to update to Java 7 u45?  What about the scenarios where the upgrade isn't possible due to compatibility or availability?  I wish I could answer this.
    I'm struggling with this and so is my open source project.  Any expert insight advice is appreciated.  I'd happily compensate someone for assistance.
    -Tres Finocchiaro

  • Ternimating a process that is started from insite a java program

    Hi,
    I have a question:
    I am using Java 1.1 running on a HP-UX platform(HP-UX 11.0).
    I start a "unix shell script" from inside a java process. Everything starts and runs perfectly fine. If for some reason I MANUALLY kill the java program with a "kill" command, the unix process that was started by the java process is not getting killed. (effectively the signal is not getting passed on to the child process). Is there a way to fix this?
    Thanks in Advance.
    Srikanth
    [email protected]

    Here is what the java API docs say about the Process class:
    The Runtime.exec methods create a native process and return an instance of a subclass of Process
    that can be used to control the process and obtain information about it. The class Process
    provides methods for performing input from the process, performing output to the process,
    waiting for the process to complete, checking the exit status of the process, and destroying
    (killing) the process.
    The Runtime.exec methods may not work well for special processes on certain native platforms,
    such as native windowing processes, daemon processes, Win16/DOS processes on Win32, or
    shell scripts. The created subprocess does not have its own terminal or console. All its
    standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process
    through three streams (Process.getOutputStream(), Process.getInputStream(), Process.getErrorStream()). The
    parent process uses these streams to feed input to and get output from the subprocess.
    Because some native platforms only provide limited buffer size for standard input and output
    streams, failure to promptly write the input stream or read the output stream of the
    subprocess may cause the subprocess to block, and even deadlock.
    The subprocess is not killed when there are no more references to the Process object, but
    rather the subprocess continues executing asynchronously.
    There is no requirement that a process represented by a Process object execute
    asynchronously or concurrently with respect to the Java process that owns the Process object.
    [/b[
    So the docs state that this class may not work with shell scripts. Which means that it may be no way to deal with this.
    Good luck
    Calin

  • Swing applet does not work in IE using java plugin

    I am using applet-servlet communication in my Applet and also using java plugin 1.3 to open that applet in browser.It is working fine in Netscape 4.7 but not in IE 5.0.
    Problem is It could not get any data from the database.
    If you have any solutions it will be appriciated.
    thanks

    did you find your problem with the IE 6.0
    Java problem.Java(TM) Plug-in: Version 1.4.2_01
    Using JRE version 1.4.2_01 Java HotSpot(TM) Client VM
    I have something simular and was looking for a fix.
    .yavs: Yet Another Vertical Scroller, version 1.2
    (c) 1998 Steve Bassler http://www.westol.com/~bassmstr
    yavs: Yet Another Vertical Scroller, version 1.2
    (c) 1998 Steve Bassler http://www.westol.com/~bassmstr
    yavs: Yet Another Vertical Scroller, version 1.2
    (c) 1998 Steve Bassler http://www.westol.com/~bassmstr
    load: class xms.EntryApplet.class not found.
    java.lang.ClassNotFoundException: xms.EntryApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more

  • How to store the data read from excel using java code in Ms access database

    Hi. I wrote a code to read the data from excel. May i know how can i save it to Ms access database using java. Also i have many excels. So i should not connect the database using DSN. So is there any other way to achieve this?

    kramish wrote:
    Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
    just doing a quick Google came up with some pages:
    http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
    http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
    Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
    Kaj

Maybe you are looking for