Im using BlueJ, I want  to import a class from a path I set.

Hi, I'm using BlueJ and I want to import a class from a path I set.
Like this
import "C:\myfolder\*";
Instead of like this
import java.thing.*;
Any ideas why the above line is not working for me?

The import statement takes a class name or package name + .*, not a file name. It has nothing to do with files.
import package.name.ClassName; // to import a class
import package.name.*; // to import all classes in the package named "package.name"
You need to properly specify your classpath at compile-time as well as run-time.

Similar Messages

  • I want to import my favourites from IE but the import command in Firefox is greyed out

    I've just moed over from IE to Firefox and want to import my favourites from IE using the Firefox import command. But whatever I try I cannot get the import command under the File tab to "ungrey".

    In IE: <br />
    File > Import/Export - Export to HTML file
    ''then in Firefox:'' <br />
    Bookmarks > Organize Bookmarks -> Import & Backup - Import HTML... = From HTML file

  • I want to import short clips from home movies. How do I do this?

    I am wanting to import short clips from old family movies which are on DVD. What is the best program for this? I don't want to import the full DVD just several short clips and then be able to use these clips in imovie.

    You'll want to look at DVDxDV Pro.  It can select very small segments on a DVD using the expandable timeline.  This allows you to find exactly the part of the DVD that you want. It also has an iDVD export preset.
    This video shows you how to grab individual clips from the DVD.

  • Want to import jpeg file from mac to pages on mac

    want to import jpeg file from mac to pages on mac

    Two different macs? 
    Use AirDrop to transfer the file.  Then drag and drop it inot the Pages document.
    Same mac? 
    Drag and drop.

  • I have got an 4s phone and want to import my notes from my old 3G phone; does anybody has an idea how this can be done?

    i have got an 4s phone and want to import my notes from my old 3G phone; does anybody has an idea how this can be done?

    If you have a Mac, I know you can sync your notes with the Mail application using iTunes by going to the Info tab when you clikc on your iPhone under Devices. Other than that, you may just need to email the notes to yourself since the 3G cannot use iCloud to transfer them.

  • Hi All, I have new iphone 4s and want to import my contacts from my old Orange SIM (the contacts have all been copied to SIM). I enter the SIM and select "Import from SIM" in the settings -- Calendar, Contacts etc it look like Ok but nothing copied,helpp

    Hi All, I have new iphone 4s and want to import my contacts from my old Orange SIM (the contacts have all been copied to SIM). I enter the SIM and select "Import from SIM" in the settings --> Calendar, Contacts etc it looks like Ok but nothing copied,I tried hundreds of time and waited 2 day but still nothing and I again made sure that I do have the Contacts in the Microsim and it is there but cant import? dunno why???

    I have never used it, but have heard good things...
    http://www.littlemachines.com/

  • HT1386 i want to import my library from my ipod to itunes on my computer

    i want to import my library from my ipod to itunes on my computer

    Hey Hup42,
    Thanks for the question. Based on the information you have provided, the best option may be to operate multiple user accounts on your Wife’s computer. The following article outlines this solution, along with another solution of having multiple iTunes libraries:
    How to use multiple iPhone, iPad, or iPod devices with one computer
    http://support.apple.com/kb/HT1495
    Create multiple user accounts
    Do you share your computer with someone who has different tastes in music and media? You can create separate user accounts for each person who uses the computer. You can maintain separate, personalized iTunes libraries and customize each devices' sync settings accordingly.
    Mac OS X users
    Learn how to set up other user accounts.
    - OS X Mountain Lion v10.8
    - OS X Lion v10.7
    - Mac OS X v10.6 Snow Leopard
    Windows users
    Look in your computer's Help documentation to learn how to set up other user accounts. To find this information:
    1. Click the Start Menu and click Help or Help and Support.
    2. Enter "new user" in the Search field.
    3. Press Return.
    If you create multiple user accounts on one computer but want the same media to be available in iTunes for all users, you can share music between different accounts on a single computer.
    Thanks,
    Matt M.

  • HT4757 I want to import RAW files from my Panasonic Lumix GH3. Is there an Apple update for this?

    I have a Macbook Pro with 10.6.8 OS X & iPhoto 09. I want to import RAW files from my Panasonic Lumix GH3. Is there an Apple update for this?

    Hello tadgv,
    Mavericks, which is a free upgrade, supports your camera's RAW format.
    OS X Mavericks: Supported digital camera RAW formats
    http://support.apple.com/kb/HT5955
    OS X Mavericks
    https://itunes.apple.com/us/app/os-x-mavericks/id675248567?mt=12
    Cheers,
    Allen

  • Hi, I want to import my contact from icloud to my android phone, any ideas?

    Hi, I want to import my contact from icloud to my android phone, any ideas?

    SmoothSync for Android.

  • Must I use a converter program to import movie files from Canon powershot s95?

    Must I use a converter program to import movie files from Canon powershot s95?

    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    With Elements 11 you cannot.
    The SX60 HS was first supported in  Camera Raw 8.7 which is only compatible with Elements 13 and later.
    Options:
    Pay to upgrade to Elements 13
    Free option: download the Adobe DNG converter, convert all SX60 HS Raw files to DNG format then edit the DNGs in Elements 11
    Photoshop Help | Digital Negative (DNG)

  • Importing a class from another context?

    Hi JSP techies,
    Im using RESIN and having a simple problem of figuring out how to import classes from another context, if Im using the right word.
    ie.
    My .jsp files are under $home/resin/doc/test dir. And in the jsp file, I would like to import a servlet class or a plain java class. But the servlet classes and all other classes are located under $home/resin/webapps/project/WEB-INF/classes/a/b/c
    Hence when I say
    <% page import="a.b.c.*" %>
    I get an error saying "a" not found.
    1. When I say "servlet classes are in a different CONTEXT", is that right? or is it just another directory?
    2. How can I make the jsp file import the classes from the servlets class path?
    Note: Ofcourse, when I copy the package to the
    $home/resin/doc/WEB-INF/classes dir, everything works fine. But thats simply not an efficient way to get around. Could anyone clear my doubts on this regd.?
    Thanks in advance.
    Arun

    Oh... I get it now. I'm sorry, I had you poorly misunderstood. You are trying to import servlets from another web app or servlet context. I would suggest you put servlets that are common to all web apps in the system classpath and not tie them to any particular web app. In other words create a package directory structure from the system's root directory or any where outside of any web apps and point the system classpath to the beginning of that directory structure. I have a similar thing going with Tomcat. I have a folder in my root called Java_Class which is in my classpath. I build all common utilities in this directory. So I have a com/craig/web structure that holds my AppServlet which is in package com.craig.web. This servlet is visible to all web apps via the Windows classpath. Servlets particular to an application like say an MusicOrderProcess servlet would reside in a package under the webserverhome/webapps/MusicStore/WEB-INF/classes directory where webserver home is the home directory of the webserver you are using. I've tested this across webservers as well (orionserver and Tomcat) and it works.
    From the prompt you include in your posts I am guessing that you are running on UNIX. Move your common servlets out of their respective web apps and into a common directory structure. Configure the UNIX $CLASSPATH (or is it $classpath?) environment variable to point to this sturcture and you'll be on your way!
    Post again if you have more questions!

  • Want to import avchd footage from a media card into FCE.

    Trying to import avchd video from a media card into Final Cut Express. Panasonic DMC-ZS3 / FCE 4.0.1 / MBP 10.6.8. Have taken a look at the footage using a trial version of Pavtube MTS Converter.

    A further comment : this is AVCHD Lite, and there are several online recommendations for software to convert files for Mac. Any suggestions??

  • I don't want to import video clips from iPhoto!

    iMovie automatically imports video clips from iPhoto, and I don't need or want this to be done. I don't want to delete or move those clips from iPhoto, so is there a way to prevent the automatic transfer?

    Go to your Hotmail account on the web (NOT in mail), make a new folder (or folders) for the mail you want to keep and move the messages into it.
    Mail (and all other email clients) will download all messages in the inbox unless previously downloaded. That means downloaded with the client you are attaching now.
    Until that is done do not setup the account in mail.

  • I don't found "used model" after I imported proxy class from CAF

    Dear Everyone,
    I built up CAF knowledge skill by do follow the document in SDN and I've tried connect CAF and web dynpro together. This's document that I learned.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504540a4-fd0d-2a10-7c8e-c88289cf6457
    and I found some problem. as you see in Page 22. after I import proxy classes. I have to found something in used model popup as same as Page 23 , but I don't found anything in "selected model" popup and I check in "Used DCs". It has classes that same in Page 21.
    Can someone help me? Thank you in advance.
    Amnart.

    Dear Ayyapparaj and Everyone,
    Yes, I did. and I saw something will be my mistake.when I create new project. Do the domain has to be "SAP xApps" because I usually doesn't change it ( default is "Basis" )?
    I follow this document 3 times, but it still doesn't have classes in "used model" popup.
    Can you help me?Thank you in advance.
    Amnart.

  • I want to import a song from a shared library. Don't know where the "bottom of the itunes window" is to start the process

    I want to impoort a song from a shared library.
    Looking at the itunes help menu,
    it says at "the bottom of the itunes window" ----
    don't know where that is

    AND yea i afraid to sync my iphone and lose everything ;( i had everything perfect sync ing perfect ical,contacts,mail,apps and now sence new library I dont wana lose everything.....my hole life runs on my fone i need help bad

Maybe you are looking for

  • Can't Get Dual Monitors to Work

    My main monitor is connected via DVI and my second monitor is using a VGA cable.  I've tried just about everything and can't get the 2nd monitor to display.   When using AMD Catalyst Control Center, the "Detect Displays" section can only find my main

  • How to "delete" a user's photo in Spaces

    Hi, When a user deletes a photo in his/her profile, I want to use a default photo to replace his/her photo. Can I pass in an empty string, null string or a default photo to setJpegPhoto()? // ADFContext ADFContext adfCtx = ADFContext.getCurrent(); Se

  • How to create Dynamic field so it appears the file name

    Hi, I was wondering if anyone knows how to create a dynamic text field so it automatically appears the file name created of the document. thanks alot !!! Jack [email protected]

  • IPhoto for mac snow leopard

    Tried to update and even buy a new application but message is that it is damaged or sent by email--you know that one. Thing is my existing iPhoto won't email for me so something must have happened since I last used it which was probably a year ago. I

  • Imac 2009, 10.7.4, track pad cursor locks up and won't function

    My cursor has locked up the past few days. It won't function at all except to move around. I've had to do a hard shutdown and restart to get things working again. Any suggestions?