[nbusers] How to include a .class file in my project

  • From: "Mack06" < >
  • To:
  • Subject: [nbusers] How to include a .class file in my project
  • Date: Tue, 02 Apr 2013 01:29:38 -0400

It works but it won't copy it into the jar file by default. It looks like you 
would have to edit the build file to get Ant to copy the directory. 

Error message:

Not copying library 
C:\Users\MackSix\Documents\NetBeansProjects\Applications\File2Hex\build\classes
 , it's a directory.

This _should_ work! 


Mack06 wrote:
> You can go to Project Properties>>Libraries>>Add Jar/Folder and add any 
> folder that has .class files in it to your project as a library. You can 
> add it as a relative or absolute path. I had never done it before, but I 
> just tried it and I just imported the package into the java file that I was 
> going to use it in with an import statement once I added it and it works 
> like a charm.
> 
> 
> 
> ShadowDancer wrote:
> > I too have had endless issues trying to add a .class file as a library. I 
> > have tried all the solutions listed here to acc a file called Can.class. 
> > But no matter what I do it will not let me create new Can objects. 
> > 
> > Normally if netbeans has the library correctly included the error icon 
> > will provide the option "Import class name here". However, it's not doing 
> > this.
> > 
> > so a full step by step guide would be great, since in all probability 
> > it's one lousy step in the process that's missing.
> 







[nbusers] How to include a .class file in my project

ShadowDancer 04/01/2013

[nbusers] Re: How to include a .class file in my project

Wade Chandler 04/01/2013

<Possible follow-up(s)>

[nbusers] How to include a .class file in my project

Mack06 04/02/2013

[nbusers] How to include a .class file in my project

Mack06 04/02/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close