Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: HOW TO UPLOAD JAVA FILES IN NETBEANS

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    5
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HOW TO UPLOAD JAVA FILES IN NETBEANS

    Maybe this is a very dumb question but my teacher sends us files with .java extension, which I can read with wordpad.

    I need a way to upload it to Netbeans quickly. What I did is:
    a) New Project - Created new project with the package name written in java file.
    b) New File - Java Class: Create different classes for each class created in java file, incluiding main file.
    c) Copying in each class (copy-paste) the code written for each class.

    This was annoying and susceptible to mistakes, so if there is a better way to upload java files to netbeans (from a .java file) please tell me.


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: HOW TO UPLOAD JAVA FILES IN NETBEANS

    I can't remember how Netbeans keeps track of which files are part of the project.

    Something you could try is to directly copy the files into your project folder. This works for most Java IDE's. Note that you may need to setup the folder structure to match the package structure.

  3. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: HOW TO UPLOAD JAVA FILES IN NETBEANS

    Moved thread to - Java IDEs
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. [SOLVED] Java app with Netbeans and Derby database
    By Kakashi in forum JDBC & Databases
    Replies: 3
    Last Post: March 17th, 2011, 02:35 PM
  2. How to execute a Java program independent of Netbeans.
    By ShaunB in forum Java Theory & Questions
    Replies: 4
    Last Post: January 19th, 2010, 06:23 AM
  3. java.net.HttpURLConnection:large file to upload
    By tommy_725 in forum Java Networking
    Replies: 1
    Last Post: October 28th, 2009, 11:53 AM
  4. Java ME / Netbeans : Device Name
    By Drakenmul in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: July 27th, 2009, 02:37 PM