How to explicitly add a piece of code to a java project
Posted
by
user435245
on Stack Overflow
See other posts from Stack Overflow
or by user435245
Published on 2011-02-12T07:22:44Z
Indexed on
2011/02/12
7:25 UTC
Read the original article
Hit count: 201
Hi there, I’m working with Net beans IDE and I want to add a piece of code to my project in a way that the source code won’t be visible to the user who is running the project, I decided to export that piece of code as a jar file in eclipse and then add that jar file to the project. But unfortunately net beans does not let me import that. It says which it is expecting a . Or when I insert. It goes in to that class and I cannot import that jar file into the project by import instruction. Is there a command in net beans which creates and object from jar file and then makes access to the functions and classes of the jar file? Would you please give the format of that instruction? If you know a better way to do this task I would be so happy if you share it with me
© Stack Overflow or respective owner