Page 1 of 2 12 LastLast
Results 1 to 20 of 24
  1. #1
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default adding external jar in Net Beans project

    Hi Mates

    I have a JBuilder project which i have imported in net Beans 6.9.1 ..Now i want to add an external jar file which has some classes in it i will like to use .I am trying to go to project properties and add the new jar file in the library .but when i try to use any of the jars classes i cant do it.Net Beans cant find it. and it gives the error.
    I am able to compile and run the project in Net beans without this jar.

    what is the best way to add the external jar file in the netbeans project.
    am using Net beans first time.

    Thanx

    Rida

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    have added the jar in the project properties libraries compile .
    below is the error .line 58 is where it cant get the jar resource.

    run:
    Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
    at koolcompliance.Start.main(Start.java:58)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  5. #5
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    new KeySubmissionForm();

    which is part of the jar i am using

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  7. #7
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    yep the package does not have errors.It is not able to access any of the packages (jars) calsses or methods.
    can u tell me step wise what i need to do for netbeans to access the jar.or do i need to place the jar is some particular folder in the project .or is there any other way.
    i am thinking now to break the jar and use indivisual classes to acess them .is there any other way.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    The way you added the jar file is correct. You can confirm the configuration in this way. On your project folder there is a folder name dist. Open it, there should be a folder name libs. Check that inside that folder, you should find your external package.

  9. #9
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    Thanks for that.I cant see any Dist folder there.
    I have imported this project from JBuilder platform.will have to redo or see where the Dist folder is.

  10. #10
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    Hi
    I did run the compile and build and can see the dist folder .but under the dist folder i cant see any lib folder.

  11. #11
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    Hi Eranga

    I created a new project in the NetBeans and copied all the files from the other project .
    Now i can see the jar file in the dist/lib .
    But i am still not able to use the classes and methods inside the jar.do i need to put the import statement at top .
    i have a jbcl layout jar from JbUilder which is also added as library and uses import statement and it can access the jar resources .but i dont know if i have to use the external jar what will be the import stateemnt.
    my jbcl jar uses import com.borland.jbcl.Layout;
    Need your help here.

    thanx

    Rida

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by alfarida View Post
    Hi
    I did run the compile and build and can see the dist folder .but under the dist folder i cant see any lib folder.
    Once you compile the project only you can see the dist folder. If you've use any external packages only you can see lib folder inside the dist folder.

  13. #13
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by alfarida View Post
    Hi Eranga

    I created a new project in the NetBeans and copied all the files from the other project .
    Now i can see the jar file in the dist/lib .
    But i am still not able to use the classes and methods inside the jar.do i need to put the import statement at top .
    i have a jbcl layout jar from JbUilder which is also added as library and uses import statement and it can access the jar resources .but i dont know if i have to use the external jar what will be the import stateemnt.
    my jbcl jar uses import com.borland.jbcl.Layout;
    Need your help here.

    thanx

    Rida
    No need to use any import statements. Since the package in lib folder you've done it correctly. You cannot user resources from the package sense what's really happen. Any error message? NetBeans notify lots of such situations.

    Could you send me the project if you can? So I can have a look at it.

  14. #14
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    If you have added those packages in classpath, then only you have to add import statements. Otherwise NetBeans will take care of it. But keep in mind that, if you added them in classpath only you can use it in any other project in NetBeans. If you added to a project in NetBeans you cannot use it in other projects.

  15. #15
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    These are the steps i have done to put the jar in classpath in NetBeans
    I havent done anything else to add the jar anywhere else.


    1.Tools >Libraries
    New Library
    Library Name : LicClient
    Library Type: Class Library
    OK
    Add Jar/Folder
    Browse to the LicClient jar file
    Add Jar/Folder
    Ok
    ---------------------------
    Next

    File>project Properties
    Libraries
    Compile tab
    Add Library------Select LicClient here
    Ok

  16. #16
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    This is the message i get when i run the programme

    Adding reference: ant.PropertyHelper
    Detected Java version: 1.6 in: C:\Program Files\Java\jdk1.6.0_21\jre
    Detected OS: Windows 7
    Adding reference: ant.ComponentHelper
    Trying to override old definition of task java
    +Datatype java org.apache.tools.ant.module.bridge.impl.ForkedJava Override
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml from a zip file
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
    +Datatype nbbrowse org.netbeans.modules.ant.browsetask.NbBrowse
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.ant.browsetask:nbbrows e org.netbeans.modules.ant.browsetask.NbBrowse
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/profiler/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/profiler/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml from a zip file
    +Datatype nbprofileattach org.netbeans.modules.profiler.ant.NBProfileAttachT ask
    +Datatype nbprofiledirect org.netbeans.modules.profiler.ant.NBProfileDirectT ask
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/profiler/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/profiler/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.profiler:nbprofileatta ch org.netbeans.modules.profiler.ant.NBProfileAttachT ask
    +Datatype antlib:org.netbeans.modules.profiler:nbprofiledire ct org.netbeans.modules.profiler.ant.NBProfileDirectT ask
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml from a zip file
    +Datatype nbinstaller org.netbeans.modules.apisupport.ant.InstallModuleT ask
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.apisupport.ant:nbinsta ller org.netbeans.modules.apisupport.ant.InstallModuleT ask
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml from a zip file
    +Datatype nbjpdaconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
    +Datatype nbjpdastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
    +Datatype sourcepath org.netbeans.modules.debugger.jpda.ant.JPDAStart$S ourcepath
    +Datatype nbjpdareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
    +Datatype nbjpdaappreloaded org.netbeans.modules.debugger.jpda.ant.JPDAAppRelo aded
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjp daconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
    +Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjp dastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
    +Datatype antlib:org.netbeans.modules.debugger.jpda.ant:sour cepath org.netbeans.modules.debugger.jpda.ant.JPDAStart$S ourcepath
    +Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjp dareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
    +Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjp daappreloaded org.netbeans.modules.debugger.jpda.ant.JPDAAppRelo aded
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml from a zip file
    Trying to override old definition of task javac

  17. #17
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    continue message
    -----------------

    +Datatype javac org.netbeans.modules.java.source.ant.JavacTask
    +Datatype translate-classpath org.netbeans.modules.java.source.ant.TranslateClas sPath
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.java.source.ant:javac org.netbeans.modules.java.source.ant.JavacTask
    +Datatype antlib:org.netbeans.modules.java.source.ant:transl ate-classpath org.netbeans.modules.java.source.ant.TranslateClas sPath
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml from a zip file
    +Datatype jnlpsignjars org.netbeans.modules.javawebstart.SignJarsTask
    parsing buildfile jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/C:/Program%20Files/NetBeans%206.9.1/java/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml from a zip file
    +Datatype antlib:org.netbeans.modules.javawebstart:jnlpsignj ars org.netbeans.modules.javawebstart.SignJarsTask
    Setting ro project property: ant.file -> C:\Users\GoSoft\.netbeans\6.9\var\cache\executor-snippets\run.xml
    Setting ro project property: ant.version -> Apache Ant version 1.8.1 compiled on April 30 2010
    Setting ro project property: ant.home -> C:\Program Files\NetBeans 6.9.1\java\ant
    Setting ro project property: platform.java -> C:\Program Files\Java\jdk1.6.0_21\bin\java.exe
    Setting ro project property: platform.bootcp -> C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Pr ogram Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\sunrsasign.jar;C:\P rogram Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Pro gram Files\Java\jdk1.6.0_21\jre\classes;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Pr ogram Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar; C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider .jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunmscapi.jar;C :\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunpkcs11.jar
    Setting ro project property: run.jvmargs ->
    Setting ro project property: classname -> autoworkshop.Start
    Setting ro project property: build.compiler.emacs -> true
    Setting ro project property: encoding -> UTF-8
    Setting ro project property: application.args ->
    Setting ro project property: classpath -> C:\Users\GoSoft\Documents\NetBeansProjects\Auto Workshop\lib\jbcl\jbcl.jar;C:\Users\GoSoft\Documen ts\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient.jar;C:\Users\GoSo ft\Documents\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient-2.jar;C:\Users\GoSoft\Documents\NetBeansProjects\A uto Workshop\build\classes
    Setting ro project property: work.dir -> C:\Users\GoSoft\Documents\NetBeansProjects\Auto Workshop
    Adding reference: ant.projectHelper
    Adding reference: ant.parsing.context
    Adding reference: ant.targets
    parsing buildfile C:\Users\GoSoft\.netbeans\6.9\var\cache\executor-snippets\run.xml with URI = file:/C:/Users/GoSoft/.netbeans/6.9/var/cache/executor-snippets/run.xml
    Setting ro project property: ant.project.name -> {0} (run)
    Adding reference: {0} (run)
    Setting ro project property: ant.project.default-target -> run
    Setting ro project property: ant.file.{0} (run) -> C:\Users\GoSoft\.netbeans\6.9\var\cache\executor-snippets\run.xml
    Setting ro project property: ant.file.type.{0} (run) -> file
    Project base dir set to: C:\Users\GoSoft\.netbeans\6.9\var\cache\executor-snippets
    +Target:
    +Target: run
    Adding reference: ant.LocalProperties
    Setting ro project property: ant.project.invoked-targets -> run
    Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
    Adding reference: ant.executor
    Build sequence for target(s) `run' is [run]
    Complete build sequence is [run, ]
    run:
    Setting project property: classpath-translated -> C:\Users\GoSoft\Documents\NetBeansProjects\Auto Workshop\lib\jbcl\jbcl.jar;C:\Users\GoSoft\Documen ts\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient.jar;C:\Users\GoSo ft\Documents\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient-2.jar;C:\Users\GoSoft\Documents\NetBeansProjects\A uto Workshop\build\classes;C:\Users\GoSoft\Documents\N etBeansProjects\Auto Workshop\src
    Override ignored for property "run.jvmargs"
    Override ignored for property "work.dir"
    Override ignored for property "application.args"
    Executing 'C:\Program Files\Java\jdk1.6.0_21\bin\java.exe' with arguments:
    '-Dfile.encoding=UTF-8'
    '-classpath'
    'C:\Users\GoSoft\Documents\NetBeansProjects\Auto Workshop\lib\jbcl\jbcl.jar;C:\Users\GoSoft\Documen ts\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient.jar;C:\Users\GoSo ft\Documents\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient-2.jar;C:\Users\GoSoft\Documents\NetBeansProjects\A uto Workshop\build\classes;C:\Users\GoSoft\Documents\N etBeansProjects\Auto Workshop\src'
    'autoworkshop.Start'
    The ' characters around the executable and arguments are
    not part of the command.
    Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.6.0_21\bin\java.exe' with arguments:
    '-Dfile.encoding=UTF-8'
    '-classpath'
    'C:\Users\GoSoft\Documents\NetBeansProjects\Auto Workshop\lib\jbcl\jbcl.jar;C:\Users\GoSoft\Documen ts\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient.jar;C:\Users\GoSo ft\Documents\NetBeansProjects\Auto Workshop\lib\LicClient\LicClient-2.jar;C:\Users\GoSoft\Documents\NetBeansProjects\A uto Workshop\build\classes;C:\Users\GoSoft\Documents\N etBeansProjects\Auto Workshop\src'
    'autoworkshop.Start'
    The ' characters around the executable and arguments are
    not part of the command.
    java.lang.RuntimeException: Uncompilable source code - cannot find symbol
    symbol: class LicCodeProperty
    location: class autoworkshop.Start
    at autoworkshop.Start.main(Start.java:63)
    BUILD SUCCESSFUL (total time: 2 seconds)
    Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRep ository) for type mavenrepository
    Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.Ejbc) for type ejbc
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLStop ) for type wlstop
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for type wlrun
    Could not load a dependent class (javax/media/jai/PlanarImage) for type image
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.DDCrea tor) for type ddcreator
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamCheckin) for type stcheckin
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamCheckout) for type stcheckout
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamLabel) for type stlabel
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamList) for type stlist
    Could not load class (org.apache.tools.ant.taskdefs.optional.scm.AntSta rTeamCheckOut) for type starteam
    Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRep ository) for type mavenrepository
    Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.Ejbc) for type ejbc
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLStop ) for type wlstop
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for type wlrun
    Could not load a dependent class (javax/media/jai/PlanarImage) for type image
    Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.DDCrea tor) for type ddcreator
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamCheckin) for type stcheckin
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamCheckout) for type stcheckout
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamLabel) for type stlabel
    Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.S tarTeamList) for type stlist
    Could not load class (org.apache.tools.ant.taskdefs.optional.scm.AntSta rTeamCheckOut) for type starteam

  18. #18
    rauff is offline Member
    Join Date
    May 2010
    Posts
    8
    Rep Power
    0

    Default

    I'm sorry i can't help :)

  19. #19
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  20. #20
    alfarida is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    yes i think will have to add the package instead of the jar.
    But i think it is the build.xml file which is the problem.
    I cant see the classpth for jar file in build.xml file .
    But i know nothing of Ant and am using netbeans first time.
    If you can send me a sample file of build.xml which has path to external jar that will be great.

Page 1 of 2 12 LastLast

Similar Threads

  1. Adding a project to an existing project
    By Seijuro in forum NetBeans
    Replies: 4
    Last Post: 08-08-2010, 11:15 AM
  2. Replies: 1
    Last Post: 12-18-2009, 07:18 PM
  3. Adding API to a project
    By Ypsilon IV in forum New To Java
    Replies: 3
    Last Post: 07-10-2009, 01:29 PM
  4. how can i do jsp project in net beans?
    By makpandian in forum NetBeans
    Replies: 2
    Last Post: 01-28-2009, 09:05 AM
  5. Problems adding an external class
    By jan2321 in forum Eclipse
    Replies: 2
    Last Post: 11-06-2008, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •