How to add class file to the project in netbean

Hi,
I am not sure if it is the right place to put the question. I just cannot find the way to add my existing java class file into the project in net bean.
Anyone can help?
Thanks a lot

Look at the "classpath" entry on the Index tab in NB's Help. There are entries there that explain how to add existing classes and libraries to a project.

Similar Messages

  • How to add jar files to a project?

    What is the correct way to add jar files to a project?
    Jdev Help has an entry "Adding Files to a Project Using the Add Files or Directories Dialog", but when I goto File->Open as it says, there is no "Add Files or Directories" dialog.
    Using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660 on Linux.

    That's not quite what I need, as it does not copy the files into the project, but just creates references to their original location in the filesystem. We want local copies so we can check the whole project into Subversion and not have external dependencies.
    Should I just copy the files manually (outside of Jdeveloper)? And what directory should I copy to?
    Thanks.

  • How to add .jar files in my project

    Hi all,
    i am designing a application where i want to translate some words of my web page to different language
    say, i want "search" word to be translated to french language
    i have got some .jar files google-api-translate-java-0.4.jar to do this work...
    can anyone tell in which folder to put .jar files ,so that it works in my project..
    i am using Eclipse SDK 3.3
    Thanks

    how to add .jar files in my project In your eclipse goto,
    Project --> Properties --> Java Buil Path --> Add External Jar
    By that u can select your JAR and click OK..........

  • How to add dll file to EAR project

    hi,
    i am working with JNI . how to add .dll files to EAR for deployment in NetWeaver.
    regards
    Guru

    HI
    GOOD
    GO THROUGH THESE LINKS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2583bbf9-0701-0010-8db5-a558e0c6f1fe
    http://support.businessobjects.com/documentation/product_guides/boexir2/en/xir2_bip_install_en.pdf
    THANKS
    MRUTYUN

  • How to add shortcut files to the Teststand workspace

    I am deploying my test stand application using TS deployment utility. At the end I need three four icons / shortcuts to launch the operator interface with different seq file entry points. I have created manually the shortcuts and it is working fine. How do I add these icons to my installer. I tried to add these shortcuts into the workspace. But it is adding the exe instead of the shortcut.
    How do I add these shortcuts to the installer / create these shortcuts during installation?
    Thanks
    Senthilnathan A.

    Hi,
    I found a workaround that could work for you.
    You can write a post.bat file to copy the shortcut created for your program item to wherever you want.
    The only thing you have to do is to create the windows start menu item for your operator interface and include a post.bat file in your installer directory to copy the *.lnk file to the desired location.
    The Post.bat file is executed immediatly after the installer finishes.
    I am attaching a simple installer that installs the CVI simple operator interface and creates a shortcut for it in the Windows Start menu and on the Desktop.
    I am only copying the file from the start menu to the desktop in the post file.
    I hope it helps.
    Attachments:
    Installer.zip ‏4318 KB

  • How to add audio files.

    I'm using Premiere Elements 11 on my iMac.  I can't for the life of me figure out how to add music files to the 8 or so that come with the program.  Anybody else having this problem or am I just dumber than most?

    Comstar 11 wrote:
    As I put in my original post I might be dumber than most and that's still a possibility.  I also tried the "Use Smartsound" same feeling that I didn't like the add on that just took me to another site to sell me music.  I couldn't find the "Project Assets" box after looking almost everywhere.  But.....  I was in the "Quick" mode.  Knowing I was a rank beginner I avoided the "Expert" tab.  But after looking everywhere else I opened that tab and "It's A Miracle" there it was.  Still stumbling through the learning process so thanks for your kind help.  If I hit the wall again I'll make another post looking for help.  Thanks Again.
    I tried the Quick mode.  When I did 'add media' in the upper left corner, video files went straigt to the project box.  Then I tried an audio file and it went below the video in the project box.  So, I see where in 'Quick' the 'Project Assets' box and step are skipped.  Sorry about misleading you.
    Either way, audio files get to the project box when you pick them up as a file on your computer.
    There are two great sources to speed the learning process.  lynda.com has courses that are like a personal demo of everything PrE does with a great coach explaining it.   http://www.lynda.com/Premiere-Elements-tutorials/Up-Running-Premiere-Elements-11/109763-2. html  A few if the chapters are free as a trial.  The fee is $25 for a month of access.  One month is more than enough if all you want is the one course. 
    If you prefere owning a course on a disk, video2brain is an alternative, but I don't think it is as thorough.
    Bill
    Bill

  • URGENT PLEASE:How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server? Can I run through an Applet?
    How can I set Environment variables in Windows2000 Professional Environment?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    The code is here
    import java.sql.*;
    public class RecordShow {
    public static void main(String args[]) {
    String url = "jdbc:mysql://localhost/myhost";
    Connection con;
    String query = "select mytable.column," +
    "from mytable " +
    "where mytable.column = 1";
    Statement stmt;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,
    "myuser", "mypassword");
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    int rowCount = 1;
    while (rs.next()) {
    System.out.println("Row " + rowCount + ": ");
    for (int i = 1; i <= numberOfColumns; i++) {
    System.out.print(" Column " + i + ": ");
    System.out.println(rs.getString(i));
    System.out.println("");
    rowCount++;
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    Please advise... THANKS
    VJ

    Ehm, I wasn't referring to you at all... read up,
    there's a comment by jschell saying that CGI might be
    easier/better for his purposes.
    Yep.
    I know PHP/Perl/whatever might be easier for some
    purposes, but only if you happen to know them and want
    to/are able to use them. Ok. But you aren't the one asking the question are you. And the person who asked the question seems to have absolutely no familiarity with Apache or applets.
    So whatever they do they are going to have to learn a lot.
    And that does indeed suggest that in all likelyhood they have not investigated the alternatives.
    And for the vast majority of internet applications, especially with smaller projects (obvious this person is not working with a large team), using perl, or something besides java, is going to be the best business solution. It is simpler, and more secure (probably due to the fact that it is simpler.)
    Since this is a Java forum, I
    answer under the assumption that people have made a
    choice one way or another to use a Java solution to
    their problem, so I try to solve it in Java first, and
    only when that fails (very seldom) do I turn to other
    solutions.You approach problems by arbritrarily deciding to try to solve it in java first and only if you fail do you then look to other solutions?
    My first step is to try to figure out which of the various avenues is going to cost less. (And a secondary, but non-trivial concern, is then to convince the customer that just because they have heard of a buzz word like 'enterprise bean' that it doesn't mean that is a cost effective solution.) We must come from different worlds.

  • How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    Please advise...
    VJ

    cross posted
    http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below:
    public class Counter
         public void print()
              System.out.println("counter");
    package foo;
    public class TestCounter
         public static void main(String args[])
              Counter c = new Counter();
              c.print();
    Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
    when i compile TestCounter.java i got the following error message:
    D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    2 errors
    what could be the problem. Is it possible to access a class file outside the package?

    ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • How to restore a song from the "Project File Backups"

    Help! I recorded onto an external harddrive, then copied all the project folders to a different drive. Now, I can't find the project files, but I can find the "Project File Backups" in the Project Folders. I suspect the original project files were saved separately from these folders on the original hard drive, but that is long gone, so I am hoping some one can tell me how to recreate the project from the files in the "Project File Backups" folder.
    ANOTHER CLUE: Stranger still, I can't find any of my logic song files using FILE>OPEN, SPOTLIGHT, nor FINDER- Only those that still populate the "open recent" list.
    Any ideas? Thanks friends!

    Hi there
    Your Project File Backups are simply the previous Project files you've saved. These files are essentially the strip settings, layouts, midi, and pointers to the audio files of your Project.
    If you have trashed the audio files then your are outta luck. This is why you should Consolidate (File-->Project-->Consolidate) all of your projects into one Project Folder on your HD. That way all of your Audio files as well as your sample files and UltraBeat files remain consolidated within a Project Folder. You can then Copy that entire Project folder to another location and have all of the respective files for that Project.
    Sorry for your loss.
    Regards,
    bb

  • How do I add another movie to the project area to work on without it being attached to a previous project?

    How do I add another movie to the project area to work on without it being attached to a previous project?

    No.  I have a number of items in the Event Library.  I am trying to move some of them to the Project Library and when I do it attaches itself to the other project I have there.

  • How to add users/entry in the oracle internet directory using XML file

    hi friends,
    i need to know how to add entries, attributes in the oracle internet directory using the XML file.

    I could able to execute the ldapadd command with out error as
    ldapadd -h islch-532.i-flex.com -p 389 -D "cn=orcladmin" -w password -X mypath/filename.xml
    but the data entry is not added in OID. can any one help me out.

  • How to find the location of controller class file on the server

    Hi OAF Experts,
    We have a extended controller in which we are making some changes. We have compiled the java file.
    Now we want to deploy the .class file on the server. When we search on the server where we need to deploy the class file, we find two to three paths. Is there a way from which we can decide which path is actually referred ?
    Is there a front end page available from where we will be gettng these details??
    Regards
    Samarth

    Hi,
    You can get the complete path from front end.
    On 'About this Page', there is a section for 'Business Components'. When you expand that, you can see all the controllers used with complete path.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Adding .class files to your project and making them work.

    Ok, im fairly new to java and having trouble understanding how to make importing of .class files work. Im using eclipse 3.2
    I have the files in a directory and I have gone to project->properties->java build path->libraries->add external class folder and pointed it to the correct place.
    Now, I am trying to use some of the classes it provides. I get no errors when creating the object with this code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    Before I did the add external class folder that code would error cause it didnt know what com.ECS was. Now it works fine. My problem is that when I try to use a class, it does not recognize it as a class. After doing the above code I have:
    itemRequest.setSearchIndex("Books");
    its giving me an error on the period, saying: "Syntax error on token(s), misplaced construct(s)". Its not seeing that it is a class, so I can't use it. But when I am creating the object I get no errors. For reference, here is the chunk of code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    itemRequest.setSearchIndex("Books");
    the second line of which errors. So my question is, how do I get it to recognize that the itemRequest is a class when I have imported the .class files to my project already?

    It's working fine. It's just that you have to put your code in a method.

Maybe you are looking for

  • Error while log in to amconsole

    please tell a solution of the following error while log in to amconsole A serious error has occured in the Desktop. This may have been caused by a mis-configuration on the server. Please report this problem to your administrator. Possible cause: * Yo

  • Maximum record limit for internal table

    hello all, can any one tell me what is the maximum limit of internal table. i would like to add all records from bseg to internal table. so i can improve processing time. thanks, raj

  • HT201303 Help Me!!My Apple ID has been disabled.

    Dear You When I buy an application on the apple store would don't buy .I hope to continue to use the account to buy applications on the apple store Thanks you somuch! <Email Edited by Host>

  • Schedule Module program in Background with Dynamic Input values ?

    Hi, I am trying a schedule a Standard Transaction which has Month,year and other Check boxes (By default they are Empty) .I need to schedule it monthly and Input must change dynamically when I run in background each month.. How do we do this? Regards

  • Maximum Series in a Stacked Column Graph

    It appears that the maximum number of series you can display in a stacked column chart is 15. Is this configurable?