facebook

Creating and executing jar file

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261585 Reply

    arupsarkar
    Member

    Hi I have created a jar file using the File -> export utility. I saved the default manifest file in the existing workspace. For example the jar file that I exported is named as myfoo.jar.

    When I am trying to execute the jar file

    java -jar myfoo.jar

    I am getting the following error.

    Exception in thread "main" java.lang.NoClassDefFoundError: com/siebel/data/SiebelException

    Now I have already set up a system CLASSPATH variables where all the dependent jar files are specified.

    Where am I going wrong?

    Regards
    Arup Sarkar

    #261658 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Arup,
    If SiebelException is not inside the JAR you are creating, you need to place the JAR that *does* contain it in the classpath of your custom JAR by adding proper class-path entries to your Manifest.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Creating and executing jar file

You must be logged in to post in the forum log in