Textpad user package does not exist ( classpath, autoexec)
hi,
I have searched 6 ways of sunday on this little fiasco...
can you help me sort this out...please..
I have added to my autoexec.bat
classpath=c:\jDevl;.;
my directory structure is
C:\jDevl\Junk1
\Date.java
\Car.java
\soldcar.java
//code for Car.java below
package CarPkg;
import DatePkg.*; //also tried import junk1.DatePkg, etc...
public class Car
{�.
When I compile Car.java, with textpad, I get the following error:
C:\jDevl\junk1\Car.java:3: package DatePkg does not exist
import DatePkg.*;
here is my Date.java code:
package DatePkg;
public class Date
which compiled fine�.
oo...
changed directory structure to:
c:\jDevl\junk1\CarsPkg\Car.java
c:\jDevl\junk1\DatePkg\Date.java << compiled ok
c:\jDevl\junk1\DatePkg\Date.class
c:\jDevl\junk1\SoldCar.java <<this class extends Car
I removed my CLASSPATH statement from autoexec.bat
because it seems to make no diff.
it was: CLASSPATH=C:\jDevl;.;
** i understand the concept that path only picks up .exe files
& i understand that classpath says where my packages are but...
it didnt seem to make any difference... i will pass along a heavy book you can throw at me (lol).
my Date class compiled fine� Date.class exists. in correct dir.
package DatePkg;
public class Date
in my Car.java file, I have tried various versions of
using the import statement, ALL DatePkg imports have failed.
C:\jDevl\junk1\CarPkg\Car.java:4: package DatePkg does not exist
import DatePkg.*;
package CarPkg;
//import jDevl.junk1.DatePkg.*;
//import DatePkg.*;
import junk1.DatePkg.*;
public class Car
cant compile this till I get CarPkg sorted!!
//import CarPkg.*;
//import DatePkg.*;
public class SoldCar extends Car
1. i guess i should add classpath back in, if so, how far do i reference the classpath? C:\jDevl or C:\jDevl\junk1
2. am i doing anything else wrong..?
your assistance appreciated.
Similar Messages
-
"package does not exist" CLASSPATH problem
Hi,
I don't know what's wrong with my CLASSPATH...
I have an applet with the following import statements:
import org.xml.sax.XMLReader;
import org.jdom.*;
import org.jdom.input.*;
I have 3 paths in my CLASSPATH:
.;c:\devtools\jdom-b8\lib\xerces.jar;c:\devtools\build\jdom.jar
So my 2 questions:
1) Why doesn't javac recognize the c:\devtools\build\ path?
2) Why does javac recognize whatever path leads to org.xml.sax.XMLReader?
Thanks for any suggestions or guesses.Thanks for taking a stab at helping me solve this.
I do have jdom.jar in my \build\ directory, as well as (now) in the \lib\ext\ directory of the jre installation. I'm going to tinker some more to try to make the original CLASSPATH work properly. I'll try using -classpath in my command-line. -
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.
-
Package does not exist even though I set classpath right!
Hi, my JSP got an error message saying "Package does not exist" at line
<% import ="org.jfreechart.*"%>
And I have put the myjar.jar file containing the above classes into blabla\WEB-INF\classes,(where blabla is my current working directory) and set my classpath= blabla\WEB-INF\classes
It does not either if set classpath= blabla\WEB-INF\classes\myjar.jar
Anybody could give suggestion? By the way I am using Tomcat.your .jar files should be in WEB-INF/lib
-
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 -
Hi there,
Using the MDK:
-I have set up my publication items
-added them to my publication
-used the packaging wizard to setup my application and attach it to the publication
-used the Oracle Mobile administrator to create a user.
-used the Oracle Mobile administrator to assign the user to the application.
On Win32, I download the WIN32 Setup and run it with the user and password.
It sets up the DMAgent, etc, and installs all of the oracle lite stuff into c:\mobileclient
Next, I run MSYNC.EXE with the user's name. It completes successfully. What happens next is very strange:
C:\Documents and Settings\allen>msql system/moogle@polite:tenchi_pman
Oracle Lite MSQL Version 10.3.0.1.0
Copyright (c) 1997, 2007, Oracle. All rights reserved.
[POL-5246] user SYSTEM does not exist
C:\Documents and Settings\allen>
Has anyone encountered this?
Thanks,
Allen
p.s. my environment details are as follows:
Mobile Repository Configuration
Operating System: Linux 2.6
Oracle Database: 10.2.0.3.0
Mobile Server Configuration (all the latest patches applied at this time)
Mobile Server Install Type: Standalone
Operating System: Microsoft Windows XP
Mobile Server: 10.3.0.1.0
Secure Socket Layer: No
Part of Web Farm: No
Java J2SE: 1.5.0_15
Mobile Client Configuration
Mobile Client Type: Windows 32
Operating System: Microsoft Windows XP SP2
Mobile Client: 10.3.0.1.0Is there a way for me to create the SYSTEM user in the Oracle Lite database, or is this error a symptom of a different problem?
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.CAT (TABLE_NAME, TABLE_TYPE) AS SELECT TABLE_NAME, TABLE_TYPE FROM SYSTEM."okClass" WHERE TABLE_TYPE IN ('TABLE', 'VIEW')
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_CONSTRAINTS (OWNER, CONSTRAINT_NAME, CONSTRAINT_TYPE, TABLE_NAME, SEARCH_CONDITION, R_OWNER, R_CONSTRAINT_NAME, DELETE_RULE, STATUS, VALIDATED) AS SELECT OWNER, CONSTRAINT_NAME, CONSTRAINT_TYPE, TABLE_NAME, SEARCH_CONDITION, R_OWNER, R_CONSTRAINT_NAME, DELETE_RULE, STATUS, VALIDATED FROM SYSTEM.POL__CONS
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_CONS_COLUMNS ( OWNER, CONSTRAINT_NAME, TABLE_NAME, COLUMN_NAME, POSITION) AS SELECT OWNER, CONSTRAINT_NAME, TABLE_NAME, COLUMN_NAME, POSITION FROM SYSTEM.POL__COLUSAGE
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.TABLE_PRIVILEGES ( OWNER, TABLE_NAME, GRANTOR, GRANTEE, GRANT_TYPE, GRANTABLE) AS SELECT OWNER, TABLE_NAME, GRANTOR, GRANTEE, GRANT_TYPE, GRANTABLE FROM SYSTEM.ALL_PRIVILEGES WHERE OBJECT_TYPE = 0
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.COLUMN_PRIVILEGES ( OWNER, TABLE_NAME, COLUMN_NAME, GRANTOR, GRANTEE, GRANT_TYPE, GRANTABLE) AS SELECT OWNER, TABLE_NAME, COLUMN_NAME, GRANTOR, GRANTEE, GRANT_TYPE, GRANTABLE FROM SYSTEM.ALL_PRIVILEGES WHERE OBJECT_TYPE = 5
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_VIEWS ( OWNER, VIEW_NAME, TEXT_LENGTH, TEXT) AS SELECT TABLE_SCH, TABLE_NAME, VIEW_LEN, VIEW_TEXT FROM SYSTEM."okClass" WHERE TABLE_TYPE IN ('VIEW')
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_TABLES ( OWNER, TABLE_NAME, TABLESPACE_NAME, CLUSTER_NAME, PCT_FREE, PCT_USED, INI_TRANS, MAX_TRANS, INITIAL_EXTENT, NEXT_EXTENT, MIN_EXTENTS, MAX_EXTENTS, PCT_INCREASE, BACKED_UP, NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN) AS SELECT TABLE_SCH, TABLE_NAME, CAST('OOT' AS VARCHAR(128)), CAST(NULL AS VARCHAR(128)), CAST(0 AS INTEGER), CAST(0 AS INTEGER), CAST(0 AS INTEGER), CAST(0 AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS VARCHAR(1)), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER) FROM SYSTEM."okClass" WHERE TABLE_TYPE IN ('TABLE')
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_TAB_COLUMNS ( OWNER, TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE, NULLABLE, COLUMN_ID, DEFAULT_LENGTH, DATA_DEFAULT, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE, IS_HIDDEN) AS SELECT COLUMN_SCH, TABLE_NAME, COLUMN_NAME, CASE TYPE_CODE WHEN -16 THEN 'NCLOB' WHEN -15 THEN 'CLOB' WHEN -14 THEN 'BLOB' WHEN -13 THEN CAST('LONG' AS VARCHAR(30)) WHEN -12 THEN 'NUMBER' WHEN -11 THEN 'ROWID' WHEN -10 THEN 'LONG RAW' WHEN -9 THEN 'RAW' WHEN -8 THEN 'TINYINT' WHEN -7 THEN 'LONG VARBINARY' WHEN -6 THEN 'VARBINARY' WHEN -5 THEN 'BINARY' WHEN -4 THEN 'BIGINT' WHEN -3 THEN 'LONG VARCHAR' WHEN -2 THEN 'REF' WHEN -1 THEN 'UNKNOWN' WHEN 1 THEN 'CHAR' WHEN 2 THEN 'NUMERIC' WHEN 3 THEN 'DECIMAL' WHEN 4 THEN 'INTEGER' WHEN 5 THEN 'SMALLINT' WHEN 6 THEN 'FLOAT' WHEN 7 THEN 'REAL' WHEN 8 THEN 'DOUBLE' WHEN 9 THEN CASE SUBTYPE_CODE WHEN 1 THEN CAST('DATE' AS VARCHAR(9)) WHEN 2 THEN 'TIME' WHEN 4 THEN 'TIMESTAMP' ELSE 'EMPTY' END WHEN 10 THEN 'INTERVAL' WHEN 12 THEN 'VARCHAR' WHEN 13 THEN 'VARCHAR2' WHEN 14 THEN 'BIT' ELSE 'EMPTY' END, CASE WHEN TYPE_CODE <> 9 THEN COL_PRECISION WHEN TYPE_CODE = 9 AND SUBTYPE_CODE = 1 THEN 8 WHEN TYPE_CODE = 9 AND SUBTYPE_CODE = 2 THEN 6 WHEN TYPE_CODE = 9 AND SUBTYPE_CODE = 4 THEN 15 ELSE CAST(NULL AS INTEGER) END, CASE WHEN TYPE_CODE NOT IN (-16, -15, -14, -13, -11, -10, -9, -7, -6, -5, -3, 1, 9, 12, 13) THEN COL_PRECISION ELSE CAST(NULL AS INTEGER) END, CASE WHEN TYPE_CODE IN (-12, 2, 3, 4, 5, 10) THEN COL_SCALE ELSE CAST(NULL AS INTEGER) END, CASE NULLABILITY WHEN 0 THEN CAST('N' AS VARCHAR(1)) ELSE 'Y' END, POSITION, CASE DEFAULT_LENGTH WHEN 0 THEN CAST(NULL AS INTEGER) ELSE DEFAULT_LENGTH END, CASE DEFAULT_LENGTH WHEN 0 THEN CAST(NULL AS VARCHAR(4096)) ELSE DATA_DEFAULT END, CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CASE ISHIDDEN WHEN 0 THEN CAST('N' AS VARCHAR(1)) ELSE 'Y' END FROM SYSTEM."okAttr" WHERE TABLE_TYPE IN ('TABLE', 'VIEW')
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.USER_OBJECTS ( OWNER, OBJECT_NAME, OBJECT_ID, OBJECT_TYPE, CREATED, LAST_DDL_TIME, CREATED_TIME, STATUS) AS SELECT SCHEMA_NAME, OBJECT_NAME, OBJECT_ID, CASE OBJECT_TYPE WHEN 0 THEN CAST('TABLE' AS VARCHAR(128)) WHEN 1 THEN 'VIEW' WHEN 2 THEN 'INDEX' WHEN 3 THEN 'SEQUENCE' ELSE 'SYNONYM' END, CAST(CREATED AS DATE), CAST(CREATED AS DATE), CAST(CAST(CREATED AS TIMESTAMP(0)) AS VARCHAR(128)), CAST('VALID' AS VARCHAR(128)) FROM SYSTEM.POL__ALLOBJ WHERE OBJECT_NAME NOT LIKE 'POL_%' AND SCHEMA_NAME IN (SELECT NAME FROM POL__SCHEMATA WHERE OWNER = USER)
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_USERS ( USERNAME, USER_ID, CREATED) AS SELECT USERNAME, USER_ID, CREATED FROM SYSTEM.POL__USERS
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_OBJECTS ( OWNER, OBJECT_NAME, OBJECT_TYPE, CREATED, STATUS) AS SELECT SCHEMA_NAME, OBJECT_NAME, CASE OBJECT_TYPE WHEN 0 THEN CAST('TABLE' AS VARCHAR(128)) WHEN 1 THEN 'VIEW' WHEN 2 THEN 'INDEX' WHEN 3 THEN 'SEQUENCE' ELSE 'SYNONYM' END, CAST(CREATED AS DATE), CAST('VALID' AS VARCHAR(128)) FROM SYSTEM.POL__ALLOBJ
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ACCESSIBLE_COLUMNS ( OWNER, TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE, NULLABLE, COLUMN_ID, DEFAULT_LENGTH, DATA_DEFAULT, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE) AS SELECT COLUMN_SCH, TABLE_NAME, COLUMN_NAME, CASE TYPE_CODE WHEN -4 THEN CAST('BIGINT' AS VARCHAR(128)) WHEN -3 THEN 'LONGVARCHAR' WHEN -2 THEN 'REF' WHEN -1 THEN 'UNKNOWN' WHEN 1 THEN 'CHAR' WHEN 2 THEN 'NUMERIC' WHEN 3 THEN 'DECIMAL' WHEN 4 THEN 'INTEGER' WHEN 5 THEN 'SMALLINT' WHEN 6 THEN 'FLOAT' WHEN 7 THEN 'REAL' WHEN 8 THEN 'DOUBLE' WHEN 9 THEN 'DATETIME' WHEN 10 THEN 'INTERVAL' WHEN 11 THEN 'VARCHAR' ELSE 'EMPTY' END, CASE WHEN TYPE_CODE IN (-3, 1, 11) THEN COL_PRECISION ELSE CAST(NULL AS INTEGER) END, CASE WHEN TYPE_CODE NOT IN (-3, 1, 11) THEN COL_PRECISION ELSE CAST(NULL AS INTEGER) END, CASE WHEN TYPE_CODE IN (2, 3, 4, 5, 9, 10) THEN COL_SCALE ELSE CAST(NULL AS INTEGER) END, CASE NULLABILITY WHEN 0 THEN CAST('N' AS VARCHAR(1)) ELSE 'Y' END, POSITION, CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER), CAST(NULL AS INTEGER) FROM SYSTEM."okAttr" WHERE TABLE_TYPE IN ('TABLE', 'VIEW')
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_INDEXES ( OWNER, INDEX_NAME, TABLE_OWNER, TABLE_NAME, TABLE_TYPE, UNIQUENESS) AS SELECT SCHEMA_NAME, INDEX_NAME, TABLE_SCHEMA, TABLE_NAME, CAST('TABLE' AS VARCHAR(10)), IS_UNIQUE FROM SYSTEM.POL__INDICES
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_IND_COLUMNS ( INDEX_OWNER, INDEX_NAME, TABLE_OWNER, TABLE_NAME, COLUMN_NAME, COLUMN_POSITION) AS SELECT SCHEMA_NAME, INDEX_NAME, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, INDEX_POSITION FROM SYSTEM.POL__INDICESDT
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_COL_COMMENTS ( OWNER, TABLE_NAME, COLUMN_NAME, COMMENTS) AS SELECT COLUMN_SCH, TABLE_NAME, COLUMN_NAME, COLUMN_COMMENT FROM SYSTEM."okAttr" WHERE COLUMN_COMMENT IS NOT NULL
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_TAB_COMMENTS ( OWNER, TABLE_NAME, TABLE_TYPE, COMMENTS) AS SELECT TABLE_SCH, TABLE_NAME, TABLE_TYPE, TABLE_COMMENT FROM SYSTEM."okClass" WHERE TABLE_COMMENT IS NOT NULL
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_SYNONYMS ( OWNER, SYNONYM_NAME, TABLE_OWNER, TABLE_NAME, DB_LINK) AS SELECT OWNER, SYNONYM_NAME, TABLE_OWNER, TABLE_NAME, CAST('NULL' AS VARCHAR(128)) FROM SYSTEM.POL__SYNONYM
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.ALL_SEQUENCES ( SEQUENCE_OWNER, SEQUENCE_NAME, MIN_VALUE, MAX_VALUE, INCREMENT_BY) AS SELECT SCHEMA_NAME, SEQ_NAME, MIN_VALUE, MAX_VALUE, INC_BY FROM SYSTEM.POL__SEQ WHERE SEQ_NAME NOT LIKE 'POL_%'
Tid=0f34, Statement Text:CREATE VIEW SYSTEM.DATABASE_PARAMETERS AS SELECT PARAMETER, VALUE FROM SYSTEM.POL__DATABASE_PARAMETERS
Does anything look amiss with this oldb_trc.txt file?
Allen -
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 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 -
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.
-
Urgent: Why org.apache.tomcat.* package does not exist?
i am writing some programs about ldap
my program code has used some packages as the followings
import org.apache.tomcat.core.*;
import org.apache.tomcat.util.*;
import org.apache.tomcat.util.xml.*;
i am using apache + tomcat4.1 server, jsdk1.4
i have set the classpath that contains all the jar files in $TOMCAT_HOME\common\lib
after setting the classpath, i compiled the code
it said the above packages does not exist
where should i find those packages?
Aren't they in the tomcat i installed?
PLX HELPfor example, i want to use the class
org.apache.tomcat.core.Context to create a class
object.Then you would want to:
import org.apache.tomcat.core.Context;
-or-
import org.apache.tomcat.core.*;
Note how that is different than your original:
import org.apache.tomcat.*;i just use as an example import org.apache.tomcat
but i cannot find org.apache.tomcat.core or even any org.apache.tomcat.*
so that means i havn't include the correct jar file in the classpath or no corresponding package are stored in the tomcat4.1
i just want to know what jar file contains such stuff.
i think it should be a silly problem. So there should be someone know it. -
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
-
RDS Gateway + Smart Card Error [ The specified user name does not exist.]
I have the following Windows Server 2008 R2 servers:
addsdc.contoso.com, AD DS Domain Controller for contoso.com
adcsca.contoso.com, AD CS Enterprise CA, CDPs/AIAs published externally.
fileserver.contoso.com, RDS Session Host for Administration enabled
rdsgateway.contoso.com, RDS Gateway enabled
tmgserver.contoso.com, 'Publishing' rdsgateway.contoso.com but with pass-through authentication
And the following Windows 7 PCs:
internalclient.contoso.com
externalclient.fabrikam.com
There's no trust between the domains, the external client is completely separate on the internet but the CA certificate for contoso.com has been installed in the trusted Root CA store. All servers have certificates for secure RDP.
I enrolled for a custom 'Smart Card Authentication' certificate with Client Authentication and Smart Card Logon EKUs from the CA, stored on my new Gemalto smart card using the Microsoft Base Smart Card CSP.
From internalclient.contoso.com, I can RDP to fileserver.contoso.com
using the smart card just fine with no certificate errors.
From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
via rdsgateway.contoso.com using a username and password just fine with no certificate errors.
From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
via rdsgateway.contoso.com using the smart card to authenticate to the gateway, and a username and password to authenticate to the end server, just fine.
BUT from when using a smart card to authenticate to the end server via the gateway, it fails with:
The specified user name does not exist. Verify the username and try logging in again. If the problem continues, contact your system administrator or technical support.
When I move the client into the internal network and try the connection again (still via the RDS Gateway), it works fine - the only thing I can think of is being outside the network and not being able to contact the AD DS DC for Kerberos is causing the issue
- but I'm pretty sure this is a supported scenario?
The smart card works fine internally, the subject of the certificate is the user's common name (John Smith) and the only SAN is
[email protected] which matches the UPN of the user account as it was auto-enrolled.
Does anyone have any ideas?I had a similar issue where I am using a smart card through a Remote Desktop Gateway. I had to disable Network Level Authentication (NLA) on the destination Remote Desktop Server. If anyone has another way around this, I'd appreciate hearing it. I'd prefer
to use NLA. -
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?
Maybe you are looking for
-
Hi friends I got the error while releasing the billing document to accounting, Posting keys for account determination for transaction EXD do not exist Message no. F5598 Diagnosis The posting keys necessary for account determination for transaction EX
-
Let me tell you....
....how much I love each and every one of you! I was having an issue with certian programs crashing randomally, but it only seemed to happen when I was using dhcpcd... a quick search of the forum caused me to check my lo interface, which had been com
-
Looks like there will be some learning at the "professional's" expense. It starts with four identical books ordered - a wedding - and yes - the wedding date on an inside page is wrong. Lesson 1 - they don't proof your text -- date was September 16, 2
-
Create JCO destination option not available
Dear All, I am trying to make a JCO connection in CE. However the buttons for "Create JCo Destination","Maintain JCo Destinations" are disabled. The status for built-in JCO destinations WD_MODELDATA_DEST WD_RFC_METADATA_DEST is shown as unknown. The
-
Error messages when trying to conform
Hi I keep getting the same error messages repeatedly when trying to conform in Soundtrack 2: An Unexpected Problem NSRangeException * -[NSCFArray objectAtIndex:]: index (11) beyond bounds (11) Any advice would be really appreciated. Warm regards Pete