Stand-Alone Jar file

I have seen it where people have made jar files that can be executed directly (at least on windows) with out the need of an applet. I tried searching for how to do this but I seem to not know what to really call it since I couldn't find anything on it. Can some one please point me in the right direction of a tutorial or something?

kendall14 wrote:
By application style I meant like desktop programs vs applets. I think that is what I was looking for, Thank you.Then yes, you're talking about Swing stand-alone apps. I suggest you read up on creating these. The Sun forums are a good place to start.

Similar Messages

  • Dependency list in project shows 2 DLL files. What do I need to do when creating a stand-alone executable file to ensure that it is included?

    When the executable that I created is run on a stand-alone machine, a search is instantly launched to locate the missing *.DLL files along with about 20 other sub vi files from an example vi file that I downloaded last week.  Once the exampe vi was open, I modified the block diagram and the front panel and then I resaved it with a new name. 
    The missing sub-vi files are the same files that I saw listed in the Dependencies list of the project along with the 2 DLL files.  This problem shouldn't be happening because I included the top level vi file that contains the sub-vi files into the source files list under the Start-Up VIs window of the application properties.  What needs to be done to make this stand-alone executabale complete?
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com

    OK...So it's not a simple as clicking the mountian icon  above and inserting the location of the picture file on my PC huh?  It works on my end just fine, but I understand you all don't see it. 
    I really don't understand why this is such a complicated process in this discussion forum, but your explanation isn't working for me.  SO, I'm going to write what I understand to be the proper procedure and you tell me if it's wrong.
    Attach my image using the Browse button below.  That makes sense.  Done that.
    Edit my post - Edit it?  How is typing this message in the window any different from editing my post???  Are you sugesting that I Edit As HTML(http://forums.ni.com/ni/board/post?board.id=170&message.reply_to_id=244152#) using the shortcut in the lower right hand side of the frame???  I not, please explain a different way.
    I right clicked the adress in the window under the Attachment  heading below the lower left hand side of the frame, copied it and pasted it into the Script Prompt: dialog pop-up that appeared when I clicked on the mountain icon in the tools menu.  By the way,
    Now I see my image in the post just before I sent it.
    Don't you see it now?
    As for the DLL file - the ONLY way I can find the DLL file that I need is to refresh the dependencies list in my project.  As I explained in my previous posts, those two DLL files came with an example vi that i downloaded from the NI website last week and they must have been embedded inside of the example because I didn't create them myself and I've since resaed the original example vi as one that's been renamed by myself.  In doing so, I presume that the DLL file was inherited from the original example vi file to my own vi file.  However, that's clearly not the case because every time I run the executable file that I created with the renamed example vi file in my project, it immediately launches a searchfor the DLL files that it claims are missing!!!  SInce the DLL files are ONLY visible in the dependencies list, I can't transfer them to the Dynamic VI and Support files window in the Application Builder.  SO, I drag them up the Source Files tree in the Application Builder to the top of the tree where the Start-up vi is located and then I can move them to the Dynamic VI and Support Files window.  Those DLL files don't appaer inthe top level of the tree where the Start-up vi appears before I move it to the Start-up vi window of the Application Builder.  I'll try it again.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com
    Attachments:
    FTM1-BlkDgrm.jpg ‏780 KB

  • How to use stand alone restore file, iPod4,1_5.0_9A334_Restore.  No *.ipsw file in folders.

    One of our Ipod Touch 4g presented with an "unable to sync" error a few days ago.  I worked around it by deleting the songs, adding them to a playlist in the library, then re-syncing.  That worked for a few days.  Then even that wouldn't work.  It wanted to update to ios5 so I began that process.  After erasing everything, the update failed (multiple times, several different errors, usually 1602 and 1604).  I've tried multiple cables, two different computers, creating a new user profile, new clear itunes library, all USB ports).  I've downloaded the update software inside of itunes at least three times.  I've downloaded it outside of itunes which is the folder "iPod4,1_5.0_9A334_Restore" however it doesn't seem to have the required file that ends with *.ipsw.  The particular ipod in question was jailbroken at one time, however it had been reverted to Apple with the last OS on it was of the 4 variety (4.3.2 maybe).  Also note that I have two other ipod touch, one of which is updated to ios 5.0.1, and they work with both of my computers, regardless of which USB port I use, or cable, so I'm confident its not a problem with my computer hardware.  I've also tried the update with the touch in DFU mode and still no success.  Anyone have any suggestions?  Thanks!

    Basically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
    See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • .jar files not launching, and Jar Launcher not appearing when I search it

    Okay, so here's the issue:
    A couple weeks ago, I decided to download a stand-alone jar file for my personal use. The jar file, dependent on nothing, ran in Jar Laucher by default and worked fine. Earlier this week, however, I decided my Mac was cluttered and so I went through it and cleared out everything I wasn't ever going to use again. I also have an app called "The Unarchiver" from the Mac App store (I've had this for about two months). Since the uncluttering, three bad things have happened. 1) Any .jar files open in The Unarchiver instead of Jar launcher
    2) When I search around my Mac for Jar Launcher, nothing appears.
    3) The .jar file icons changed to this:
    Also, I tried uninstalling The Unarchiver, and it still didn't work. Either Jar Launcher is gone, or it went dormant. What should I do, and if needed, where can I reinstall Jar Launcher?!?
    (Mac Late 2009 Model 10.7.3)

    I figured out how to fix this issue. All you have to do is just install a new version of Java from the Apple website. When it's done, all of your jar files will now open in Jar Launcher by default.
    http://support.apple.com/kb/DL1515
    You don't need to uninstall The Unarchiver.

  • Stand alone labview application (.exe file) does not run properly

    Hi all,
    I am trying to make a stand alone labview application to run on another computer ( I have never done this before).
    I went through the tools->build application prompts and was able to build an exe file.
    the program is supposed to control a power meter and make power measurements then save them to a text file.
    When I run the exe file, on the same computer I compiled the exe file on, the program generates a text file to save data to but it can not communicate with the power meter.
    There are some sub-VIs and a dll file that are used to communicate with the power meter. Could it be that I am not telling labview to correctly
    include these files when I create an executable?
    What are some common problems that occur when generating stand alone applications that could be causing my issues?
    And does anyone know of any good tutorials on generating stand alone applications in labview other than the NI help files?
    Thanks for your help,
    Solved!
    Go to Solution.

    edCubed wrote:
    Hi Bill, thanks for your suggestions.
    I haven't tried to run this app on another computer yet. I'm just trying to run it on the computer it was developed on.
    The computer I developed it on has all the drivers/resources I need to control the power meter.
    Also, I don't know how to include the VISA runtime with my installer. could you explain how this is done?
    This is the first time IV tried to turn any labview programs into stand alone exe files so I don't anything about how to do it other than what I've seen in youtube videos and help files.
    If you know of any good tutorials that will help me figure this out I would appreciate it.
    Thanks,
    My fault - I didn't read that this was the same computer.  I know the very end of Core 3 studies shows how to build an executable and installer, but even that is very general.  I'm not sure if there exists a tutorial on how to do it.
    As for including the runtimes, when you build an installer, you have to include the runtimes that your executable will need.  It's fairly straightforward.
    Since it won't run on the machine that built it, I'll have to think about it a little bit...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How can I publish a stand-alone file with Captivate 8?

    I have just downloaded the new Captivate 8, but I an not sure how to publish a stand-alone, interactive file now.  In previous versions, one could publish an .exe file that didn't require a browser to work.  In the new version, there appears to be two options: HTML 5/SWF or video. The video option publishes a .mp4.  Is there still a way to publish a .exe?
    Thank you!

    Frankly I am a little tired of Adobe stonewalling on the issue of removing exe and dmg publication facility from Adobe Captivate 8.  What a load of flimsy excuses from Adobe!!!!  In Cap 7 I exported to exe and dog all the time and I truly miss this facility.  Why does Adobe remove a perfectly good facility when upgrading? 
    It all makes me believe that Captivate 8 was rushed out without much thought other than to get a 'not working correctly' responsive design bit built in.  Did they not think about customer research?
    And so, I've just paid over £300 to upgrade to a version of Captivate (8) I won't be using much.  This disgusts me and I am sure I am not alone. 
    And yes, why is Captivate not part of Creative Cloud?  I ask this question and I have asked it before.  Adobe will NEVER answer this question.
    Adobe.  Please try and LISTEN to what your customers are saying.
    Richard Broom

  • Is it possible to place forward/back nav buttons in a timeline based gallery. Stand alone SWF needed.

    I'm currently working on a gallery to be output as a stand-alone SWF file, and am doing it all on the timeline as I can't write actionscript for toffee
    So far, I have the gallery created with alpha tweens fading between embedded images. These images are buttons, to which I have added URL links (my only foray into actionscript), which will send the user to a specific link related to the image being shown at the time. At the moment this is just a linear timeline that flows from start to finish and loops to the start again - as per most other simple timeline based animations.
    I have now been asked if I can add two nav buttons (one each side of the frame) to allow the user to flip back and forth through the images. Is this possible on a timeline? And if so, how would it best be implimented? I just don't know if a button action can affect the flow of a timeline.
    Ideally the gallery will auto flow, until either of the forward/back nav buttons are clicked.
    Any help here would be really really appreciated.
    Paul

    Thanks for that Ned. I've had a quick look, and will research deeper later. Though being a complete and utter novice at actionscript, I am flummoxed by probably the simplest of stuff by your standards. For example, the scripts I saw briefly, using the searches you suggested appeared to not export a stand alone SWF file - with no XML files or image folders (I'm still to work out if is possible to do that for this particular use). Also, on all of the examples I saw, the buttons are embedded at the bottom of the pane, and I really need to put the buttons as plainly obvious clickable blobs on either side of the image area. This, again, I can easily do on a timeline (apart from actually making them work of course) but to do this with someone else's AS code, will need more time than I have to learn the relevent stuff.
    Does it sound like I may have to just settle for a linear, non-interactive rotating gallery? - based on my knowledge limitations, as well as needing a stand alone SWF.
    Paul.

  • Stand alone application(.exe) : Error 7 occurred at Open File+.vi: Open File (error: L'erreur 7 s'est produite à : Open File+.vi:Open File)

    Dear group members - as i am trying to build a stand alone application , i ran into this problem : "Error 7 occurred at Open File+.vi: Open File" (L'erreur 7 s'est produite à : Open File+.vipen File)
    when i select continue i get this error message: "Error 7 occurred at open/create/replace file in Write spreadsheet string.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi""   (  "L'erreur 7 s'est produite à : Ouvrir/Créer/Remplacer un fichier dans Write Spreadsheet String.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi" )
    i didn't get what's the problem with this vi, i have no problem running my VIs  
    Can any one here help me out ? 
    here is the project : 
     

    Neither can I.  When I opened your Project, there were no VIs present on the top level.  The Build Spec refers to a Mainv12, which I finally found buried in the folder Interface 2, but when I tried to open it, there were multiple missing VIs.  I notice you have an Interface 2.llb -- is this the same as the VIs in the Interface 2 folder?  If so, try getting rid of the .llb (at least for the purpose of sharing your code in the Forum) and re-post your code.  As it stands, when I open your Project, virtually every entry is marked "Warning: has been deleted, etc."  The fact that so much is "missing" means that I can't easily see/understand MainV12, hence can't guess where the File Not Found error is arising.  Sorry.
    Bob Schor

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

  • Lightroom 5.7 will not convert .nef to dng from my Nikon d750. Stand alone dng converter will not recognize or convert the files.

    Lightroom 5.7 will not convert .nef to dng from my Nikon d750. Stand alone dng converter will not recognize or convert the files. Any know whats wrong?

    I don't understand why you feel you need to use ViewNX to download your images from the camera. Lightroom has an excellent import process. I don't see that you gain anything by using the Nikon software. It seems to me that it has the capability of just creating more problems.
    If you want to convert your D750 files to DNG using the standalone DNG converter thing you need to have DNG converter 8.7 installed. Once you have it installed, just choose the FOLDER in the DNG converter, but don't open it in the DNG converter file browser. If you open that folder then you will get the message that there are no files to convert. The converter works on the folder level, not the individual file level.

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Replacing JAR files loaded by custom ClassLoader

    Hi all,
    I am trying to create an auto-updater for a stand alone application, which can look for new versions of relevant jar files on the internet and download them. I have code which will look for newly downloaded versions and can replace the old jar file with the new one (using simple File methods). This works fine for when the application is started initially, but as the application is a server and may not manually be started for a long time, I am trying to force the server to restart and reload with the new code.
    if(newCode.exists()) {
         System.out.println("new code!");
         if(oldCode.exists()) {
              oldCode.delete();
         if(code.exists()) {
              if(! code.renameTo(oldCode)) {
                        throw new IOException("Error backing up code file");
         if(! newCode.renameTo(code)) {
              throw new IOException("Error installing new code file");
    }I have looked around the forums a bit, and have come up with using a ClassLoader based on URLClassLoader:
    class ProxyLoader extends URLClassLoader
         public ProxyLoader(String jarFile) throws MalformedURLException {
              super(new URL[] { (new File(jarFile)).toURL() });
         public Class findClass(String name) throws ClassNotFoundException {
              System.out.println("Finding: " + name);
              return super.findClass(name);
    }This seems to work OK, as all the classes from the jar file are loaded by this classloader.
    I have a method which can create an instance of the class loader, and load the server application.
    private boolean startProxy(int port) {
         try {
              pl = new ProxyLoader("proxy.jar");
              Class ptClass = pl.loadClass("proxy.POPThread");
              pt = ptClass.newInstance();
              Method ptStart = ptClass.getMethod("start", new Class[0]);
              ptStart.invoke(pt, new Object[0]);
              return true;
         } catch(Exception e) {
              return false;
    }I also have a method to shut down the server:
    private boolean stopProxy() {
         try {
              Class ptClass = pl.loadClass("proxy.POPThread");
              Method ptInterrupt = ptClass.getMethod("interrupt", new Class[0]);
              ptInterrupt.invoke(pt, new Object[0]);
              return true;
         } catch(Exception e) {
              return false;
    }These appear to be working fine, the problem I have however is when I try to rename the existing jar file (proxy.jar) in order to replace it with a new one (proxy.new), the renameTo method on the File object fails. I am guessing that is because the proxy.jar file is still in use by the JVM. I have tried setting the classloader var to null, but this doesnt seem to have any effect.
    My main question is how can I 'free' the jar file so that it can be replaced with new code? Is it possible? My only otherway of working around this is to have a variable stored in a file pointing at the 'current' code, but the jar file isn't litterally replaced.
    This is a standalone application, which will probably run in a startup script on a server, so webstart isn't really an option.
    TIA
    iklesteve

    I have found this to be true anytime I try to use the renameTo() API to rename a file with a .jar file extension (regardless of the actual file type - i.e. it could be a text file with .jar appended and it will still fail) in the case where the class making the renameTo() call is loaded from another .jar file.
    I run the same exact code after extracting from the .jar, then the rename to the other .jar file is successful. Also, if I rename the .jar file to a ".ja" file, I can successfully rename the jar file even if the code is running with the context of another .jar file.
    Is this some kind of bogus security measure within the JVM or is it a bug?

  • JRE 1.3.1 Bug May Screw Up Your Executable JAR File

    Hi;
    I just submitted this bug report to sun.
    It could save you a lot of pain.
    If you have both the JDK and a seperatley obtained Sun JRE on your computer you could build a deprecated code and not know it until you distribute your app to your user or remove jdk\bin from
    your class path.
    ======================================================================
    Bug Report: JDK 1.3.1 doesn't match JRE 1.3.1
    ======================================================================
    Hi;
    I discovered that the jre ( java.exe, javaw.exe ) that comes with the
    jdk 1.3.1 supports a deprecated option that the stand alone jre 1.3.1
    does not. Not all jre 1.3.1's of the same build are the same.
    In the jre that comes with jdk 1.3.1 you can execute code that uses
    "Cp850" for character encoding. In the stand alone jre 1.3.1 you
    cannot and get an exception thrown.
    This is a particularly insidious bug as many java programmers have
    both the jre that comes with the jdk and a stand alone version on
    their computers( for example, getting the java plugin for your browser).
    You can easily compile, run, and distribute java code that you think will
    work with the jre 1.3.1 only distribution....but will not.
    I figured this out ( after much pain ) after taking the c:\jdk\bin out
    of my path. The same code which execute with the jdk's jre, failed
    with the same version sun jre that I got as a separate distribution.
    Here is the chunk of code where I discovered this. I have put the
    block of code between "=======" lines. The code is further followed
    by more explanatory details:
    ================================================================
    public static void main(String argv[])
    String result = " ";
    // Read The Input File Into A String
    try
    FileInputStream file = new FileInputStream ("in.txt");
    DataInputStream in = new DataInputStream (file);
    byte[] b = new byte[ in.available() ];
    in.readFully (b);
    in.close ();
    //result = new String (b, 0, b.length, "US-ASCII");
    result = new String (b, 0, b.length, "Cp850");
    System.out.println(result);
    catch ( Exception e )
    e.printStackTrace();
    =================================================================
    I ran the command "java -version" on both jre 1.3.1 s just to make
    sure that each jre 1.3.1 was the same. The output of "java -version
    was identical:
    From:
    C:\Program Files\JavaSoft\JRE\1.3.1\bin\java.exe ( & javaw.exe )
    =========================================================
    java version "1.3.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
    Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
    From:
    C:\JDK\bin\java.exe ( & javaw.exe )
    =========================================================
    java version "1.3.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
    Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
    My apologies if this "bug" is really an illusion of my ignorance.

    Try making sure you have a 'i18n.jar' file in either the JDK or JRE's 'lib' directory (depending upon which one you're using).

  • Consuming dataservice as a stand alone java client, givng an exception com

    when i am trying to access data service from a stand alone java application ,it giving an exception .
    The dataservice is in remote machine.
    Exception:
    com.bea.dsp.dsmediator.client.exception.SDOMediatorException: weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invokeFunction(XmlDataServiceBase.java:322)
         at empldetappdataservices.EmployeeDetails.getEmployeesByid(EmployeeDetails.java:84)
         at com.patni.tsg.poc.DataServiceClient.DataServiceClient.main(DataServiceClient.java:42)
    Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248)
         at com.bea.ld.Server_ydm4ie_EOImpl_815_WLStub.executeFunction(Unknown Source)
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invokeFunction(XmlDataServiceBase.java:312)
         ... 2 more
    Caused by: java.io.EOFException
         at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:897)
         at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:586)
         at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:536)
         at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:694)
         at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:641)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    my class path i added all neccessary jars:
    weblogic.jar,xbean.jar,DataServices.jar,ld-server-core.jar,ld-client.jar,wlsdo.jar
    code sample:
    public static InitialContext getInitialContext() throws NamingException {
    Environment env = new Environment();
    env.setProviderUrl("t3://pc-p40892:7001");
    env.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    env.setSecurityPrincipal("weblogic");
    env.setSecurityCredentials("weblogic");
    return new InitialContext(env.getInitialContext().getEnvironment());
    public static void main (String args[]) {
    try {
    EmployeeDetailsDocument.EmployeeDetails edet=null;
    EmployeeDetails ds=EmployeeDetails.getInstance(getInitialContext(),"EmplDetApp");
    //The below statement generating the exception.
    EmployeeDetailsDocument[]doc =ds.getEmployeesByid("1001");
    } catch (Exception e) {
    e.printStackTrace();
    pls help me to solve this problem
    Edited by sandeepc221 at 09/19/2007 2:50 AM

    You didn't post the stack trace from the server, but I'm guessing it's complaining about the QName class. Sun changed the QName class in JDK 1.5 wreaking havoc on JDK 1.5 clients that use JDK 1.4 servers and attempt to pass a QName object from one to the other. If your client uses JDK 1.5, your sever will need to use a QName class which is compatible. The file liquiddata/lib/wls90interop.jar contains a QName class that is compatible with the one in JDK1.5. You can put it first in the classpath of your server.
    If you already have wls90interop.jar first in the classpath of your server, then, for your client, you need to either (1) use the Sun JDK 1.5; or (2) put wls90interop.jar first in the classpath of your client (if you are running JDK 1.4).
    http://e-docs.bea.com/aldsp/docs25/appdev/ejbclt.html#wp1090900
    btw - BEA Customer Support is available 24/7 - they should be able to provide you quick answers to questions like this.

  • Importing classes/jar files

    Hi
    im writing a simple mail program but i need to import classes or jar files
    import com.oreilly.servlet.MailMessage;
    is the line i have but i cant find the jar file/class
    when i search for it i only get the description
    where can i find tha actual jar file or package ???

    you must to have the jar file from you want import classes if you don't have this jar you can't do this.
    if you've the jar, you must indicate to your IDE environment where can find this jar file I don't know meybe in the common menu options > Project settings...
    or if you're working with webserver (or stand alone)as Tomcat you need copy jar into /lib folder.

Maybe you are looking for

  • IPod mini seen on desktop, not in iTunes

    The iPod is fully charged, I have reset it about 4 times, I've restarted my computer, and I've done everything else detailed here: https://discussions.apple.com/thread/695939?start=0&tstart=0 (though one of the messages is for a Windows computer) I a

  • Apple drop down menu not appearing.....

    Recently had to do a complete restore from my back up to my mac mini. Seems to have sorted out most of the problems I was having (but not all). However the Apple Symbol drop down Menu in the Menu bar turns blue when clicked on, but no sub menu appear

  • BPC 10.0 and 10.1 NW performance Note

    Hello Friends, Can any one please provide the SAP Notes which are release regarding the BPC performance issue. Regards, Mahendra Dev.

  • Is it possible add or remove contact from a Shared list via API?

    Hi Eloquan, i'm preatty new in Eloqua and i'm wondering if is possible add/remove contact from a Shared list via API... any help will be welcomed. M.

  • Anyone know good transcribing software?

    This probably isn't the place to post this, but I really didn't see a good category on the discussion board, so if there's a better place, just direct me. I lot of my job involves transcribing interview off my digital tape recorder. I know there are