I am getting this package does not exists , i want to write into excel shee
import java.io.*;
import java.util.*;
import java.sql.*;
import org.apache.poi.hssf.usermodel.*;
class Custprofile
public int makeFile(String path) {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
HSSFRow row = null;
HSSFCell cell = null;
Connection con = null;
int j=0,k=2,value=0;
/* String fromDate = SchDate.getYestDate(0) + " 00:00:00";
String toDate = SchDate.getYestDate(0) + " 23:59:59"; */
// String heading =linkType+"From";
try {
HSSFFont boldFont = wb.createFont();
boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
HSSFCellStyle boldStyle = wb.createCellStyle();
boldStyle.setFont(boldFont);
// create a row for heading
row = sheet.createRow((short)0);
cell = row.createCell((short)0);
// GREEN BOLD value
boldFont.setColor((short)17);
cell.setCellStyle(boldStyle);
//cell.setCellValue(heading);
/*cell = row.createCell((short)0);
cell.setCellValue(linkType);
cell = row.createCell((short)1);
cell.setCellValue(" Link Down ");
cell = row.createCell((short)2);
cell.setCellValue("Time Report ");
cell = row.createCell((short)3);
cell.setCellValue("From: ");
cell = row.createCell((short)4);
cell.setCellValue(fromDate);
cell = row.createCell((short)5);
cell.setCellValue(" To: ");
cell = row.createCell((short)6);
cell.setCellValue(toDate); */
// leave second row empty
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
/* the next 3 lines are Step 2 method 2 from above - you could use the direct
access method (Step 2 method 1) istead if you wanted */
String dataSourceName = "mdbTEST";
String dbURL = "jdbc:odbc:" + dataSourceName;
con = DriverManager.getConnection(dbURL, "","");
Statement stmt = con.createStatement();
String query = "Select * from empid";
ResultSet rs = stmt.executeQuery(query);
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
String query1 = "Select * from empid";
Statement stmtn = con.createStatement();
ResultSet rs1 = stmtn.executeQuery(query1);
if(rs1.next())
value = rs1.getInt(1);
System.out.println("number of columns::"+numberOfColumns);
System.out.println("number of rows:"+rs1.getInt(1));
for(int i=1; i <= numberOfColumns; i++)
row = sheet.createRow((short)0);
i--;
cell = row.createCell((short)i);
cell.setCellStyle(boldStyle);
i++;
cell.setCellValue(""+rsmd.getColumnLabel(i));
for(int i=1; i < value+1; i++)
rs.next();
boldFont = wb.createFont();
boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
boldStyle = wb.createCellStyle();
boldStyle.setFont(boldFont);
row = sheet.createRow((short)i);
for(int p=1;p<= numberOfColumns;p++){
int t = p-1;
cell = row.createCell((short)t);
cell.setCellValue(""+rs.getString(p));
catch(Exception e)
System.out.println(e);
Logging.addToLogFile("exporting into excel file exception"+e);
// create a row for fields
/*boldFont = wb.createFont();
boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
boldStyle = wb.createCellStyle();
boldStyle.setFont(boldFont);*/
/* row = sheet.createRow((short)2);
cell = row.createCell((short)0);
cell.setCellStyle(boldStyle);
cell.setCellValue("Name");
cell = row.createCell((short)1);
cell.setCellStyle(boldStyle);
cell.setCellValue("Start Date Time");
cell = row.createCell((short)3);
cell.setCellStyle(boldStyle);
cell.setCellValue("End Date Time");
cell = row.createCell((short)5);
cell.setCellStyle(boldStyle);
cell.setCellValue("Down Time"); */
//create rows for the data and insert the data into them
/* for(int i = 0, rowNum=3; i < vecRow.size(); i++ , rowNum++) {
boldFont = wb.createFont();
boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
boldStyle = wb.createCellStyle();
boldStyle.setFont(boldFont);
String r = (String)vecRow.get(i);
row = sheet.createRow((short)rowNum);
cell = row.createCell((short)0);
boldFont.setColor((short)39);
cell.setCellStyle(boldStyle);
cell.setCellValue(r);
cell = row.createCell((short)1);
String startDateTime = "hello how r u";
//SchDate.getDateDdMmYyyy(r.startDateTime);
cell.setCellValue(startDateTime);
cell = row.createCell((short)3);
String endDateTime = "i am fine";
//SchDate.getDateDdMmYyyy(r.endDateTime);
cell.setCellValue(endDateTime);
cell = row.createCell((short)5);
cell.setCellValue(r);
// Create the file
FileOutputStream fileOut = new FileOutputStream(path);
wb.write(fileOut);
fileOut.close();
} catch(IOException ie) {
System.out.println(ie);
/* making the excel file without using POI */
/*try{
PrintWriter pw = new PrintWriter(new FileOutputStream(path),true);
pw.println(message);
pw.close();
} catch(IOException ie) {
Logging.addToLogFile("Failed To Send Mail : "+ie+ie.getMessage());
//Constants.rootLogger.info("Failed To Send Mail : "+ie+ie.getMessage());
return value;
public void removeFile(String path) {
File remFile = new File(path);
remFile.delete();
public static void main(String a[])
excelfile ef = new excelfile();
Vector news = new Vector();
String v = "sasi";
news.add(v);
news.add(v);
news.add(v);
ef.makeFile("D:\\software\\d.xls");
//ef.removeFile("D:\\Barcodes\\");
}Here is the entire code i had placed the poi1/2/3.jar files in the classpath and i am compiling but i am getting 23 errors all related with that import org.apache.poi.hssf.usermodel.*; does not exist, wht shall i do, and i am using jdk 1.5 and my console is showing 1.3 version after typing java -version in console. reply asap.
Thank you for your responses. Your feedback was helpful. This is what I ended up doing for a solution:
DECLARE
v_JOBTYPE varchar2(8);
v_STATUS varchar2(8);
v_FAILURE varchar2(8);
v_CAUSE varchar2(8);
v_ACTION varchar2(8);
v_GROUP varchar2(30);
BEGIN
SELECT EVT_STATUS, EVT_FAILURE, EVT_CAUSE, EVT_ACTION, EVT_JOBTYPE, USR_GROUP
INTO v_STATUS, v_FAILURE, v_CAUSE, v_ACTION, v_JOBTYPE, v_GROUP
FROM R5EVENTS, R5USERS WHERE R5EVENTS.ROWID = :ROWID
AND USR_CODE = O7SESS.CUR_USER;
IF NVL(v_STATUS, 'X') = 'C' AND NVL(V_GROUP,'X') IN ('MTM','MTL','MTMGT','FTL','FTMGTS','PLANNER','DISPATCH','PMCOOR','R5') AND (v_FAILURE IS NULL OR v_CAUSE IS NULL OR v_ACTION IS NULL) THEN
RAISE_APPLICATION_ERROR( -20001, 'FAILURE, CAUSE AND ACTION FIELDS MUST BE POPULATED');
END IF;
END;
Similar Messages
-
Package does not exist error-message
When I try to compile a java servlet with the following piece of code I get a compilation error referring to the import statement.
I have just included the initial import statements. A large number of errors follow, as a result of this 'package does not exist error-message'.
Has anyone encountered this or any ideas?
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.* ;
import java.io.* ;
import java.sql.* ;
import com.ericsson.snf.mps.mppapi.mtlr.*;
The error messages come from the 'import com.ericsson.snf.........' statement.
I am trying to integrate ericsson software, into my application.
Thanks,
java-mobile-userThat's probably because you are trying to integrate j2me suff with j2se/ee. That won't work without los of extra work..
-
Package does not exist problem
Hello everyone:
I am a very new programmer student, and I'm having a problem I cannot seem to resolve. I am setting up a method for a JButton, and with the first inputs I'm getting a package does not exist error. Here is the code in question:
private void placeOrderJButtonActionPerformed( ActionEvent event )
double subtotal = 0.00;
// calculate subtotal
if ( hamburgerJRadioButton.isSelected() )
subtotal += 6.95;
else if ( pizzaJRadioButton.isSelected() )
subtotal += 5.95;
else
subtotal += 4.95;
// declare display format
DecimalFormat dollars = new DecimalFormat( "$0.00" );
// display subtotal
subtotalJTextField.setText( dollars.format( subtotal ) );
It is coming back with these errors:
C:\Users\Brian\Desktop\LunchOrderForm.java:255: <identifier> expected
subtotalJTextField.setText( dollars.format( subtotal ) );
^
C:\Users\Brian\Desktop\LunchOrderForm.java:255: package subtotalJTextField does not exist
subtotalJTextField.setText( dollars.format( subtotal ) );
I declared subtotalJTextField as an instance variable, but I'm not sure what its telling me here. Could anyone help?When you post code, click on the "code" label and paste the code between the code tags.
rnashting wrote:
// display subtotal
subtotalJTextField.setText( dollars.format( subtotal ) );
It is coming back with these errors:
C:\Users\Brian\Desktop\LunchOrderForm.java:255: <identifier> expected
subtotalJTextField.setText( dollars.format( subtotal ) );
^It appears that the line with the error is not inside a method. Java does not allow you to write code like this outside a method (or an initializer block).
C:\Users\Brian\Desktop\LunchOrderForm.java:255: package subtotalJTextField does not exist
subtotalJTextField.setText( dollars.format( subtotal ) );
I declared subtotalJTextField as an instance variable, but I'm not sure what its telling me here. Could anyone help?I can't tell from the code you posted where this problem is. You most likely have not declared subtotJTextField correctly. -
Import statement reports 'package does not exist'
I am seeing another odd error. I'm working on learning how to read and write to text files, and I have 2 errors reported, but one is obviously caused by the other. My package is labeled as such (copy>paste of package line):
package michaelchristopherp4db;
and the import line is this (copy>paste again):
import michaelchristopherp4db.ProductRecord;
However, Netbeans looks at the import and flags it red, saying package michaelchristopherp4db does not exist. this caused my line:
ProductRecord product = new ProductRecord();
to also be flagged in red as it cannot find the ProductRecord class. However, it has no problems with any of the product.get* method calls. Thank you in advance for any ideas or input.
here is the full code of the file reporting the errors.
* To change this template, choose Tools | Templates
* and open the template in the editor.
package michaelchristopherp4db2;
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.IllegalStateException;
import java.lang.SecurityException;
import java.util.NoSuchElementException;
import java.util.Formatter;
import java.util.FormatterClosedException;
import java.util.Scanner;
import michaelchristopherp4db.ProductRecord;
/* @author info
public class readTxt
private Scanner txtfile;
private Formatter wishList;
private Formatter giftIdeas;
private Formatter priceError;
//let user open file
public void openFile()
{//open method openFile
try
{//open try block
priceError = new Formatter("priceerror.txt");//open object for items with invalid prices
giftIdeas = new Formatter("giftideas.txt");//open object for gift ideas
wishList = new Formatter("wishlist.txt");//open object for wish list
txtfile = new Scanner(new File("products.txt"));//tell the compiler which file to use for input
}//close try block
catch (FileNotFoundException fileNotFoundException)
{//open file not found catch block
System.err.println("Error opening or creating file.");
System.exit(1);
}//close file not found catch block
catch ( SecurityException securityException )
{//start catch for SecurityException
System.err.println("File Write access is denied.");
System.exit(1);//END PROGRAM
}//end catch
}//close openFile method
public void readProducts()
{//open readProducts method
ProductRecord product = new ProductRecord();//create object to hold read data
//print headers for for output columns
System.out.printf("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
try //read records from the file
{//open try block
while (txtfile.hasNext())
{//open while
product.setproductID(txtfile.nextInt());//get productID
product.setproductName(txtfile.next());//get product name
product.setproductPrice(txtfile.nextDouble());//get product price
//print collected product details
System.out.printf("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
if (product.getproductPrice()>50.0)
{//open if to store items $50 or more to wishlist.txt
wishList.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close if $50 or greater
else if (product.getproductPrice()<0.0)
{//open if less than zero
priceError.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close if less than zero
else
{//open else for gift ideas from $0 to $50
giftIdeas.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close else for gift ideas
}//close while
}//close try block
catch (NoSuchElementException elementException)
{//open no such element exception catch
System.err.println("File improperly formed.");
txtfile.close();//close text file
System.exit(1);
}//close no such element exception catch
catch (IllegalStateException stateException)
{//open illegal state exception catch
System.err.println("Error reading from file.");
System.exit(1);
}//close illegal state exception catch
}//close readProducts method
//close file and end application
public void closeFile()
{//open closeFile method
if (txtfile != null)
txtfile.close();//close file
}//close closeFile method
}//end application readTxtAnd the code at the top of the class I am trying to import (so you can see the package I am trying to import)
* To change this template, choose Tools | Templates
* and open the template in the editor.
package michaelchristopherp4db;
* @author
public class ProductRecord {I am embarrassed to admit this, but I am completely lost on the last question.. I have no clue wether it is a convenience for development or a dependancy, as I have not learned those terms or distinctions yet. For now I copied the ProductRecord file into my new project folder and renamed it's project line to match the new project name. However, while that eliminated the package does not exist error, and netbeans reports no errors now, when I run the program it does not write the new files. I have made some modifications to the code tryiing to get it to write properly but so far no luck in makingit work. Here is the current version of the file not running right.
* To change this template, choose Tools | Templates
* and open the template in the editor.
package michaelchristopherp4db2;
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.IllegalStateException;
import java.lang.SecurityException;
import java.util.NoSuchElementException;
import java.util.Formatter;
import java.util.FormatterClosedException;
import java.util.Scanner;
/* @author
* Michael Christopher
* IT215-1004D-03
* December 30, 2010
* Phase 4 DB 2
public class readTxt
private Scanner txtfile;
private Formatter wishList;
private Formatter giftIdeas;
private Formatter priceError;
//let user open file
public void openFile()
{//open method openFile
try
{//open try block
priceError = new Formatter("priceerror.txt");//open object for items with invalid prices
giftIdeas = new Formatter("giftideas.txt");//open object for gift ideas
wishList = new Formatter("wishlist.txt");//open object for wish list
txtfile = new Scanner(new File("products.txt"));//tell the compiler which file to use for input
}//close try block
catch (FileNotFoundException fileNotFoundException)
{//open file not found catch block
System.err.println("Error opening or creating file.");
System.exit(1);
}//close file not found catch block
catch ( SecurityException securityException )
{//start catch for SecurityException
System.err.println("File Write access is denied.");
System.exit(1);//END PROGRAM
}//end catch
}//close openFile method
public void readProducts()
{//open readProducts method
ProductRecord product = new ProductRecord();//create object to hold read data
//print headers for for output columns
wishList.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
giftIdeas.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
priceError.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
try //read records from the file
{//open try block
while (txtfile.hasNext())
{//open while
product.setproductID(txtfile.nextInt());//get productID
product.setproductName(txtfile.next());//get product name
product.setproductPrice(txtfile.nextDouble());//get product price
if (product.getproductPrice()>50.0)
{//open if to store items $50 or more to wishlist.txt
wishList.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close if $50 or greater
else if (product.getproductPrice()<0.0)
{//open if less than zero
priceError.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close if less than zero
else
{//open else for gift ideas from $0 to $50
giftIdeas.format("%-10d%-12s%10.2f\n", product.getproductID(),
product.getproductName(), product.getproductPrice());
}//close else for gift ideas
}//close while
}//close try block
catch (NoSuchElementException elementException)
{//open no such element exception catch
System.err.println("File improperly formed.");
txtfile.close();//close text file
System.exit(1);
}//close no such element exception catch
catch (IllegalStateException stateException)
{//open illegal state exception catch
System.err.println("Error reading from file.");
System.exit(1);
}//close illegal state exception catch
}//close readProducts method
//close file and end application
public void closeFile()
{//open closeFile method
if (txtfile != null)
txtfile.close();//close file
}//close closeFile method
}//end application readTxtwith the System.out.printf lines in the ReadProducts method it would properly print to screen all of the elements in the products.txt file, it is not outputting to the other .txt files at all. I will be exploring the closeFile method in case the error is due to not closing all of the files in that method, but does anyone else see what might cause it not to output the data to the appropriate .txt files? -
Weird.. package does not exist
I know this is a common question and i searched the forum but nothing there is what I need.
First of all I have the 'main' source file under a directory: d:\Model1_SecurityService\
There is a subdirectory securityservice, under which there are several other directories according to the packages I have.
Another directory I have is: d:\Model1_Classes
When I compile the main program from d:\Model1_SecurityService> typing the following: javac -d d:\Model1_Classes testmain.java
When I do this, i get an error message saying package does not exist for each package I import in the main file.
My classpath has d:\Model1_Classes in it and my path has .; etc.
Anyone know what the problem is?
Everything used to work but i continued working on another computer and after copying these changes to this one, i'm getting these errors...So, for example if you had a class Baz in package
com.foo.bar and you're using d:\Model1_Classes as your
root directory for your compiled code, then there
should be a directory structure
d:\Model1_Classes\com\foo\bar
which contains the compiled class Baz.class. Is this
what you have?yes
I found the problem though, apperently i need . in my classpath as well; don't know why actually, but it works now.
thanks for wanting to help though -
FTPClient Package does not exist?
I have an FTP program. I'm trying to use this package. Here is a link to the class package overview:
http://www.enterprisedt.com/downloads/ftp/doc/com/enterprisedt/net/ftp/FTPClient.html
When I attempt to compile, I get the error that the package does not exist. I am importing these packages:
import java.lang.Object.*;
import java.lang.*;
// This package causes the error
import com.enterprisedt.net.ftp.FTPClient.*;
Is there something I need to download, or some other package to import?
Thanks,
LoganHi,
I finally found the ftp.jar and downloaded it and put it in the /j2se/jre/lib/ext.
I can now compile with this import line:
import com.enterprisedt.net.ftp.*;
Now my problem is trying to get this to work:
String server = "192.168.1.100";
String user = "logan";
String passwd = "passwd";
try {
FTPClient ftp = new FTPClient(server);
} catch (IOException ex) {
System.out.println("Caught exception: "+ex.getMessage());
But I get this error when compiling:
unreported exception blah blah must be caught or declared to be thrown
Thanks.
- Logan -
Imported package does not exist
Hello
I'm importing a package com.borland.jbcl.layout.* into my java
program to do some GUI layout but kept getting the error that the package does not exist. Can someone explain why and the solution to this problem please?
Thanks
DannyIf the class you are trying to import is in a .jar file, you need to add the jar to your classpath CLASSPATH=c:\dir1\...\MyJar.jar. If the file is in a directory you need to include the base directory in the classpath CLASSPATH=c:\basedir
-
Compiler exception - package does not exist?
I am new to NWDS and J2EE. I followed the steps in the tutorial as indicated in the below link:
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/netweaver-application-server/_netweaver-application-server/a-c/Creating%20your%20First%20J2EE%20Application.pdf
I did everything inside up to the last moment after I deployed my EAR and tried to run from the portal but got Application error. I checked the defaultTrace log file from the portal server and notice these errors:
#1.5 #001A6431E0FE0020000000750000155C0004B9B284863A19#1330076285575#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/CalculatorEar#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##40C36AF65ECB11E18721000000978DDA#40c36af65ecb11e18721000000978dda-0#40c36af65ecb11e18721000000978dda#SAPEngine_Application_Thread[impl:3]_21##0#0#Error#1#/System/Server/WebRequests#Plain###application [Calculator] Processing HTTP request to servlet [jsp] finished with error.
The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:41: package com.sap.examples.calculator.beans does not exist
com.sap.examples.calculator.beans.CalcProxy calc = null;
^
G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:42: package com.sap.examples.calculator.beans does not exist
calc = (com.sap.examples.calculator.beans.CalcProxy)pageContext.getAttribute("calc", PageContext.SESSION_SCOPE);
^
G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:48: package com.sap.examples.calculator.beans does not exist
calc = (com.sap.examples.calculator.beans.CalcProxy) Beans.instantiate(getClass().getClassLoader(), "com.sap.examples.calculator.beans.CalcProxy");
^
3 errors
The thing I don't understand is the "comp.sap.examples.calculator.beans" class has already been included inside the EAR (I used my zip tool to check the EAR file and confirmed it's there), why did the compiler still complain that the package does not exist? Any great guys & gals out there can help this poor newbie who spent the past 5 hours searching for Google for answers but couldn't find any??
Thank you.
BrianPerhaps I should give out more information about this problem.
The EAR file contains a WAR file and a JAR file.
The WAR file contains a JSP and it contains codes to refer to a java proxy class of package comp.sap.examples.calculator.beans.CalcProxy.
So it seems the compilation error is triggered when it tries to compile the WAR file.
I checked the structure of the WAR file using a zip tool.
At the base it contains this:
WEB-INF (a folder)
Calculator.jsp (the JSP file)
Inside the WEB-INF folder is these:
classes (a folder)
web-j2ee-engine.xml
web.xml
Inside the classes folder is a tree of subfolders to describe the structure of the CalcProxy class:
classes -> comp -> sap -> examples -> calculator -> beans -> CalcProxy.class
So the java class file and the JSP file is in the same bundle of the WAR file.
Why the compiler is not able to find the class file inside the JSP? -
Error: microedition.io.* package does not exists
Been at this for a few days...frustration...funny.
Using JDK 1.6 NetBeant 6.8 with WTK 2.5.2 on XP
Was able to resolve the javax.bluetooth.* package does not exists and xylostudio by doing the following to add the libraries to the project file.
1) Tools > Libraries
2) in the pop up Library Manager window click 'New Library'
3) in the pop up New Library window typed 'bluetooth' > OK
3) highlight 'bluetooth' in Library Manager scroll menu on left
4) click add JAR/Folder
5) added jsr082 from C;\WTK2.5.2_01\lib\jsr082.jar
6) click OK
7) right click project and select properites
8) highlight the library node under Categories on the left side of the Project Properties window
9) 'Add Library' created 'bluetooth'
10) click OK
When the process was followed to resolve the microedition.io.* package does not exist error it was unsuccessful.
The difference in the two processes being New Library name: 'microedition' and added jsr75, MIDPapi20, jsr118, then MIDPapi21 with no resolution to the errors.
Also add the jsr75, MIDPapi20, jsr118, and MIDPapi21 directly to the project by clicking the 'Add JAR/Folder' button in the Project Properties window.
Here is the Output:
init:
deps-clean:
Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-clean.properties
Deleting directory C:\Scholastic\4340MS\REU\ItsAForum\build
clean:
init:
deps-jar:
Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build
Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-jar.properties
Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\classes
Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\empty
Compiling 8 source files to C:\Scholastic\4340MS\REU\ItsAForum\build\classes
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:8: cannot find symbol
symbol : class Connector
location: package javax.microedition.io
import javax.microedition.io.Connector;
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:9: cannot find symbol
symbol : class StreamConnection
location: package javax.microedition.io
import javax.microedition.io.StreamConnection;
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:10: cannot find symbol
symbol : class StreamConnectionNotifier
location: package javax.microedition.io
import javax.microedition.io.StreamConnectionNotifier;
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:19: cannot find symbol
symbol : class StreamConnectionNotifier
location: class mobile.communication.Server
private StreamConnectionNotifier server = null;
^
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:20: cannot find symbol
symbol : class StreamConnection
location: class mobile.communication.Server
private StreamConnection connection = null;
^
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
symbol : class StreamConnectionNotifier
location: class mobile.communication.Server
server = (StreamConnectionNotifier)Connector.open(URL);
^
C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
symbol : variable Connector
location: class mobile.communication.Server
server = (StreamConnectionNotifier)Connector.open(URL);
^
7 errors
C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:413: The following error occurred while executing this line:
C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:199: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 4 seconds)
any information would be much appreciated. Thanks,
LDBy completing the process shown in below link and adding the bluecove jar file directly to the project as of the reply post suggests, all compilation errors were corrected.
http://forums.netbeans.org/viewtopic.php?t=22823&start=0&postdays=0&postorder=asc&highlight=microedition
Thanks me for point me in the right direction,
Me is happy. -
Import javax.mail package does not exists
Hi,
when i tried to compile the source code for email using jdk1.3.1, it compiled fine. but when i tried to compile using jdk1.4.., it had the following errors such as
import javax.mail package does not exists,
import javax.mail.internet package does not exists
package javax.activation does not exist
Is it because of the jdk version problem???
Pls help meI have the same problem with javax.ejb
Now i've downloaded and installed the j2ee and set my classpath to the j2ee.jar. I've had to make a new path cause i'm running XP.
This doesn't work.
to compile it in Jcreator or JBuilder I can make it work by adding this package (j2ee.jar) in the project settings - required libraries.
But I have to do this for every project again and again.
I can make it work but i thougt the classpath would be enough ??
Bassegio -
Package does not exist when compile in Jgrasp 1.8.3
I have a package called jpb stored in a folder called jpb. The package has two files SimpleIO.java and Convert.java. My program has 1 of the line like this
import jpb.*;
I put the path and classpath in Jgraps pointing to the folder jpb but when I compile the program, it keeps saying the package does not exist. Even when i took all the files outside and place it in the same folder with the file that i am compiling. It says that bad class file. The heck?????????.
Can some1 please help. I even made an autoexec.bat to set up the path to the folder and run it. it keeps saying the package does not exist.Classpaths reference things like jar files or directories that contain .class files. Change your classpath to have the .jar files.
-
Import javax.servlet.* gives error "package does not exist"
I am working through Monica Pawlan's book "Essentials of Java PL".
My PC runs Windows2000 prof. I have downloaded and installed j2sdk-1_3_1_01-win.exe in c:\jdk1.3.1_01
I have downloaded and installed tomcat4.0 (jakarta-tomcat-4.0.zip) into c:\jakarta-tomcat-4.0
CATALINA_HOME is set to c:\jakarta-tomcat-4.0 and CLASSPATH is set to .;C:\jakarta-tomcat-4.0\common\lib\servlet.jar
I can compile an applet starting:
import java.awt.Color;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
//Class Declaration
class SwingUI extends JFrame implements ActionListener { ... }
but trying to compile my servlet starting:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ExampServlet extends HttpServlet { ... }
gives me the error (import javax.servlet.*) "package does not exist".
Any pointers on this immediate problem? and is my book out of date?
Many thanks,
James TowellYou downloaded the Java 2 SDK Standard Edition, but you need to also download the Enterprise Edition if you want to write programs that use enterprise features.
-
Import com.sun.javafx.mediabox.*; package does not exist
hi,
i am using netbeans 6.7.1 with javafx inside
i saw alot of example from sun using import com.sun.javafx.mediabox.;* and import com.sun.fxmediacomponent.*;
however in netbeans when i try to import either this 2 import
it say that package does not exist
can someone help me ?
thanks alotIt is possible to create New Project ->Samples-> JavaFX -> Media Box sample in NetBeans, built it and use it as library for a media project.
-
E print app on my phone says this printer does not exist.
I'm trying to add my printer to my app on my phone and I keep getting the error "This printer does not exist or you do not have access to it"
I went to the HP Connect site and it shows my printer is online and ready to use. I've checked to make sure everything was updated. I'm not sure what I am doing wrong.
Here is some additional info just in case
HP Envy 5530
Windows 7 64 bit
Thanks
This question was solved.
View Solution.Hi @mcmoran2004
Welcome to the HP Support Forums. I understand that you are getting an error message when trying to add your printer to your HP ePrint app on your mobile device.
If you are getting that error message when trying to add the printer to the app using the printer’s ePrint email address, then please follow the steps below.
Please delete the app from your mobile device.
Please turn off your mobile device for a full 30 seconds then please power it back on.
Once your mobile device has completed its startup routine please download and install the app again.
Please activate the app using your personal email address.
After activating the app please try adding the printer by its ePrint email address.
If you still are getting any error message then, please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region.
Please let me know the outcome.
Regards,
Happytohelp01
Please click on the Thumbs Up on the right to say “Thanks” for helping!
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
I work on behalf of HP -
Getting Cost Center Does not exist error when executing BAPI_ACC_GL_POSTING
Hi Champs,
I am getting Cost Center Does not exist error when executing BAPI_ACC_GL_POSTING_CHECK.
But when I checked for the particular Cost center, it is mapped to the same company code the program has got executed.
Example:
Cost center 1000/150402 does not exist on 17.11.2009.
Cost center 1000/150402 does not exist
Cost center 1000/150402 does not exist on 17.11.2009.
Cost center 1000/150402 does not exist on 17.11.2009.
Please let me know if you have any guess on this. It is very critical issue for me.
Thanks for all your help in advance.
With Best Regards,
Ravi kanth YechuriUse 0000150402 not 150402 .
Rob
Maybe you are looking for
-
How to search all files in folders/subfolders for one or more strings?
I have a list of files (full path and file name) in Column D of my worksheet. I'm trying to figure out how to run some code to open each file in this array (starting on D14 and going down), search for one or more strings, and then put an "X" in Colu
-
My Denon 2112 AV reciever is having intermittent internet connect issues. Denon says to be sure port 10443 in my router is open. How do I check this and see if it is open on my vintage (ufo/dome shape) airport extreme?
-
Populate object form with already provsioned resource object's data
OIM Version: 9102 BP19 Scenario: We have to pre-populate resource object (ModifyObject) form fields with already provisioned resource object (ProvisionedObject) form fields which can be multi-instance resource. This provided data will be used modify
-
Hi All, Please anyone share me how to create BPM step by step wise? Regards Naveen
-
Is there a way to apply Time Remapping to multiple clips simultaneously?
Is there a way to apply Time Remapping to multiple clips simultaneously? I'd like to uniformly speed up and slow down two different clips that are playing in a picture-in-picture setup. I'm hoping there's a more elegant way to sync them up than just