Java desktop application run problem

Hi.
I have designed java desktop application which includes some libraries (XMLparserV2.jar, Ojdbc6.jar,xdb.jar, Orai18n-mapping,jar) with XML ini file.
Then I have done deploy to jar. After it I relocated jar file and XML ini files to separate directory and ran javaw -jar myjarfile.jar. I can't see anything.
Where I can see any errors ?
Thanks for reply in advance.
Andrii.

Try running java -jar myjarfile.jar from the command line and see if you get any errors showing up (probably missing classes in your path)

Similar Messages

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • Netbeans Java Desktop Application Problem

    Hi
    I have build a java desktop application via netbeans and it creates a jnlp file to execute this applets however in my project when i press a button on an applet it opens another applet and send some parameter via html file how can i do that in desktop application because it doesnt have html file it only has jnlp file ?
    Thanks

    I guess I didnt make myself clear enough,I dont want to use another applet's public methods I want to execute it
    Lets make a scenario
    assume that I have an applet a and applet b
    on applet a there is a button called open applet b and when somebody press this button applet b will be opened
    Before I was doing that like this
                URL page = new URL("http://www.xxx.edu.tr/~team5/nps/build/giris.html");
                getAppletContext().showDocument(page,"_self");but now I made the project netbeans desktop application so I dont have any html file I only have jnlp and jar files
    so what should I do to maintain opening an applet from another applet?
    Thanks

  • Questions on deploying Java desktop applications

    Hello,
    I have searched the forums and been unable to find the information I need. I am not sure this is the appropriate forum to post at but had to start somewhere!
    I have a Java desktop application which has only been used internally at my organization for R&D. We are now working with our legal folks on setting up various licensing options. The funding organization today said that they wanted the software set up such that deploying it externally would have behaviors such as:
    * preventing one CD being used to install on multiple machines,
    * preventing someone from copying the installed software from one machine to another,
    * have a way for the software to "expire" after a set amount of time.
    I have never had to deploy software externally before (nor does it seem has anyone else at my organization - we do science R&D) and am at a loss as to how to best do this. I have googled around a bit but not found any solutions. Has anyone here done this and could perhaps give me some pointers?
    Much Thanks,
    Keri

    kgoorley wrote: Hello,
    I have searched the forums and been unable to find the information I need. I am not sure this is the appropriate forum to post at but had to start somewhere!
    Given you new not only to deployment, but also
    posting to these forums, I will take the opportunity
    to point out that I let this post be for a couple of
    days since in had no Dukes assigned. To my
    eye, dukes indicate how important a question is
    to whoever asked it, and I do not generally have
    time to answer questions that are not important.
    You can add dukes to a thread at any time.
    kgoorley wrote: ..licensing options. ..
    * preventing one CD being used to install on multiple machines,
    * preventing someone from copying the installed software from one machine to another,
    * have a way for the software to "expire" after a set amount of time.
    Web start apps. are usually deployed directly off
    a server/internet site. Although deployment off CD
    is theoretically possible, it is uncommon.
    The basic answer to all your questions as asked is 'no'.
    However, if the legal people can take a slightly different
    line, and that server/site has some 'active' element to it
    (e.g. it is generated using servlets), there might be other
    options worth considering.
    The basic approach would be not to sell licenses
    per machine, but per 'use', in the sense that if
    I were to sell you a license, it would be for 'nn users',
    rather than 'nn machines'. This means that if you
    had a license for 'two' users (let's call them Bob
    and Harriet), both Bob and Harriet could use any
    PC in the organization to use the software,
    but once they were both logged in, no further
    users of the software would be allowed.
    The way to achieve this is to have the application
    'phone home' to the server and tell it the
    username(/password). Every 2-3 minutes,
    the app. should get back to the server and
    confirm it is 'still running..'. If the app. cannot
    reach the server, it reports a problem to the
    user, and exits.
    If the server does not get a 'still running' confirmation
    in a time longer than that few minutes, it assumes
    the app. is off-screen, and frees that 'licence slot'.
    The reason to keep letting the server know it is
    there, is that if Harriet were to be logged in, and
    Bob accidentally trips over the power cord and
    drops Harriet's computer in a screaming heap,
    her app. will never have the chance to 'log out'
    and inform the server to free the slot.
    As such, it is important to allow her to log-in again in
    'a few minutes' (which is probably about the amount
    of time it will take her machine to reboot, and chide
    Bob for his oafish carelessness).
    Using this system, the first & second requirements
    above become redundant - as it is not the number of
    PC's that we care about - just the number of users.
    The third requirement could easily be handled on
    the server-side, checking licenses as users
    log-in, and confirming that license is still valid.
    Edited by: AndrewThompson64 on Sep 27, 2007 7:30 AM

  • Calling a soap web service from a java desktop application

    Hi,
    Does anyone know how to call a soap web service from a java desktop application? I've seen examples using Apache Axis, but it sounds like Axis needs to run on a web server and we are trying to avoid that. My initial thought was that, "of course we need a web server", but I'm wondering if there is a way to do this without a web server.
    Any help is greatly appreciated.
    thank you,
    Julie

    If you are the consumer you don't need any web server. The web server is only needed in the provider end.
    In java 6 there is a built in framework to call web services without the need of third parties (such as apache axis)
    take a look at:
    https://jax-ws.dev.java.net/guide/Developing_client_application_with_locally_packaged_WSDL.html
    http://java.sun.com/webservices/technologies/index.jsp
    For the provider end there is also a built in http server to expose web service via HTTP without the need to
    use any external web server.
    take a look at:
    http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html

  • Error code:-2147467259 Error code name:failed Java desktop application

    Hi guys,
    I'm trying to run
    Java_JRC_Desktop_View_Report_and_set_database_logon downloaded from this link:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0d6f979-3e11-2c10-35a8-ac93994a30ed
    but at runtime my java desktop application throws this Exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: org/apache/log4j/Logger---- Error code:-2147467259 Error code name:failed
    From what depends?
    thx all.

    Hi,
         I am trying to run a java code to export .rtf file to .pdf format. Below is the code
    *String reportname = "D:\\multiLingual.rpt";;*
    *String exportfilename ="D:\\multiLingual.pdf";*
    *//Open report.*
    *ReportClientDocument reportClientDoc = new ReportClientDocument();*
    *reportClientDoc.open(reportname, 0);*
    *//NOTE: If parameters or database login credentials are required, they need to be set before.*
    *//calling the export() method of the PrintOutputController.*
    *//Export report and obtain an input stream that can be written to disk.*
    *//See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations*
    *//possible with the JRC.*
    *ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);*
    *//Release report.*
    *reportClientDoc.close();*
    *//Use the Java I/O libraries to write the exported content to the file system.*
    *byte byteArray[] = new byte[byteArrayInputStream.available()];*
    *//Create a new file that will contain the exported result.*
    *File file = new File(exportfilename);*
    *FileOutputStream fileOutputStream = new FileOutputStream(file);*
    *ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());*
    *int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());*
    *byteArrayOutputStream.write(byteArray, 0, x);*
    *byteArrayOutputStream.writeTo(fileOutputStream);*
    *//Close streams.*
    *byteArrayInputStream.close();*
    *byteArrayOutputStream.close();*
    *fileOutputStream.close();*
    I am running it through eclipse as a standalone with all the required jar files in the buildpath. However when i run it gives following error in console.
    *com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occured while exporting the report---- Error* *code:-2147467259 Error code name:failed*
    *     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)*
    *     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)*
    *     at com.crystaldecisions.reports.sdk.PrintOutputController.export(SourceFile:54)*
    *     at test.main(test.java:34)*
    Thanks in advance
    Abhijeet
    Edited by: Abhijeet D on Jul 7, 2010 5:10 PM
    Edited by: Abhijeet D on Jul 7, 2010 5:24 PM

  • How to validation of textbox in Core Java(Desktop Application)?

    I am developing billing software in Core Java (Desktop Application). I want to know how to do validation of null values of textbox. and validation of other components in Core Java
    (Same as we use javascript in JSP, what do we use in Core Java?)

    Stop that.
    If you post to forum, people answer to forum.....how else will other people gain any information?

  • Do you develop Java Desktop Applications based on netbeans RCP?

    do you develop Java Desktop Applications based on netbeans RCP?
    http://nextbridge.net/netbeans/ ,a definitive source for netbeans plugins information

    I don't. For the moment it seems too complicated. I follow the MVC pattern when the application is big and try to look at the code of successful projects.

  • Open source java desktop applications

    Hi all,
    Can someone direct me to a simple open sourced java desktop application (not from java tutorial).
    I had no luck finding one myself. It seems to me there isn't many out there. I found open workbench but thats too complex for a beginner like me.
    regards,
    Sebastian

    I had no luck finding one myself. It seems to me
    there isn't many out there. You mean like Eclipse? I took me 1 ms to think of that one. I'm sure there are many, MANY more... Did you try Google?

  • Database in java desktop applications

    0 vote down star
    I am making a desktop application in java and using MS Access asdata base. I want that if i run the setup of the application the database should be created on client machine because there can be different client using the application
    How to do it? please explain me in detail.. thanks

    Path means where ever you want and have rights to put it locally. If you're going to hard code a location into your project, then yes, that does mean the same as your development, otherwise, you'll need to save some configuration string for db location.

  • SSO between a Java EE application (Running on CE) and r/3 backend

    Hi All,
    Over the past few days I have been trying to implement a SSO mechanism between NW CE Java Apps and R/3 backend without any success. I have been trying to use SAP logon tickets for implementing SSO.
    Below is what I need:
    I have a Java EE application which draws data from R/3 backend and does some processing before showing data to the users. As of now the only way the Java App on CE authenticates to r/3 backend is by passing the userid and pwds explicitly. See sample authentication code below:
    BindingProvider bp = (BindingProvider) myService;
    Map<String,Object> context = bp.getRequestContext();
    context.put(BindingProvider.USERNAME_PROPERTY, userID);
    context.put(BindingProvider.PASSWORD_PROPERTY, userPwd);
    Now this is not the way we want to implement it. What we need is when the user authenticates to CE ( using CE's UME) CE issues a SAP logon ticket to the user. This ticket should be used to subsequently login to other system without having to pass the credentials. We have configured the CE and Backend to use SAP logon tickets as per SAP help.
    What I am not able to figure out is: How to authenticate to SAP r/3 service from the java APP using SAP logon tickets. I couldnt find any sample Java  code on SAP help to do this. (For example the above sample code authenticates the user by explicitly passing userid and pwd, I need something similar to pass a token to the backend)
    Any help/pointers on this would be great.
    Thanks,
    Dhananjay

    Hi,
    Have you imported the java certificate into R/3 backend system ? if so.
    Then just go to backend system and check on sm50 for each applicaion instance of any error eg.
    SM50-> Display files (ICON) as DB symbol with spect.(cntrlshiftF8)
    You will get logon ticket details.
    with thanks,
        Rajat

  • Java Desktop Application (ADF) RTL problem

    in order to make a "Fusion Web Application" work as Right To Left, all we need to do is to :
    Add this line :
    <right-to-left>true</right-to-left>
    to the file :
    trinidad-config.xml
    How to make a "Desktop Adf Swing Application" Right To Left ?!
    Thank you
    Shahab

    so, is it possible to make a "Desktop Adf Swing Application" Right To Left at all?!

  • ESS: Application Running Problem

    Hi,
    I copied the component from ess/us/pdata of ESS for ess/sa/pdata (SA).
    I changed all the dependencies, and manually replaced "us" to "sa" in the copied component.
    Created the model, according to the requirement (with the new BAPIs).
    I deleted all the Context Mapping and Model Binding, and created it again.
    In all the components in the impementation I replaced "us" to "sa", accordingly.
    We have already assigned the user to sa.
    When we are trying to run the application by right clicking and pressing "Run".
    It is running the ess/us/pdata application.
    Thanks,
    SS

    Hi,
    this is the problem with the configuratio for FPM, you need to check the application properties in webdynpro, that is your application is linked to the FPM application availabel in the portal, under SrcConfigure folder in the pcd, by default that application calls the us/pdata right,
    you have to create the Fpm application for your application and provide the FPM application PCD ID to you werbdynpro Base configuration Id as part of webdynrpo Application properties, adn create the FPM views if you need, i think there is no need of creating the FPM views,
    I think this will work,
    Cheers,
    Apparao

  • Opening an applet from a java desktop application

    I have an applet and I've seen some fairly complicated methods (for me) of making the main class hybrid and open as both an applet and an application. Isn't there a simple way o having a class with a main method to open the applet class in an applet viewer or maybe the browser? Then I could compile it and run the same jar file as both an application and an applet. What is the simplest way you can think of to do this?

    The simplest was is to put all that GUI stuff into a JPanel, and not a JFrame or JApplet. That way, you can embed it in anything you like.

  • JDeveloper 10.1.3. - Web application run problem

    I have created new Application workspace and new application with only one empty JSF page. JDeveloper created all related configuration files, but when I start the application, I get this error:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config>
    D:\software\jdev\jdk\bin\javaw.exe -ojvm -classpath D:\software\jdev\j2ee\home\oc4j.jar;D:\software\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=proxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=*.cz.gcf.capital.ge.com|localhost|127.0.0.1 -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Could not canonicalize '"C:\Program Files\PKWARE\PKZIPC\"' (Název souboru, adresáře nebo jmenovka svazku je nesprávná.
    ). From system property java.library.path.
    05/02/23 11:51:40 Node started with id=127765687050882
    05/02/23 11:51:40 Auto-unpacking D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\applications\dms0.war... done.
    05/02/23 11:51:41 Auto-unpacking D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\applications\admin_web.war... done.
    05/02/23 11:51:41 Auto-unpacking D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\connectors\OracleASjms\OracleASjms.rar... done.
    05/02/23 11:51:41 Auto-unpacking D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\connectors\datasources\datasources.rar... done.
    23.2.2005 11:51:41 com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    05/02/23 11:51:43 Copying default deployment descriptor from archive at D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\connectors\datasources\datasources/META-INF/oc4j-ra.xml to deployment directory D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\application-deployments\default\datasources...
    05/02/23 11:51:43 Copying default deployment descriptor from archive at D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\connectors\OracleASjms\OracleASjms/META-INF/oc4j-ra.xml to deployment directory D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\application-deployments\default\OracleASjms...
    05/02/23 11:51:44 Copying default deployment descriptor from archive at D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\applications\admin_ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\application-deployments\default\admin_ejb.jar...
    05/02/23 11:51:45 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/02/23 11:51:45 Auto-deploying - compiling and loading...
    Invalid or corrupt jarfile D:\software\jdev\jdev\lib\ojc.jar
    05/02/23 11:51:46
    Error compiling D:\software\jdev\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\applications\admin_ejb.jar: Syntax error in source or compilation failed
    05/02/23 11:51:46 Error in application default: Error loading package at file:/D:/software/jdev/jdev/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_ejb.jar, Compile error: Syntax error in source or compilation failed
    05/02/23 11:51:46 done.
    05/02/23 11:51:46 Error initializing server: Error initializing ejb-module; Exception Compile error: Syntax error in source or compilation failed
    05/02/23 11:51:47 Fatal error: server exiting
    I tried to download and unzip the version with JDK and without JDK, but the result is the same...
    Thanks for any help.

    Please refer to a prvious post:
    http://forums.oracle.com/forums/thread.jsp?forum=214&thread=278349&message=866560

Maybe you are looking for

  • Problem with AJAX in IE (new) with a good explication

    Hi, I´m having a problem with the appendToSelect, only working on IE, that´s why delete the else from the function: function appendToSelect(pSelect, pValue, pContent) { var l_Opt = document.createElement("option"); l_Opt.value = pValue;      if(docum

  • HT4796 Migration Assistant on my Windows XP PC!

    New Macbook Pro, needing to migrate all my files from my old Windows XP PC laptop. Migration Assistant on my PC has finally loaded after copious updates, but won't run as the PC believes that Outlook Express is still running, when it's not! Restartin

  • How to handle the global exception at servlet filter?

    I cannot redirect the page or add the error message to faces context after the rollback. How do I can show the error to the client? public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletE

  • IBooks not downloading my books?

    So im on the iBooks store looking through free books and then I find like 10 that I like. (on my mac air btw) So I download them. Normally when i'm downloading books it takes like a few minutes, but now i'm downloading books and its taking like 2 day

  • Help Saving and recalling a TDS Waveform from a file.

    I have tried everything I can find in the examples with no luck. I have a Waveform that I have acquired on my TDS 360. I have it ouput to a graph on the VI front panel. That works great. The Graphed waveform is exactly what I need. Now all I want to