Results 1 to 4 of 4
  1. #1
    arrebror is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default Brand new to Java coding, need help!

    Hi, im new to this java section.
    I have no idea what i am doing, but i just want to finnish this code, and making it work.

    I found this "java dropper" code, it's supposed to drop any kind of filetype from a url to my c: drive.

    I followed this tut, Moderator edit: removed irrelevant link
    When i save, and run the file. I get five errors.


    "
    --------------------Configuration: iDrop - JDK version 1.7.0_04 <Default> - <Default>--------------------
    C:\Users\Kungen\Documents\JCreator Pro\MyProjects\iDrop\src\dropper.java:24: error: class, interface, or enum expected
    import java.net.*;
    ^
    C:\Users\Kungen\Documents\JCreator Pro\MyProjects\iDrop\src\dropper.java:25: error: class, interface, or enum expected
    import java.io.*;
    ^
    C:\Users\Kungen\Documents\JCreator Pro\MyProjects\iDrop\src\dropper.java:26: error: class, interface, or enum expected
    import java.util.*;
    ^
    C:\Users\Kungen\Documents\JCreator Pro\MyProjects\iDrop\src\iDrop.java:11: error: class, interface, or enum expected
    import java.net.*;
    ^
    C:\Users\Kungen\Documents\JCreator Pro\MyProjects\iDrop\src\iDrop.java:12: error: class, interface, or enum expected
    import java.io.*;
    ^
    5 errors
    Process completed. "
    Last edited by DarrylBurke; 05-19-2012 at 01:37 PM. Reason: Removed spammy link

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Brand new to Java coding, need help!

    Without seeing your code, especially the lines around the errors listed above, it's kind of hard to help you, you think?

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: Brand new to Java coding, need help!

    There is some text before those 'import' statements and it's not a package declaration. That's what you get when you copy and paste a piece of code and you don't know what you're doing.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Brand new to Java coding, need help!

    Removed irrelevant link from the OP. When seeking help, post the code you tried here.

    Also, go through the Forum Rules -- especially the third paragraph.

    Guide For New Members
    BB Code List - Java Programming Forum

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. I am brand new to Java and am having trouble. Help!
    By injustpotato in forum New To Java
    Replies: 9
    Last Post: 03-21-2012, 04:25 AM
  2. Brand New To Java, what does it actually do?
    By Geslincm in forum New To Java
    Replies: 1
    Last Post: 11-10-2011, 07:14 PM
  3. Brand new to java ... window is closing
    By drw4d in forum New To Java
    Replies: 5
    Last Post: 03-20-2011, 05:48 PM
  4. BRAND new to Java (editor question)
    By hayden06f4i in forum New To Java
    Replies: 2
    Last Post: 10-20-2010, 10:11 PM
  5. Brand New to Java needs directions
    By NatasjaA in forum New To Java
    Replies: 13
    Last Post: 04-07-2008, 04:34 PM

Posting Permissions

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