External jar introspection error in ALBPM 5.7

Hi,
We are using ALBPM 5.7.Here the scenario,
We have java application for front end and ALBPM for backend(Business Process) and having two way communication.
The java application converted into jar and intropected in ALBPM and using the java method inside the ALBPM.
While introspect jar i am getting the error like
**"class not found" ,[Error] Introspection error: 'Class 'com.comcast.commsales.bl.AttributeServices' cannot be loaded because there was a problem running the class static member ',Error] Introspection error: 'It is not possible to load class 'com.comcast.commsales.bl.bpm.NewOrderProcessServices' since it references another class 'com/comcast/commsales/notification/task/TaskRequestDocument$TaskRequest'that is not in the classpath.'..**
Even when i try to execute the flow, im getting the below error,
"*A component failed while executing activity '/CreateCaseProcess#Default-1.0/RetrieveCasesByContract' (BP-method Retrieve Cases By Contract) over instance '/CreateCaseProcess#Default-1.0/2/0'.*
*Details:*
*The method 'CIL_retrieveCasesByContract' from class 'Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance' could not be successfully executed.*
*Caused by: java.lang.ExceptionInInitializerError*
*Caused by: java.lang.NullPointerException*
*fuego.lang.ComponentExecutionException: The method 'CIL_retrieveCasesByContract' from class 'Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance' could not be successfully executed.*
*at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)*
*at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)*
*at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)*
*at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068)*
*at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389)*
*at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481)*
*at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655)*
*at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616)*
*at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)*
*at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:60)*
*at fuego.metadata.Activity.execute(Activity.java:1022)*
*at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)*
*at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)*
*at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)*
*at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)*
*at fuego.transaction.TransactionAction.start(TransactionAction.java:213)*
*at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)*
*at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)*
*at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)*
*at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)*
*at fuego.server.execution.ToDoItem.run(ToDoItem.java:531)*
*at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)*
*at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)*
*at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)*
*at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)*
*at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)*
*at fuego.component.ExecutionThread.work(ExecutionThread.java:818)*
*at fuego.component.ExecutionThread.run(ExecutionThread.java:397)*
*Caused by: java.lang.ExceptionInInitializerError*
*at com.comcast.commsales.hibernate.HibernateConfig.getSessionFactory(HibernateConfig.java:1331)*
*at com.comcast.commsales.hibernate.HibernateConfig.getSession(HibernateConfig.java:1469)*
*at com.comcast.commsales.bl.SubcaseControl.getParentCaseForContract(SubcaseControl.java:1527)*
*at Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance.CIL_retrieveCasesByContract(Instance.java:1121)*
*at Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance.CIL_retrieveCasesByContract(Instance.java:1141)*
*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 fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)*
*... 27 more*
*Caused by: java.lang.NullPointerException*
*at com.comcast.commsales.hibernate.HibernateUtils.getAllTableMaps(HibernateUtils.java:826)*
*at com.comcast.commsales.hibernate.HibernateUtils.<clinit>(HibernateUtils.java:531)*
*... 37 more"*
Is because of the jar is not properly introspected into ALBPM? or Is not mandatory to introspect the jar into BPM.
Could you please anyone help us to resolve the above issue
Regards,
Anandh P

It mean there is problem in the jar file.Due to that im getting the error while doing introspect, is my understanding right?>
No. As Ariel pointed out, this error:
A component failed while executing activity
'/CreateCaseProcess#Default-1.0/RetrieveCasesByContract'
(BP-method Retrieve Cases By Contract) over instance '/CreateCaseProcess#Default-1.0/2/0'can only occur when you are running an instance through a method insid the RetrieveCasesByContract activity which is inside of your CreateCaseProcess. You might still have a misbehaving Jar file, but the error you got did not occur when you were introspecting the Jar file. It happend when you ran the work item instance through that activity in the process.
Start by adding logMessage statements at various points in the method you are calling.
Dan

Similar Messages

  • External Jars referencing error

    I followed all the following steps which were discussed in forum to referencemy 9 external jars, my DC build was succeded in NWDI and has been deployed onto portal server. I got error message "DeploymentException:Clusterwide Exception:Failed to prepare application.....check the reference....." while running that ear file from portal.
    Steps i followed to reference external library:
    1) Created externallibrary DC, plces jars and made them as public (<b>here i made one public part for all jars, do i need to create different public part for different jars)...</b>
    2) Created library DC and added the above DC as used dc for build time and runtime reference,then deployed onto server i can see the service in visual admin with alljars in it.
    3) Created webdynpro DC and added above library DC as used DC, I added library reference tooo, build was succeded and above getting runtime error. <b>Iam giving the exact reference which is copied from visual admin.</b>
    I removed the library reference but iam still getting the same error.we running on NW'04s SP8,Any help is appreciated.
    Thanks,
    Damodhar.

    Hi Damodhar,
    Please check the posting
    https://forums.sdn.sap.com/click.jspa?searchID=216037&messageID=2563001.
    from the posting::
    "you need public part with type "compilation". Also you need to open project properties, go to "Web Dynpro References -> Web Dynpro Application" and add run-time reference to DC that exposes component"
    Regards, Anilkumar

  • Getting error while calling external Jars in BPEL by using Java embedding activity in soa 12c

    Hi,
    I am trying to use an external Jars for the business logic implementation. Here I need to pass XML as input and
    and I expect the "Password " field has to be return.
    Following are the steps I have followed:
    1) Created a java project with sample class and added the external jars into the project "Libraries &Classpath".
    2) Created a jar file out of it.
    3) Created a BPEL project with Java Embedding.
    4)Wrote the java code in java embedding activity.
    4) Added the above created jar file to the BPEL project's lib/jar  and added in SCA-INF/lib project folder as well.
    5) Imported the package with the class as in the jar (e.g <bpelx:exec
    import="pkg.testInterface"/>)
    6) Deploy the BPEL project.
    while deploying the SOA build is sucessful but my depoyment is incomplete.
    error:
    advices will be great....
    Regards,
    Dilip

    Hi,
    Can you confirm if the BPEL Version is 1.1 or 2.0.
    If you are using BPEL 2.0 you need to import the required jar/class file as:
    <import importtype="http://schemas.oracle.com/bpel/extension/java" location="pkg.testInterface"/>
    For BPEL 1.1 the syntax to import other jar/class file is:
    <bpelx:exec import="pkg.testInterface"/>
    If you import the classes in the correct format you will not face any deployment error.

  • How to import external jars in a CAF project?

    Hello Experts!
    Could you help me find out the way to import external jars in a CAF project. I have tried to import the jars
    in ejbmodule using "java build path--->libraries". But while trying to build the project it's displaying error and all the imported jars automatically get removed from the list.
    I have read that creation DC of type "External Library" can help me.
    1) Create a DC of type external library
    2) Copy my jars to folder "libraries"
    What should I do next? And how can I import my DC of type "External Library" to my CAF project?
    Looking forward for your suggestion.
    Thanks & Regards
    Vitaly

    Hi,
    This article will guide you how to deploy the external jar files to the application server.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60a0f850-c451-2c10-a6a6-ddcabfa3a65b&overridelayout=true
    Add the library project to the public part of your caf project to use the jar files.
    Regards,
    Gayathri

  • Exception while adding External Jar files in NWDS

    Dear Friends,
                            Actually i am adding an external Jar file in my EJB Module in NWDS.I am using this jar file for converting XML to flat file and i am calling this module from Receiver ommunication channel.For this process, i am importing dom4j.jar file in the EJB Module.
                          Now i have created an external Library project for the cause that i have used the external jar file, and i have made following code in the provider.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">
    <provider-descriptor>
         <display-name>
          XML2EDI_Library
        </display-name>
         <component-name>
          XML2EDI_Library
        </component-name>
         <major-version>6</major-version>
         <minor-version>40</minor-version>
         <micro-version>0</micro-version>
         <provider-name>
          dom4j.org
        </provider-name>
         <references>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.Document</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.DocumentException</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.Element</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.io.SAXReader</reference>
         </references>
         <jars>
              <jar-name>EDI_Module.jar</jar-name>
         </jars>
    </provider-descriptor>
    I have included 4 references because i have imported following in my ejb module.
    import org.dom4j.Document;
    import org.dom4j.DocumentException;
    import org.dom4j.Element;
    import org.dom4j.io.SAXReader;
    I am not sure of wht to include in reference target and provider name, I am getting the following exceptions in Message monitoring:
    1. AO: Document Exception: org.dom4j.DocumentException: E:\usr\sap\BWS\DVEBMGS00\j2ee\cluster\server0\
    2. Nested exception: E:\usr\sap\BWS\DVEBMGS00\j2ee\cluster\server0\
    Help me in this issue..
    Thanks in advance
    N.Jayanth Kumar

    thanks for you help sidharth.
    i have now jar files in the server and the application  referring to the jar files. everything is deployed fine. however, when i start the application..i get the error -"package jcifs.smb does not exist". the jar i am using is jcifs-1.2.7.jar. in my web module when i expand the jar i see the package and the .class files inside. what am i missing?
    Also, i din't define a SharingReference to usermanagement in portalapp.xml as i am working towards a pure j2ee enterprise application. the web module (DC) referes to the jar files. is there any step similar to defining the sharing reference for the web module DC?
    please help. thanks - sowmiyar

  • External Jars in program

    Hello,
    Sorry I know it's not an eclipse forum, but I couldn't get answers anywhere, so I hope someone here can help.
    I have browsed the net a lot, and found that a lot of people are having similar issues, however I did not manage to make this work .
    I have an rcp application which is just a GUI for using my application.
    I also have another eclipse java project which has the core classes.
    I want people to be able to use either the GUI or directly the JAR file created out of the second project.
    Now the troubles :
    the second project uses external jars, which I do NOT want to be packaged. I want the users to get those jar separatly and place them in the appropriate folder.
    The first one (GUI) uses the second project (well it uses its jar file).
    Inside eclipse I can make it work fine, problems come whenever I want to export either the GUI or the JAR from the second project.
    What I would like to achieve is the following :
    1) If they want to use the GUI, then there is a lib folder in its tree where they have to place all the external jars (and maybe the second project jar too, well I guess)
    2) If they want to import the second projet jar in their own application, they have to get the external jars too and place them .... (somewhere? same directory I believe)
    Now I have tried everything I found on the net without success : Add External Jars, add Jar, runtime tab, build-path, class-path, Project dependency, manifest etc ... in second or both projects.
    I know the solution is somehow in those, but I just can't get it to work. Usually I get export errors on the RCP, sometimes its during execution.
    If anyone could explain me step by step what I should do to achieve what I need, I would greatly appreciate it because it's kind of driving me mad.
    Marh

    On 22-Jun-11 06:11, [email protected] wrote:
    > Hi,
    >
    > I am new to Java world and surely to eclipse, after years using Delphi.
    > I am learning to become a real Java developer utilizing eclipse. In my
    > starting pace I found so amuzed and also confused about Java. Every try
    > to write a simple program I always use so many external JARs in my Java
    > project. Is there any pitfall using exessive external JARs in a project
    > ? And how can I know not to use certain external JAR without
    > try-and-error removing one by one ?
    >
    > Thanks in advance,
    > Zhou.X.B.
    Don't worry about how many JAR files you end up using. Don't go out of
    your way to add JARs unless you know you need them. Typically, you write
    code based on what you learn from research and add the JARs you need.
    Usually, you won't acquire a lot of unnecessary JARs, but even if you
    do, it doesn't hurt (except for a bit of diskspace).
    Later, you'll discover which JARs you did or didn't need.
    In short, don't worry about this. Just move ahead. You're on the right
    track since you chose Java in the first place.
    ;-)

  • External jars in Web Dynpro for Java CE 7.1.1

    Hi there,
    Can you give me some guidance for including external jars in Web Dynpro for Java (CE 7.1.1)?
    I vainly tried for some hours now to get my external jars running in the new version of web dynpro (part fo Composition Environment 7.1.1).
    The routines described in some other threads didn't help me. For example, in CE 7.1.1 there's no DC Metadata that would allow me to add an external library.
    FYI, in the error message during build it simply says the package is not found.
    My error is javac ERROR: D:\test.jdi\LocalDevelopment\DCs\demo.sap.com\retail\_comp\src\packages\com\sap\demo\retail\javafiles\DomParser.java:12: package com.sap.semprom.retail.sc does not exist
    javac ERROR: import com.sap.semprom.retail.sc.BoundEvent;
    Thx in advance!
    Holger

    See http://help.sap.com/saphelp_nwce10/helpdata/en/d7/fc139ba1549047a5372ad3c0d540ea/frameset.htm
    under "External library".
    Armin

  • Adding external jars

    Hi,
    I have a jar file in the ext folder of BPEL. When i use the class in java embedding activity it says class not found error how do i solve it. Or please tell me the procedure of adding external jars
    Edited by: user10545499 on Nov 5, 2008 9:40 PM

    To make external Jar files available in your BPEL PM, you could put the files in:
    [ORACLE_HOME]\bpel\system\classes
    Restart the server, you they are read when BPEL PM is started. If you want them available in the whole J2EE environement, you sould place them in the j2ee enviornment.
    Marc

  • Adding External Jar files

    Hello,
    I have successfully created and deployed a portal application project (par file) that required adding as an external jar the file com.sap.portal.usermanagementapi.jar. Now I am re-doing the project as a development component in NWDI and I can add the external jar file fine and the source code shows no errors. However as soon as I build the DC I get a  source error that says the import to com.sap.ip.portal.service.ume.IUserManagementEngine can not be resolved. If I go back to the java build path the usermanagementapi.jar is no longer there.
    Do I have to handle the adding of external jar files in a different way for a DC as opposed to a par project?
    Thanks,
    Bert

    thanks for you help sidharth.
    i have now jar files in the server and the application  referring to the jar files. everything is deployed fine. however, when i start the application..i get the error -"package jcifs.smb does not exist". the jar i am using is jcifs-1.2.7.jar. in my web module when i expand the jar i see the package and the .class files inside. what am i missing?
    Also, i din't define a SharingReference to usermanagement in portalapp.xml as i am working towards a pure j2ee enterprise application. the web module (DC) referes to the jar files. is there any step similar to defining the sharing reference for the web module DC?
    please help. thanks - sowmiyar

  • Migrating prject with external jars from 10g to 11g

    Hi..
    I am migrating a project which is using external jar files. I have included jar files in sca-inf/lib folder as well as on server directory. But i am getting error that the particular class in jar cannot be intialized. Error is given below:-
    Could not initialize class com.ge.realestate.ea.framework.util.FrameworkXMLUtils;

    Thanks for replying...
    I have already followed all the steps in that document. But i am unable to access classes in the jars included in the project. May be I have to recompile all the jars in 11g with ant. Because I am able to access only those classes which are not importing any classes. The imports used in the specific class are given below:-
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.StringWriter;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.xml.parser.v2.XMLLSSerializer;
    import org.apache.log4j.Logger;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.collaxa.xml.XMLHelper;
    import com.oracle.bpel.client.BPELFault;
    I am not sure if importing one of these is causing the problem.

  • Deploying external jar files in CE 7.1

    Hi All,
    I am using CE 7.1 SP01 NWDS to develop my applications.
    Now I want deploy one external jar files to J2ee engine.
    I know how to do the same in NWDS 2004s. But here the steps seems to be little bit different.
    I referred the following blog for doing this in CE 7.1
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    But, still I am getting Classnotfound exception, when i try to use the jar file in dc applications. There, I posted some queries, but I didnt get any solution.
    Can any one help me on this please.
    Thanks,
    Fahad Hamsa

    Hi  Fahad,
    I am facing the same problem, but am  not able to get the solution.
    I am following the below steps..
    1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.
    2) Created a DC of type "External Library" called "externaljar"
    3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)
    4) Right click on the  assembly Public Part name -> Manage entities, and added the JAR files as archive.
    5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.
    6)Go to Webdynpro DC "testProj" .
    Under Component Properties Tab -> Dependencies tab  -> Add -> selected the "externaljar" DC  -> Next ->  for "externaljar" DC checked Deploy time and Run time.
    For assembly Public Part  and compilation Public Part "build" is selected by default.
    7) I did build of both the DC's and deployed it.
    Im getting "Class not found" error.
    Please let me know where i am going wrong.
    Thanks,
    Shilpa.

  • External Jar files packaged with the Application Jar.

    Hello Friends,
    I have a Java class 'Config.java' with a package a.b.c
    This class requires a third party Jar 'new.jar'. I place this Jar file in the parent directory of the package.
    So I can compile the Config.java with classpath as '.'
    This works fine.
    Now while packaging them, I create a mymanifest.mf file with following contents
    Main-Class: a.b.c.Config
    Class-Path: . new.jar
    and issue the command
    jar -cvmf mymanifest.mf myjar.jar *
    This creates a jar file with appropriate manifest information and heirarchy (since the included third party jar is in the same directory)
    When I run the Jar by issuing the command
    java -jar myjar.jar
    It gives me an error, NoClassDefFound for a class inside the included third party jar.
    I have gone through some of the other queries posted in this forum and through Sun's articles for creating Jar files.
    I have taken care of all the minute things involved in writing the manifest file, etc.
    I dont understand why such a simple application gives me a problem.
    Am I still missing something ?
    Regards,
    Ravi

    I had the same problem. But I solve it.. The thing that you have to do is:
    create another directory in your project application directory let's say your project directory is Project. such as Project / lib.
    then put external jars in lib directory.
    The last thing you have to do :
    change your manifest file like that
    Main-Class : mainclass
    Class-Path : lib/externaljar1.jar lib/externaljar2.jar
    I don't know you ever deal with manifest files before but there can be very stupid errors while you create .
    i.e there should be a space between ":" and mainclass name you shoul use "/" not "\" etc.
    I think it will work for you.

  • External Jars in JSP Dynpage

    Hi,
    I have implemented reading an XML feed in a Java program using informa api.
    In NWDS, I created a Java Project. And as required added 3 externals jar files.
    I had to import the following:
    import de.nava.informa.core.ChannelIF;
    import de.nava.informa.core.ItemIF;
    import de.nava.informa.impl.basic.ChannelBuilder;
    import de.nava.informa.parsers.FeedParser;
    The program works on run.
    But when I creat a JSP DynPage and I add the follwoing lines:
    <%@ page import = "de.nava.informa.core.* "%>
    <%@ page import = "de.nava.informa.impl.basic.ChannelBuilder "%>
    <%@ page import = "de.nava.informa.parsers.FeedParser "%>
    I get an error: Error occurs during the rendering of jsp component. Even in this project I added external Jar files in the same way.
    Any particular stuff need to reside on the server or something?
    Because I one tried implementing JCO in JSPDynPage by adding the external jar in the project structure and it worked fine.

    Hi Prem,
    Probably the jars you must have added in your last project would be available on the server or they would have been some server related jar files.
    But in the case when you are inclusing some external jars, you need to inclusde it both as "<b>External Jar</b>" and also add it to the <b>lib</b> folder (ie: just copy and pate the jar files in the <b>lib</b> filder).
    <b><a href="http://img142.imageshack.us/img142/8168/solution4gy.jpg">Put the .jar file here</a></b>
    I hope this solves your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful and solved.

  • Linking external jar when starting java -jar problem

    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    }I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Error was: java.lang.NoClassDefFoundError

    There's a Class-Path attribute in the manifest.

  • External jar question

    hi all,
    I made a Java application in Eclipse;
    in Project - Properties - Build Path - Libraries, I added an external jar to be able to connect to a mysql database.
    Now I can execute this application perfectly from Eclipse and on the same machine.
    But now I need to put this application on another machine, but when I try to execute the application it gives this error message:
    $ java WatchDog
    Cannot connect to database serverorg.gjt.mm.mysql.Driver
    Exception in thread "main" java.lang.NullPointerException
    at Query.truncate(Query.java:304)
    at WatchDog.<init>(WatchDog.java:18)
    at WatchDog.main(WatchDog.java:131)
    I also tried to point to the external jar with the -classpath option like this:
    $java -cp "/usr/local/bin/WatchDog/mysql-connector-java-5.0.4/mysql-connector-java-5.0.4-bin.jar" WatchDog
    Exception in thread "main" java.lang.NoClassDefFoundError: WatchDog
    how can I do this??
    grtz
    Message was edited by:
    dfvdfvdfvxfv

    by setting the classpath like that you removed your own classes from the classpath.
    Add the directory where those are to be found to the classpath as well.
    And of course ALWAYS use packages for your classes.

Maybe you are looking for