JSQL and JAR

Hi,
UGH! For some reason, using and making JAR's should be straightforward and simple... but they're not!
Anyway, here's my earth-shattering problem...
I have a program which essentially creates a connection to a local DB2 database and does certain queries and what not.
Now, when I compile the source files, and run them using "java invrec.server.FileServer", everything works more-or-less fine.
But, if I were to place everything into a jar file using:
jar -cvmf manifest fileserver.jar invrec\server\*.class utilities\*.class
manifest file contains one line:
Main-Class: FileServer
And then, when I try to run the jar file using "java -jar fileserver.jar", I can't connect to the database at all!
I get the following error message:
java.lang.ClassNotFoundException: COM.ibm.db2.jdbcapp.DB2Driver
and
(probably due to the above error)
Message: no suitable driver, SQLState: 08001, ErrorCode: 0
Just a brief overview of the filesystem:
root -> invrec -> server (contains all the *.java, *.class files - all of which are of package invrec.server)
-> utiltites (contains other *.java, *.class files - all of which are of package utilities)
I compile from root using:
javac invrec\server\*.java utilities\*.java
I hope I covered everything... Any help would be appreciated! Thanks!

For an executable jar file, its manifest needs to specify the classpath of anything else it needs -- such as your JDBC driver. Look at this tutorial:
http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html
and go to the section headed "Download Extensions".

Similar Messages

  • Error while converting jad and jar to alx and cod files

    hi all,
    i am getting an error while converting jad and jar files into cod and alx files for balckberry.. here is the error i am getting.. can anyone help me this regard...
    Parsing classfile: txtCanvas.class
    I/O Error: Import file not found: d:\Research In Motion\BlackBerry JDE4.6.0\lib\
    net_rim_api.jar
    thanks in advacne
    pallavi

    thank you very much for your responses. can i send my cod and alx files to check. if you are interested only.
    here is the command which i used to convert my jad and jar files
    D:\Research In Motion\BlackBerry JDE 4.6.0\bin>rapc import="d:\Research In Motio
    n\BlackBerry JDE 4.6.0\lib\net_rim_api.jar" codename=MoBilalMIDlet -midlet jad=M
    oBilalEnglish.jad MoBilalEnglish.jar

  • How to install and run my .jad and .jar on my Nokia6230?

    I'am newbie with J2ME.
    I transfer the .jad and .jar files of my first HelloWorld middlet to the phone.
    What is the next step?
    Is needed some JVM or similar in the phone?
    (When I try to open those files a 'file format not recognized' appears)
    thakns!

    Adarsh
       Before you start, it would be best to check for systems prerequisites (especially the backend Business Suite that you want to run against). Then you need to decide whether you want to run NWBC Desktop (i.e. Windows based) vs HTML (i.e. Browser based). The OSS Note # 900000 (NWBC FAQ) below should help to set you in the right direction.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…
       License wise, NWBC licensing is the same as SAPGUI ... It's free as long as you have the standard SAP maintenance license.
    HTH

  • Are JDev autogenerated paths needed to create ear, war and jar files ?

    Hi
    We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7.
    We also like to use ojdeploy with it.
    In the process of creating build.xml files from projects, we see these paths.
    We also have standalone Weblogic installed with ADF runtime 11.1.1.7
    Questions:
    1- Do we need these path ids to generate ear, jar, war files properly and then deploy the ear to our standalone Weblogic so that our webapp can run ok ?
    2- Why are they generated, if they are not needed
    From research, it appears that we don't need these paths except to keep ant targets of init, compile, exec etc with ojdeploy.
    3- Is that true ?
    We are afraid that because no paths are listed in the build.xml, then when we deploy the ear app, it cant use the ADF runtime on the standalone WLS.
    Thanks in advance for answering.
    Sincerely
    eg of paths generated below:
      <path id="library.SOA.Designtime"/>
      <path id="library.SOA.Runtime"/>
      <path id="library.BPEL.Runtime"/>
      <path id="library.Mediator.Runtime"/>
      <path id="library.MDS.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
      </path>
      <path id="library.BC4J.Service.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
      </path>
      <path id="library.TopLink">
        <pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
        <pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
      </path>
      <path id="library.Oracle.Rules"/>
      <path id="classpath">
        <path refid="library.SOA.Designtime"/>
        <path refid="library.SOA.Runtime"/>
        <path refid="library.BPEL.Runtime"/>
        <path refid="library.Mediator.Runtime"/>
        <path refid="library.MDS.Runtime"/>
        <path refid="library.BC4J.Service.Runtime"/>
        <path refid="library.TopLink"/>
        <path refid="library.Oracle.Rules"/>
      </path>

    There are two different things here. Using ant to build the class files and then building an ear from the class files and other resources.
    The building part needs the libraries if you use javac as compiler. Building an ear file only needs the path to the jar files which are packed into the ear.
    In this sense you need the pages you see in the build.xml.
    Then Jdev offers another way: ojdeploy. This tool is a Jdev without a gui.
    You can use this tool and build the classes for each project of a workspace and to build build war and ear file. This is just like you click the rebuild button for each project and then the deploy the projects and application. If you use this approach you don't need the generated path ids as the whole build process is done inside Jdev as it's done on your developer pc.
    Timo

  • Moving a functional jsp and jar file to new directory breaks import?

    Simply put - how can I "move" or "copy" a functional JSP directory from the root of my site to a subdirectory
    of the same site and have it continue to work?
    here are the details:
    I have a site where the functional JSP content resides like so ...
    c:\site\itworkshere\thetestfile.jsp
    c:\site\itworkshere\WEB-INF\web.xml
    c:\site\itworkshere\lib\thejarfile.jar
    c:\site\itworkshere\classes\props.properties
    but when I copy the"itworkshere" directory to c:\site\newdirectory\itworkshere
    and try to load thetestfile.jsp page in my browser, I get ...
    thetestfile$jsp.java:6: Package com.corporatename.module.io not found in import.
    I know that the module.io classes are in thejarfile.jar, but for some reason, now that I've put the files
    in a new directory, the import is failing (simple import directive in thetestfile.jsp) And - yes - the .jar
    file is there in the new subdirectory.
    I am a newbie with jsp and just need to copy the files to new location and have them continue to work.
    Do I have to recompile the .jar with some sort of adjustments? I poked around and I don't see any assumptions about the directory structure in the build. The behavior leads me to believe that the build is assuming something
    about its location in the directory tree.
    Hope this question is clear and I appreciate any direction you can provide to steer me where to look/modify
    the necessary changes so I can move the .jsp's and .jar and not break them.

    Thanks for the suggestions and insights. I have made some progress.
    a context path of "/newdirectory/itworkshere" and a docBase of "./newdirectory/itworkshere" has resolved
    the .jsp include problem.
    However this seems a bit counter-intuitive to me considering that the default root context which is "" stands
    at the appBase which in my case is C:\Site. Since the default does not explicitly refer to the "itworkshere" directory,
    I'd expect that the newly added Context element would not have to either ---- BUT --- it does require that I include "itworkshere" in the context path and docBase (where I would expect ./newdirectory would have been sufficient since the default works that way) ... am I missing something?
    Now I havethe next odd behavior - the Servlet which resides in "itworkshere\WEB-INF\lib" is not loading when I put the appropriate URL in --> /newdirectory/itworkshere/DataCrunchingServlet
    I checked the web.xml file and it has the appropriate servlet-name and url-pattern (relative references)
    Furthermore I did a test where I simply rename the original working instance directory and again --- the URL is failing to find the servlet!!! (and yes I stopped/started Tomcat) It is as if the servlet can only be found in the originally installed scenario.
    I am extremely puzzled that the behaviors seem to indicate an assumption about the path structure, but the web.xml file is set up correctly.
    Help help!!! and Thank you.l

  • Where to put common classes and jar files

    hi,
    i want to put some classes and jar files in a common folder so that it can be accessed by other applications is there any way doing that.In tomcat server they have common and shared directories once any classes are into that folder they are being accessed easily ,but i am having problems with sun one .
    Regards
    Ameem Sami

    Did you find a solution for this? I'm having the same problem.
    Thanks,
    Tony

  • Unjar and jar but I have not the same

    Hi;
    I want to add jar (jsse.jar Created-By: 1.2 (Sun Microsystems Inc.)) to my jar file, so I unjar (jar x jsse.jar) the file, copy the classes to directory where my classes are and jar the directory, but I cannot run the new jar.
    The problem is that, if I use jsse.jar, all is ok but when I use jssex.jar
    (jar x jsse.jar, jar cf jssex.jar .) I get exception :
    java.lang.NoClassDefFoundError: COM/rsa/jsafe/z
    in jsse.jar com/rsa/jsafe/z.class (no COM) is as well as in jssex.jar, if i try rename com to COM in jssex.jar another error is generated(IOException: java.net.SocketException: SSL implementation not available)
    Where I make mistake??
    thanx for some advices.

    I know how can I do it, with Archive builder, but I don't know how the JBuilder make it. Becouse the jar file from Archive builder is OK but when I try make jar with sun tool jar.exe the jar file is bad.
    Only variance is that "com" (main package) in jar from JBuilder is UpperCase "COM" and in jar from sun jar tool is "com"
    When I try rename "com" to "COM" in my jar (with power) my Main class is not finded.
    When I try rename "COM" to "com" (in jar from Archove Builder) the same error is throw as from my jar (some class from jsse.jar is not finded).
    When I try rename "COM" to "com" and back rename "com" to "COM" (in jar from Archive Builder) my Main class is not finded.
    I know this action is not clear, but I tried all.
    the main problem is that I unjar (or unzip) the jsse.jar and back jar (or zip) to jssex.jar (for example), so the new jar (jssex.jar) is wrong and in both jars is "com" (not "COM")
    I tried unzip and zip so the Manifest is the same too. Some problem is with case sensitive. When I use "COM" my main class is not finded and when I use "com" some class from jsse.jar is not finded.
    in others jars (which i need) is all ok.
    Where I make mistake?
    (The archive builder can make the right jar)
    Thanx for any advice.

  • Protecting jnlp and jar files

    Hi
    I would like to know how to protect the jnlp and jar files against anyone who just types the URL in the browser Address bar.
    Thanks
    Steven

    Haven't tried, but if your jnlp app must check for updates on every startup and your files (both jnlp file and jars) are in a password protected folder (using digest or plain authentication over a SSL connection, for example) then you may be in trouble. Will JWS recognize this situation on an update check and prompt for login/password? (related to web server's folders).
    Regards

  • [svn:bz-trunk] 19596: Add JGroups 2.11.0 GA source and jar files.

    Revision: 19596
    Revision: 19596
    Author:   [email protected]
    Date:     2011-01-05 08:35:22 -0800 (Wed, 05 Jan 2011)
    Log Message:
    Add JGroups 2.11.0 GA source and jar files.  It requires JDK 1.6.x and up.   Currently it can be only used for runtime and can't be used to build the BlazeDS source, which requires JDK 1.5.x.
    Modified Paths:
        blazeds/trunk/resources/clustering/readme.txt
    Added Paths:
        blazeds/trunk/lib/jgroups-2.11.0.GA.jar
        blazeds/trunk/resources/clustering/JGroups-2.11.0.GA.src.zip

    Revision: 19596
    Revision: 19596
    Author:   [email protected]
    Date:     2011-01-05 08:35:22 -0800 (Wed, 05 Jan 2011)
    Log Message:
    Add JGroups 2.11.0 GA source and jar files.  It requires JDK 1.6.x and up.   Currently it can be only used for runtime and can't be used to build the BlazeDS source, which requires JDK 1.5.x.
    Modified Paths:
        blazeds/trunk/resources/clustering/readme.txt
    Added Paths:
        blazeds/trunk/lib/jgroups-2.11.0.GA.jar
        blazeds/trunk/resources/clustering/JGroups-2.11.0.GA.src.zip

  • How to run .class file and .jar file in jdev9i

    I want to run .class file and .jar file in jdev9i,what should I do?
    Also,I want to generate .class file and .jar file in jdev9i,what should i do?

    Add the .class file containing the public static void main(...) method to the project by clicking on the + toolbar button in the navigator, open the project properties and properly set the additional classpath then right click on the .class in the navigator and say run. It should work, I've just tried it.
    Doesn't work for a .jar yet, in JDeveloper 9.0.3 it works both for .class and .jar
    Michel

  • JAVA command line options -cp and -jar don't work together?

    Running JSDK 1.4.2 under Windows. I have a Java application that tries to dynamically load a class name that the user enters as follows:
    try {
    classResult = java.lang.Class.forName(strFilterName);
    catch (ExceptionInInitializerError e) {
    strErrorMessage = "ExceptionInInitializerError loading class: " + strFilterName;
    catch (LinkageError e) {
    strErrorMessage = "LinkageError loading class: " + strFilterName;
    catch (ClassNotFoundException e) {
    strErrorMessage = "ClassNotFoundException loading class: " + strFilterName;
    This works fine if the classes that make up my application are left as class files in the classpath, but fails to work if they have been collected and run from a JAR file. Note: I can even dynamically load the class when running from the JAR file, if the class I'm trying to load is within that JAR file too. The problem really occurrs when the dynamically loaded class is located someplace else in my classpath. I've tried using various combinations of the "-cp" and "-jar" Java command line options - but when loading and running from a JAR file - the "-cp" parameters seem to be ignored. Is this a bug? Has anyone ever seen this before?
    I run my program from the JAR file using this command:
    java -cp .;e:\entmgr\filters -jar EntMgr.jar
    Where "e:\entmgr\filters" is where the class I'm trying to dynamically load is. (This class has no package name, but loads perfectly as long as I'm not running the application from the JAR file). The class name specified by the user has to be fully specified with a package name (if it has one).
    I have tried forcing the "java.lang.Class.forName(strFilterName);" call to use the system class loader, the parent of the system class loaded, and even the null bootstrap class loader - all with no success.
    I am suspecting that the class loader that is loading and running my main program from the JAR file, is just not paying any attention to the "-cp" parameter when the "-jar" parameter is present. Indeed, I have never seen any change in the failure, no matter what I put in the "-cp" parameter when using the JAR file.
    When I run this without using the JAR file, here is the command I execute:
    java -cp .;davidp\snmp;filters davidp.snmp.EntMgr
    Where this is executed in a directory that has a "filters" and "davidp\snmp" directory. In this case, because the "filters" directory is in my class path - I can dynamically load my class from it using just its simple name (i.e. "TestTrapFilter").
    So, is there some bug that precludes the "-cp" parameter from working correctly when the "-jar" parameter is used? Is there some other way to initialize or set up the classloader I'm using, so it can find things outside of the JAR file I'm running from? I would hope that it is possible to get the same behavior from my program, no matter if it is run from a JAR file or not.
    Thanks for any assistence!
    Dave

    These posts are pretty old, but this page came up in a google search while I was having the same problem, so I thought I would throw my own (Later found) solution in.
    The -cp and -jar options did not work together for me, but I later learned that they didn't really have to (and you don't have to mess with jar manifest files).
    While on the command line, if you want to set a specific class path and also run a jar, all you need to do is add the jar to whatever extra class path you need to use in the -cp <arg>, and then specify which class you want run from inside the jar.
    IE:
    java -cp <YourSpecialClasspath>: <PathToJar> <ClassToRunInsideOfJar>
    in my case it was like:
    java -cp /home/user/WebRCP.jar:./StandaloneInstaller.jar InstallLoader
    Remember to put a ":" in between the two arguments for the class path (-cp).
    Hope this helps someone in the future,
    -Josh

  • The system doesn´t let me change the dock and .jar files

    Dear professionals,
    since a couple of days I come across with a weird problem:
    I am logged in as admin but the system doesn`t perform several modifications:
    such as:
    if I remove a broken link from the dock (grey questionmark) and replace it with a new link to the new app the next session everything is unchanged and the questionmark is back.
    if I want firefox not to play quicktime and try to change the preferences it flips back immediately
    if I want to open Cocktail to schek something it does not accept me as admin - whereas the systems calls me admin.
    maybe the futile attempt to alter the minecraft.jar has the same reason.
    At many files the file info shows a strange entry at the botten where the sharing/permission are listed: Name is "Laden..." meanig "Loading..." with the dots and as symbol a grey person with tiny questionmark; permission is "read only"
    History:
    Till now I never used a password and logged in automatical as admin
    I upgraded to Lion
    I installed a second account to have a workspace not as admin
    I gave a password to the admin account
    I got nuts with the second account as I couldn´t change the preferences of firefox and delete files and so on
    I gave administration rights to the second account to customize the workspace
    I realized the problems with the admin account - changes where ignored/forgotten by the system w/o warnings
    I deleted the second account as it seemed to cause the trouble
    I repaired the rights in the admin account
    I repaired the HD with HD recovery
    I try to check the system with cocktail but cocktail tells me the password is not sufficient - it opens the app but it refuses any modifications
    I switched to manual login
    System tells me that the keychain.login does not accept the password
    I set the password for keychain also
    keychain first aid tells me the password does not work ?
    I removed the password from admin account
    I removed the password from keychain first aid is happy
    Repair rights does not find any trouble
    Cocktail does not accept me anyway anymore, without password (as i logged in) or the former passwords- it blocks at all.
    And all the other stuff listed at the beginning drives me crazy
    File Info window tells me i have adapted rights- whatever it means, as i am listed with full read/write rights
    now I am stunned.
    I would like to use my Installation disk to repair anything - but as it is not the lion system I am afraid to cause more trouble.
    Does anyone have a clue?
    And sorry for the strange text- english is not my native language
    And, btw, is netinfo manager removed by lion? it does not appear on my volume.
    Thanks for Your help
    Bernhard

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Dinamyc class loading and jar files

    I'm new to java. I would like to load some plugins in my application (it's going to be packaged as a jar at the end). I managed to find some dinamyc class loading examples but they search for the classes to load in a directory.
    This is the code:
        public static void main(String[] args) {
            File pluginDirectory = new File("src/pluginsreloaded/plugins");
            if (!pluginDirectory.exists()) {            // the plugin directory does not exist
                System.out.println("The plugins directory does not exist!");           
                return;
            FilenameFilter filter = new FilenameFilter() {
                public boolean accept(File dir, String name) {
                    return name.endsWith(".class");
            String[] pluginFiles = pluginDirectory.list(filter);
            for (int i = 0; i < pluginFiles.length; i++) {
                if (pluginFiles.indexOf("$") == -1) {
    System.out.println("Loading: " + pluginFiles[i].substring(0, pluginFiles[i].length() - 6));
    IPlugin plugin = pm.loadPlugin(pluginFiles[i].substring(0, pluginFiles[i].length() - 6));
    System.out.println(plugin.description());
    protected static IPlugin loadPlugin(String name) {
            // Query the plugin list for the plugin
            PluginFactory _plugin = (PluginFactory) pluginList.get(name);
            if (_plugin == null) {          // the plugin is not loaded
                try {
                    Class.forName("pluginsReloaded.plugins." + name);
                    // The plugin makes an entry in the plugin list
                    // when loaded
                    _plugin = (PluginFactory) pluginList.get(name);
                    if (_plugin == null) {
                        return null;
                } catch (ClassNotFoundException e) {
                    System.out.println("Plugin " + name + " not found!");
            return _plugin.create();
        }IPlugin is an interface. I am using netbeans 5.0. The error I get is this:
    Exception in thread "main" java.lang.NoClassDefFoundError: pluginsReloaded/plugins/plugin1 (wrong name: pluginsreloaded/plugins/plugin1)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at pluginsreloaded.PluginManager.loadPlugin(PluginManager.java:30)
            at pluginsreloaded.Main.main(Main.java:44)
    Java Result: 1As far as I can see it can't find the class. My question is how can I load the class/where can I find it?
    Thanks.

    You can use the java.util.jar.JarFile class to enumerate the contents of a jar. It's not good practice to search for plugins in this way though. A plugin may well involve serveral classes, which don't all have to be internal. Furthermore its wise to avoid any comitment about the mechaism by which class files are to be fetched. You might want to do it remotely, some time, or load them from a database.
    What seesms to be the standard approach is to put a list of plugin classes into the jar as a text file.
    Plugins for a given purpose usually implement some specified interface, or extend some abstract class to which their objects can be cast once loaded (without this they aren't really much use).
    Say your plugins implment org.myorg.WidgetFactory then you put a list of them, one fully qualified name to a line, in a file or jar entry called META-INF/services/org.myorg.WidgetFactory. You framework picks up all such files from the classpath using ClassLoader.getResources() and loads all the classes whose names if finds, hence you can add new sets of plugins just by adding a new jar or class directory to the class path.

  • Third party dlls and jars with in jars.

    Hi,
    I have a application which uses several 3rd party jars and dlls.I want to create a executable jar for the application .I added the external jars using fat jar eclipse plugin. Iam able to run the jar on my system successfully.But on other systems the application doesnot launch as the dlls are not avaiable which is fairly understandable. It gives the following exception 'JarClassLoader: Warning: Unable to load native library: java.lang.NullPointerException'.Now i need to include these dlls into the jar so that i can distribute the application as a single jar and launch double clicking it.I know expecting dlls ignores the cross platform nature of java but i need it.please give me some idea on how this can be done.
    Thanks in advance

    Hi,
    I have a application which uses several 3rd party jars and dlls.I want to create a executable jar for the application .I added the external jars using fat jar eclipse plugin. Iam able to run the jar on my system successfully.But on other systems the application doesnot launch as the dlls are not avaiable which is fairly understandable. It gives the following exception 'JarClassLoader: Warning: Unable to load native library: java.lang.NullPointerException'.Now i need to include these dlls into the jar so that i can distribute the application as a single jar and launch double clicking it.I know expecting dlls ignores the cross platform nature of java but i need it.please give me some idea on how this can be done.
    Thanks in advance

  • JNLP and jar files are being download from server again.

    I have a swing application deployed with Java Web Start on a server.
    On my client I install the application using JWS JRE 1.6.
    The issue is that without any change in the jars or JNLP the jars are being downloaded from the server again and again
    This is not consistant - it happens only sometimes.
    One important thing to mention: The server is inside a load-balancer cluster (AKAMAI), so the IP address of the actual server may change between different accesses.
    in the log, I can see the error:
    "Cache entry not found"
    and then the jar is being downloaded again.
    sometimes only one or two jars were downloaded again, sometimes the whole package with the JNLP file were dowloaded again.
    Can you suggest what can be the reason for this behavior?
    Thank you,
    Ran

    That does seem slow, but there are many factors that could be involved. More information would be helpful:
    - Are the source and destination filesystems ZFS or UFS? (or some other FS)
    - What does iostat show you?
    - What does vmstat show you?
    - What type of HBAs connect you to the SAN? ('fcinfo hba-port')
    - Anything in /var/adm/messages?

Maybe you are looking for

  • How do I connect my G5 1.8 PowerMac to a new 2011 iMac?

    I'm planning on purchasing a new mid-year 2011 iMac soon, I'd like to connect my Power Mac G5 1.8 to the iMac;  to mount to the new iMac's desktop so that I can use the internal drives on the G5 as backups, and for retrieving files I currently have o

  • Connecting laptop to printer

    I am trying to connect Toshiba laptop to my HP 2540 3 in 1 wirelessly and not having very much success. The laptop is running Windows 8. Any suggestions?

  • Bose iphone dock and AV cable to play movies through tv

    my iphone would play through bose sound dock and used to be able to play videos and bbc iplayer through tv with av cable. now get message on iphone saying this accessory is not made to work with iphone-turn on airplane mode.also have same problem wit

  • Screen light in Lenovo a6000

    While listening to music, pressing volume up or down button switches on the screen. Its irritating and drains battery. That doesn't happen in any other android phones so why in this? Or happening in my phone only? If its a bug, please fix it.

  • HOWTO: Resize Bootcamp (NTFS) partition for free using gparted

    Hi, Well, if you find your Bootcamp/NTFS/Windows partition running out of space, you may want to increase it or decrease it. The OSX Bootcamp utility doesn't allow resizing the NTFS partitio nor does Disk Utility. Here is a free solution ... NOTE: I'