Promblems with java.io

Advertisement
November 30

hi, I just put netbens on my computer and I'm trying to write a program that will allow me to calculate some statistics on a given text. However I keep falling down at the first hurdle, can anyone help?
import java.io;
public class textStatistics
public static void main(String[] args)
File file = new File("my_data");
FileInputStream fis = new FileInputStream();
the errors are as follows...
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Nikki\textStatistics\build\classes
C:\Documents and Settings\Nikki\textStatistics\src\textstatistics\textStatistics.java:1: cannot resolve symbol
symbol : class io
location: package java
import java.io;
C:\Documents and Settings\Nikki\textStatistics\src\textstatistics\textStatistics.java:6: cannot resolve symbol
symbol : class File
location: class textStatistics
File file = new File("my_data");
C:\Documents and Settings\Nikki\textStatistics\src\textstatistics\textStatistics.java:6: cannot resolve symbol
symbol : class File
location: class textStatistics
File file = new File("my_data");
C:\Documents and Settings\Nikki\textStatistics\src\textstatistics\textStatistics.java:7: cannot resolve symbol
symbol : class FileInputStream
location: class textStatistics
FileInputStream fis = new FileInputStream();
C:\Documents and Settings\Nikki\textStatistics\src\textstatistics\textStatistics.java:7: cannot resolve symbol
symbol : class FileInputStream
location: class textStatistics
FileInputStream fis = new FileInputStream();
5 errors
Can anyone help?

Advertisement

Replay

thank you, I thought I tryed that but I forgot a "."
Do you know whats wrong with this line?
FileInputStream fis = new FileInputStream();
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileInputStream.htmlLook at the constructors and you'll see.

View 7 Replies

Using jce with java 1.3.1

November 30

Hi, I use Java 1.3.1, jce 1.2.2 and eclipse. To include the packet added it with �Project/Properties/ Add External JARs� but when I compile the program I get the following errors: compile: [javac] Compiling 10 source files to D:\MyTemp\ZFProjectView\

View All Replies

How to do a program with java user intarface (internet app) and c++ core

October 11

I want to do a program to run on the internet with java but to run the mathematical core with c++ on a SUN machine. so, any help will be cool!, any tip about this subjet will be apreciate! my mail is [email protected] and [email protected] I am doing

View All Replies

Problem with java and pogo games

October 11

i use mozilla and now with the problems with java and hackers cannot play my pogo games,what can i do? i disabled my java i tried java 6 doesnt work or is not safe,what is a safe way to play games on pogo that use java?Oracle has released a Java 7 Up

View All Replies

Opening MS-DOS with Java

November 30

I'm involved in a college programming class with Java and I'm stumped. I need to create a Java program that is able to open the MS-DOS prompt window and run a Java program in it as well as add a MS-DOS command afterwards in order to catch the output.

View All Replies

The performance of management system with Java and MySQL

November 30

Hi all, I want to develop one management application with Java and MySQL. However I am not sure which is a good way to design the system. The system has to deal with customers' data in the database. Should I create objects for every customers when ap

View All Replies

How to launch a navigator with java

November 30

I would like to know how we can launch navigators such as Netscape, internet Explorer or Opera with java thanksNobody will answer you because of your appaling behaviour on the forum so far. I have to browse this forum in work, with colleugues around.

View All Replies

JDAPI problem with java 1.6 SR9 in AIX

November 30

Hi, i install Oracle Forms 11g R2 in AIX. My AIX server use IBM java 1.6 SR9. When i run JDAPI, i face this problem: *oracle.forms.jdapi.JdapiStatusException: jniinitialize: Failed to create new forms context*. but when i use java 1.6 SR8 or SR7 . it

View All Replies

Controlling eletronic devices with JAVA ( LEDS, MOTORS...)

November 30

All this week I try to find some help about how to control eletronic devices like leds using the parallel or serial port using JAVA. Using C it's very simple, but with JAVA, I guess that NOBODY do this kind of application... If I'm wrong, please, tel

View All Replies

How to upgrade Forms 11gR2 to use JAVA 7 after it was installed with JAVA 6

November 30

I recently installed Forms 11gR2 on a development server.  We are trying to have the latest versions of everything to migrate from Forms 10g and assure we have support for the next few years. Our platform has the following software configuration: Sol

View All Replies

I want to make an online radio with java

November 30

I want to make an online radio with java. Can someone point in the right direction in what I would need to know and do.you will have to learn about java media framework. And probably live audio streaming tooRead other 2 answers

View All Replies

Possible to make a dll with java?

October 11

I am completely new to Java. Is it possible to create a Windows style DLL with Java? I am working with one project written in VB.NET which needs to access functions in another project written in Java. Can anybody help me figure out how to do this?I'm

View All Replies

Never programmed with Java

November 30

Hello I have never programmed with Java, and dont know, what i can do, I use PHP, but, i am only a novice at it. I was wondering, is it possable to get data from a page, and put it into an image? if there is no data from the page, it will ask for the

View All Replies

Using SQL reporting services with java

November 30

how can i use Microsoft SQL Server reporting services with java? The idea is that we create the reports using Microsoft SQL Server reporting services. Then we have our web application where user will select one of those report, pass 0 or more argumen

View All Replies

Answers access with Java (to enable more complex reports)?

November 30

Hello and thanks for reading, I was wondering if there is a possibility to access BI Answers with Java (or an other procedural language) in order to realize more complex reports than what is possible with the graphical user interface. Is there an alt

View All Replies

Problem with java and yahoo games

October 11

hello everyone, i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please, i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me pl

View All Replies

Read "Qualified Range Key Generation" with Java API.

November 30

Hi guru, I use MDM 5.5 SP6. In MDM Console I read Qualified Range Key Generation it in "ADMIN -> Remote Systems -> Qualified Range". I have to get "Qualified Range Key Generation" with Java API. It's possible?Hi Rocco, I am also

View All Replies

Configure CRS2008 to using AD and Kerberos with Java application servers.

November 30

Hi All, I have configure CRS2008 to using AD and Kerberos with Java application servers. Domain Controller is installed on W2K3 Server. In addition, CRS2008 is installed on another W2k3 Server. I have create service account in domain controller: CMSA

View All Replies

Compliation issue with Java 1.5

November 30

Following Compilation warning is seen only with Java 1.5 for the code using JNI - /sw/CRFS/solaris2.8-sunpro5.3/THIRDPARTY_SUNSTUDIO9/0_0_3/bin/SUNWspro/prod/bin/stdlibfilt -stderr </tmp/c++filt.27205.1.err ld: warning: file /share/prime/JDK/jdk1.5.0

View All Replies

Portal Integration with JAVA ?

November 30

Hello All,        I've been working in the Portal for the past 1 Year. The work which I've done is : 1. Creation of BSP's in SAP 2. Create iViews in Portal accessing these BSP Applications.( BSP , IAC, URL,BW etc ) 3. Create Roles. Now I'm moved to o

View All Replies

Tags:

  1. reset dw fabrica iphone modelo a1418?
  2. j2ee batch file Pgm
  3. sap alv ADD_PROTOCOL_ENTRY save
  4. java development tools e.g. JCreator
  5. oracle r12 payable aging report gl date
  6. sap configure ke24
  7. SAP PI CPIC-CALL: ThSAPCMRCV
  8. ke30 restrict company
  9. cisco ise authentication failure
  10. 3HPL
Copyrights 2019 Fcffair BigData Resource, All rights reserved