Why i can't use import java...;

Hi,
i'm trying to compile a small piece of java program but the compiler tells me that some of the objects defined are unknown.
For example, i imported java.io.* and istanced TextFileReader fr = new TextFileReader();
Is there anybody able helping me?
Thanks man!

Hm...you're a bit new at this right? =).
Allright, this is what you gotta do:
if your're running Windows 98...find the autoexec.bat file and select to edit it.
there will be a variable called classpath. Here, you must add an entry (path) to where the rt.jar file is found.
Let us assume that you installed jdk directly on to c:\. The jar file is usually found in jre\lib\rt.jar
so, you would add the following line:
.;C:\jdk\jre\lib\rt.jar
you must have that set for any of your programs to work at all. I would recommend you simply write a program that prints hello...do this:
import java.io.*;
public class PathTester
public static void main(String[] args){
System.out.println("I'm working");
If this doesn't work...you're in big trouble =). Once this works, you're ready to go. Give it a shot.
Shrubz

Similar Messages

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Why I can't use javac? and why my program doesn't pop up cmd window?

    I have 2 questions here:
    1) I try to compile my HelloWorld.java using command prompt,
    javac HelloWorld.java
    But it won't work; by right it should create a HelloWorld.class. When I go to Configure/Options/JDK Profile, it is already showing JDK version 1.6.0_07. My environment variables show User variables and System variables with C:\Program Files\Java\jdk1.6.0_07\bin. This is where my JDK is stored, but I don't know why I can't use javac. It keep saying
    'javac' is not recognized as an internal or external command, operable program or batch file
    2) Why is it when I run my java script using JCreator, the print out appear in the box below in JCreator and not in command prompt? How can I make it pop up on command prompt window?

    Things tend to move fasterYep... until something goes wrong... then you're completely stuffed, because you have no idea what's actually happening, because the idjit IDE is hiding all the gory details... it doesn't even tell you what it's doing, let alone how it's doing it, or what to do when it fails.
    Another argument for the command line is that it's simple. There are 16 distinct dialogues involved in adding a new jar to a library in jBuilder... There may well be less than 16 characters in the equivalent edition to the equivalent build command line. That's an extreme case, I admit, but it goes to disprove the notion that IDE's are simpler for noobs.
    Also, it's easier to get help on command line usage... because it's all text based you can just copy & paste the problematic command and it's output, and the eggspurts (tm) can do likewise with a response... and there are limited number of command lines out there... and *nix, windows, and mac cover maybe 99.5% of java users... and the eggspurts are likely to know all three (colectively if not as individuals) fairly well, because they deal with them all day every day.
    My belief is that noob's are better off at the command line until such time as they need (not just want to play with) a visual debugger... at which time its time to download netbeans and eclipse, and see which one suits you better... if you have money to splurge I'd also evaluate intelliJ... But avoid jBuilder, 2008 is total carp! The FREE eclipse is (IMHO) "nicer to use", and it has a LOT less bugs.
    Cheers. Keith.

  • Why do we need to import 'java.lang.annotation' ?

    Hi All,
    Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
    Thanks in advance..
    Regards
    Karthikeya V

    Karthikeya wrote:
    Hi All,
    Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
    Thanks in advance..
    Regards
    Karthikeya VLet me explain that differently: packages on disc usually form a directory structure (but it is not a rule, elements of the same package structure can come from different jars). BUT, this does not automatically mean that packages to Java form some kind of hierarchy as well - they don't. java.lang and java.lang.annotation are simply two completely different, unrelated packages.

  • Why I Can't use procedure in select statement

    Why I Can't use procedure in select statement

    We can use function in select statement but we couldn't use procedure with one out parameters in select statement... You can use Function because they are designed for this but procedure are not. Functions can return value (without OUT parameter) which can be used in SELECT whereas procedures do not have such concept. As you can see in the above post you can not call even functions also if it has any out parameter.
    I have just trying to use procedure in select statement ..for this I require technical answer..The technical answer is because conceptually procedure is for doing set of operation, performning DMLs on the tables , whereas functions are for processing and producing a single result. Functions are basically for not using INSERT/UPDATE/DELETE in it. That is the reason they are allowed to be used in SELECT because conceptually they are not supposed to do any data changes.
    Regards,
    Avinash

  • Why i can't use iCloud tabs on my iPhone 4 ?

    Why I can't use iCloud tabs on my iPhone 4 ? I've surfed in internet With my iPod Touch 4g (ios 6) but i can't find the web pages in iCloud tabs of my iPhone 4. Please help me !

    Hey Snowy Nge,
    Thanks for the question. I understand you are experiencing issues with Personal Hotspot on your iPhone 4. The following article may help to resolve your issue:
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/TS2756
    Thanks,
    Matt M.

  • In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks

    In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks
    And please help me can type Laos font in it like andrio phone.

    Hi Cozumel,
    Thanks for posting. I'm sorry you're having problems with your bills. I can take a look at this for you. Drop me an email with your account details and a link to this thread for reference. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Can we use Essbase JAVA API in Hyperrion Planning

    Hi,
    I want to load data and extract data from Hyperion Planning applications. can i use Essbase Java APIs to do this Or is there any separate set of APIs available for Planning Applications ?
    Thanks a lot,
    Prince

    Hi John,
    I have following doubts regarding loading data to Hyperion planning by a custom connector
    1) Loading data to Hyperion Planning application using Essbase Java API would be possible at application layer (Hyperion Planning) or at database layer (loading data directly to essbase database) ?
    2) If we load data directly to essbase database how are we going to recognize which essbase server is connected with Hyperion Planning application ? Does user require to know in advance the underlying databse server ? Is there any API in Essbase or in Planning to connect to Planning application ?
    3) If we load data directly to essbase database how to find out Planning applications and essbase application ? In other words how to differentiate between essbase applications and Hyperion Planning appllications ? Or How to recognize Planning applications ? Is there any API in Essbase to find out this ?
    4) If we read data directly from Essbase how do we recognize data from a Planning application ?
    5) What is the difference between Classic planning application and EPMA planning application ? Can we develop a connector to work with both these flavour or type ?
    Please suggest.
    Thanks,
    Prince

  • Why I can't use a photo on the back cover in

    why I can't use a photo on the back cover in

    I'm assuming you're referring to the back cover of a book in iPhoto.  The reason is non of the themes have a photo on the back cover.  Some have a small photo on the back of the dust jacket.  Go to the back cover, click on it and check out the various layouts available.
    In the future include full sentences and specific information about what you're trying to accomplish, what versions of software you're using, etc. so we don't have to guess.
    OT

  • Why i can not use the ink 650 in the 3515 hp eprint,some body out there to help me out please...

    why i can not use the ink 650 in the 3515 hp eprint?somebody out there to help me please??

    Hi @ronjhay ,
    Thank you for taking the time out of your day to ask that question on the HP Forums today!
    I am having a bit of trouble understanding exactly what it is that you are asking, I apologize. Are you trying to use the number 650 ink cartridge in the printer? And it isn't fitting and you are asking why it isn't?
    Please clarify. Look forward to hearing back from you!
    I worked for HP.

  • Why i can't use my creative cloud,i pay the money this month.my order no is

    why i can't use my creative cloud,i pay the money this month.my order no is:
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]

    Try Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • I can't use "Import Web Service".

    Hi, I can't use "Import Web Service" in LabVIEW Web UI builder.
    I write IP:8080 and click on Connect.
    And it says "No Web ervices found on the server".
    Please help.

    I think I'm one step from finished application.
    So ... I've tried this building web service from tutorial and when I'm on the step when I have to deploy a Web Service to the Web Server I have a problem.
    I rightclick on My Web Service under "build specifications" and click to deploy and I get this message in attachment.
    My question is how can I start the web server ?
    Thanks in advance and I hope that after solving this I won't bother any of you anymore.
    Attachments:
    problem.JPG ‏99 KB

  • Why i can't use my visa card any more?

    why i can't use my visa card any more?

    That's a question only you and your bank can answer.

  • Why i can't use apple app store with my apple id?

    Dear All,
    why i can't use apple app store with my apple id?
    but I don't have Credit Card.My Country doesn't support.
    My Country is included in Apple OS X (10.9.2) but not in the billing.
    How could I download even free apps from Apple Apps store without using credit info?
    becoz I want to fill these brackets but iTune say me to fill it how can I?.........  
                                                                               Best Regards,
                                                                                destar77

    http://support.apple.com/kb/ht2534

  • I am in Thailand and have True internet is this why I can't use Face time. I get the message I have network problems when I log in.

    I am in Thailand and have True internet is this why I can't use Face time. I get the message I have network problems when I log in.

    Is the Face Time Service avabial in Thailand?

Maybe you are looking for

  • Error: itunes library file cannot be saved. you do not have enough...

    Last night this started popping up "itunes library file cannot be saved. you do not have enough access priviledges for this operation.". Nothing in my system or in itunes has changed. Anyone know what would cause this? Is it safe to import music into

  • 27" imac (2009) as a monitor

    Hello I have 2009 27" imac (i5 750) Can i use my imac as a monitor with Gigabyte H55M-USB3 equipped pc? It has onboard display port. But i dont know its supporting 2560px resolution. http://www.gigabyte.com/products/product-page.aspx?pid=3444#ov Plea

  • Images in ACR are softer than when viewed in Photoshop?

    Greetings, I'm finding that when I view a RAW image in ACR 4.1 that the image does not appear as sharp as when I open the image from ACR into Photoshop and view it in Photoshop. I open my RAW files from ACR into Photoshop as PSD files. The image as v

  • Core, Community and Database missing errors

    I'm installing using the mid December install disc and whenever I install the base system, use pacman -Sy or pacman -Syu i get this error, then it continues: warning: database file for 'core' does not exist      "     "                  "      'extra

  • Query help need

    Hi Need a querey      Emp_no     Dept_no     DAY_DIM_FROM_ID     DAY_DIM_TO_ID     system_last_updated_date      98871     1     1/1/1900     8/12/2007     8/13/2007 98871     2     8/13/2007     12/31/9999     8/13/2007      98871     3     8/13/200