Cannot find package java.awt
hi,
i am trying to compile my project code and i keep on getting the following two errors " package java.awt does not exist " and " package java.awt.events does not exist " why is this happening? Is there any special classpath that needs to be set? Or any other thing? please help....
Are you importing using import java.awt.*; or import java.awt;
java.awt.events does not exist. Try java.awt.event instead.
Please post your import statements.
Similar Messages
-
Cannot find class java/lang/Thread
I'm getting this error trying to compile a program that I'm writing in java. Its a very simple program just to get me back to basics. Any ideas as to how I can fix this problem??
Extracted from Sun's website,
* Error Message: "Exception in thread NULL" or
"Unable to initialize threads: cannot find class java/lang/Thread"
If you are getting one of these fatal error messages when running java,
javac, or appetviewer, you should check your CLASSPATH environment variable.
It may list "c:\java" or the "classes" directory from an older release. You can either unset the CLASSPATH variable, or set it to
include only the latest version of the Java platform class library. For example:
C:\> set CLASSPATH=.;C:\jdk1.1.8\lib\classes.zip
This will make sure that you are using the correct classes for this release.
-- Sudha -
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Hi,
I am trying to build my project using ant tool, but it is erroring out as follows:
Buildfile: D:\My Software\eclipse\workspace\ShoppingCart\build.xmlprepare:compile: [javac] Compiling 2 source files to D:\My Software\eclipse\workspace\ShoppingCart\build\WEB-INF\classes [javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath BUILD FAILEDD:\My Software\eclipse\workspace\ShoppingCart\build.xml:46: Compile failed; see the compiler error output for details. Total time: 1 second Please find the build.xml:
<project name="Shopping Cart" default="compile" basedir="."> <property name="app.name" value="ShoppingCart" /> <property name="app.path" value="/${app.name}" /> <property name="app.version" value="0.1-dev" /> <property name="build.home" value="${basedir}/build" /> <property name="catalina.home" value="C:\Program Files\Apache Software Foundation\Tomcat 5.0" /> <property name="dist.home" value="${basedir}/bin" /> <!--<property name="docs.home" value="${basedir}/docs" /> --> <property name="manager.url" value="http://localhost:8080/manager" /> <property name="src.home" value="${basedir}/src" /> <property name="web.home" value="${basedir}/web" /> <property name="lib.home" value="${basedir}/WEB-INF/lib" /> <target name="all" depends="clean,compile" description="Clean build and dist directories, then compile" /> <target name="clean" description="Delete old build and dist directories"> <delete dir="${build.home}" /> <delete dir="${dist.home}" /> </target> <target name="prepare"> <!-- Create build directories as needed --> <mkdir dir="${build.home}" /> <mkdir dir="${build.home}/WEB-INF" /> <mkdir dir="${build.home}/WEB-INF/classes" /> <!-- Copy static content of this web application --> <copy todir="${build.home}/web"> <fileset dir="${web.home}" /> </copy> <!-- Copy external dependencies as required --> <!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** --> <mkdir dir="${build.home}/WEB-INF/lib" /> <copy todir="${build.home}/WEB-INF/lib"> <fileset dir="${lib.home}" /> </copy> <!-- Copy static files from external dependencies as needed --> <!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** --> </target> <target name="compile" depends="prepare" description="Compile Java sources"> <!-- Compile Java classes as necessary --> <mkdir dir="${build.home}/WEB-INF/classes" /> <javac srcdir="${src.home}" destdir="${build.home}/WEB-INF/classes" bootclasspath="${lib.home}" source="1.5"/> <!-- Copy application resources --> <copy todir="${build.home}/WEB-INF/classes"> <fileset dir="${src.home}" excludes="**/*.java" /> </copy> </target> <target name="dist" depends="compile" description="Create binary distribution"> <!-- Copy documentation subdirectories <mkdir dir="${dist.home}/docs" /> <copy todir="${dist.home}/docs"> <fileset dir="${docs.home}" /> </copy> --> <!-- Create application JAR file --> <jar jarfile="${dist.home}/${app.name}-${app.version}.war" basedir="${build.home}" /> <!-- Copy additional files to ${dist.home} as necessary --> </target> </project> thnx,
RakeshSounds like your JBuilder environment is screwed up; see what the classpath and bootclasspath are set to, and correct the error. (This is a question that belongs on a JBuilder website.)
-
JDK7 INSTALLATION FAILS WITH ERROR CANNOT FIND REQUIRED JAVA RUNTIME ENVIRONMENT
Hi
I am trying to install jdk7 on windows7 through command line with command java_ee_sdk-6u4-jdk7-windows-x64 -j "C:\Program Files\Java\jre7\bin". But it fails with error cannot find required java runtime environment in C:\Program Files\Java\jre7\bin. I have set the java_home and path environment variables to above path. Also I tried instaling through installer but it gave same error with null in path. Can anyone help?Hi
I am trying to install jdk7 on windows7 through command line with command java_ee_sdk-6u4-jdk7-windows-x64 -j "C:\Program Files\Java\jre7\bin". But it fails with error cannot find required java runtime environment in C:\Program Files\Java\jre7\bin. I have set the java_home and path environment variables to above path. Also I tried instaling through installer but it gave same error with null in path. Can anyone help? -
Cannot find: Legacy Java SE 6 runtime
Loaded OX Yosemite on my Mac and now cannot find Legacy Java SE 6 runtime to fix my Illustrator on CS4. UGH! Anyone have a link? E
Justin,
In addition to what mo said, some have found that the page with the direct download link,
http://support.apple.com/kb/DL1572
may turn up blank to start with, so it may be necessary to reload the page. -
Cannot find package/class symbol
hello. i'm using netveans for the first time. i have a java application with 2 classes... pb.java with public class pb int package svr and cl.java with public class cl in package cli
that is..
file class package
pb pb svr
cl cl cli
pb.java compiles properly cl.java gioves error.
the error is in the following lines of code...
pb obj1 = new pb();
pb obj2 = new pb();i'm trying to make an object fo type pb from cl.java. the error i get is...
cannot find symbol
class pb
location cli.cl
i alse tried puttin svr.pb instead of pb but no use.
the entire cose is as follows...
pb.java
* pb.java
* Created on December 4, 2006, 8:56 AM
package svr;
public class pb
private double balance;
private double []lt = new double [10];
private int i=9;
public void deposit(double amt)
if(amt<=0)
System.out.println("Enter amount greater than 0");
else
balance=balance+amt;
if(i>=0)
lt=amt;
else
for(int j=9;j>=0;j--)
lt[i]=lt[i-1];
lt[0]=amt;
public void withdraw(double amt)
if(amt<=0)
System.out.println("Enter amount greater than 0");
else
if(amt>balance)
System.out.println("Balance lower than amount entered");
else
balance=balance-amt;
if(i>=0)
lt[i]=-amt;
else
for(int j=9;j>=0;j--)
lt[i]=lt[i-1];
lt[0]=-amt;
public void bal()
System.out.println("Balance: "+balance);
public void lts()
System.out.println("Last 10 Transactions");
for(int j=i;j>10;j++)
System.out.println(lt[j]);
public void statement()
lts();
bal();
cl.java
* cl.java
* Created on December 4, 2006, 8:58 AM
package cli;
class cl
public static void main(String[] args)
pb obj1 = new pb();
pb obj2 = new pb();
obj1.deposit(100.50);
obj1.statement();
obj2.deposit(200.75);
obj2.statement();
obj1.withdraw(25.50);
obj1.statement();
obj2.withdraw(100.25);
obj2.statement();For a beginner these tools are worst, because they
hide all the stuff a programmer needs to know to find
his way around Java. They should spend a few weeks
with the command line and a good text editor before
switching.
Just because an IDE does something for you, it
doesn't mean you don't need to kno wwhat it does.
Unless you volunteer to handle all "how do I do X in
Netbeans/Eclipse/Whatever", JAR and classpath
questions posted here by newbies yourself.I suppose I can agree with that to some extent. I wouldn't suggest to anyone that they just blindly trust whatever code the IDE inserts automatically.
But there's nothing wrong about learning by example. The IDE is willing to teach proper syntax, and eclipse will give suggestions about capitalizing class names and making constants all-caps.
There are things that frustrate new programmers where an IDE will be helpful, especially if the entire API is uncharted territory. -
Cannot resolve symbol java.awt.graphics
// DrawRectangleDemo.java
import java.awt.*;
import java.lang.Object;
import java.applet.Applet;
public class DrawRectangleDemo extends Applet
public void paint (Graphics g)
// Get the height and width of the applet's drawing surface.
int width = getSize ().width;
int height = getSize ().height;
int rectWidth = (width-50)/3;
int rectHeight = (height-70)/2;
int x = 5;
int y = 5;
g.drawRect (x, y, rectWidth, rectHeight);
g.drawString ("drawRect", x, rectHeight + 30);
x += rectWidth + 20;
g.fillRect (x, y, rectWidth, rectHeight);
// Calculate a border area with each side equal tp 25% of
// the rectangle's width.
int border = (int) (rectWidth * 0.25);
// Clear 50% of the filled rectangle.
g.clearRect (x + border, y + border,
rectWidth - 2 * border, rectHeight - 2 * border);
g.drawString ("fillRect/clearRect", x, rectHeight + 30);
x += rectWidth + 20;
g.drawRoundRect (x, y, rectWidth, rectHeight, 15, 15);
g.drawString ("drawRoundRect", x, rectHeight + 30);
x=5;
y += rectHeight + 40;
g.setColor (Color.yellow);
for (int i = 0; i < 4; i++)
g.draw3DRect (x + i * 2, y + i * 2,
rectWidth - i * 4, rectHeight - i * 4, false);
g.setColor (Color.black);
g.drawString ("draw3DRect", x, y, + rectHeight + 25);
x += rectWidth + 20;
g.setColor (Color.yellow);
g.fill3DRect (x, y, rectWidth, rectHeight, true);
g.setColor (Color.black);
g.drawString ("fill3DRect", x, y, + rectHeight + 25);
Help me with this codes. I typed correctly but there still errors.
--------------------Configuration: JDK version 1.3.1 <Default>--------------------
D:\Program Files\Xinox Software\JCreator LE\MyProjects\DrawRectangleDemo.java:56: cannot resolve symbol
symbol : method drawString (java.lang.String,int,int,int)
location: class java.awt.Graphics
g.drawString ("draw3DRect", x, y, + rectHeight + 25);
^
D:\Program Files\Xinox Software\JCreator LE\MyProjects\DrawRectangleDemo.java:64: cannot resolve symbol
symbol : method drawString (java.lang.String,int,int,int)
location: class java.awt.Graphics
g.drawString ("fill3DRect", x, y, + rectHeight + 25);
^
2 errors
Process completed.
-------------------------------------------------------------------------------------------------------------------------------cannot resolve symbol
symbol : method drawString (java.lang.String,int,int,int)
This is telling you that you are trying to invoke the drawString() method with 4 parameters: String, int, int, int
If you look at the API the drawString() method need 3 parameters: String, int, int - so you have an extra int
location: class java.awt.Graphics
g.drawString ("draw3DRect", x, y, + rectHeight + 25);
Now is you look at your code you will find that you have 3 ',' in you method call. (I don't think you want the ',' after the y. -
Cannot find standart java files in DCs. I'm confused. Please help.
Hello SDN!
I need to create extension which allow users attaching files to orders in order.jsp I found standart uploadform.jsp and UploadAction.java. I've create in DC crm/home/shr/ext my own action class based on UploadAction. There're some classes in my class which NWDS cannot resolve. For example, class LocaleUtil. I added import statement by hand but NWDS cannot resolve it anyway. I tried to find LocaleUtil.java via DTR but found nothing. So I don't know in which DC java file is. Now I found only LocaleUtil.class in sap.comcrmisalwcassembly.jar but I don't know how to use this jar. Also this jar contains other unresoldev classes.
Please help me to resolve these classes.
Regards, Lev
Help will be appreciated.Hello Sateesh!
This jar file doen't available in Libraries tab. I found them in DCs\sap.com\crm\isa\lwc\_comp\gen\default\public\assembly\lib\java (note that I haven't project sap.com/crm/isa/lwc) and try to add them in Libraries tab via button "Add external JAR". After that I try to build my DCs and get an error:
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:23: package com.sap.isa.cic.core.util does not exist
[javac] ERROR: import com.sap.isa.cic.core.util.LocaleUtil;
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:24: package com.sap.isa.cic.customer.actionforms does not exist
[javac] ERROR: import com.sap.isa.cic.customer.actionforms.UploadForm;
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:52: cannot resolve symbol
[javac] ERROR: symbol : class UploadForm
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: FormFile file = ((UploadForm)form).getChosenFile();
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:54: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: fileName = LocaleUtil.encodeString(fileName, inputCharset, actualCharset);
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:56: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: contentType = LocaleUtil.encodeString(contentType, inputCharset, actualCharset);
[javac] ERROR: ^
[javac] 7 errors
After that this jar file disappear from Libraries tab. What I should to do?
Regards, Lev -
[SOLVED] Cannot find package "flashplugin" or "archey".
[EDIT - yaourt and archey now installed, thanks]
I am running Arch 2.6.34 with GNOME desktop. When I type the command sudo pacman -S flashplugin or sudo pacman -S archey it tells me that it cannot find the package.
I had this problem previously when I was trying arch in a VM, and I couldn't figure out what I had missed. I have everything else properly installed and working fine, it's just these two packages I've come across that I cannot locate. I'm guessing there's probably more packages that I just haven't run into yet that wouldn't work either.
Last edited by Socialsymbol (2010-06-29 23:00:00)Shazzam6999 wrote:
That's because archey is in the AUR. You can use yaourt to install packages from the aur similar to how you're trying, read the wikis and check it out.
http://wiki.archlinux.org/index.php/Arc … Repository
http://wiki.archlinux.org/index.php/Yaourt
Ok, thanks, I had forgotten about that.
When do they suspect they'll fix the flashplugin bug/vulnerability? And what is recommended to do until then as far as flash playback goes?
Last edited by Socialsymbol (2010-06-29 22:51:14) -
Sun One cannot find package ?
hi to all,
i am trying to run my web application from sun one studio 5 SE, to utilise the debugging functionality that i cant get working in intellij or jbuilder :( (intellij wont iinstall on 2003 server and jbuilder crashes when in debug mode )
anyways my app works fine by all accounts but when i mounted the filesystem inside SOS and i try and compile i get the following
login$jsp.java [6:1] package org.apache.jasper.runtime does not exist
import org.apache.jasper.runtime.*;
^
login$jsp.java [9:1] cannot resolve symbol
symbol : class HttpJspBase
location: class org.apache.jsp.login$jsp
public class login$jsp extends HttpJspBase {
^
login$jsp.java [35:1] package org.apache.jasper.runtime does not exist
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
^
login$jsp.java [86:1] cannot resolve symbol
symbol : method getClass ()
location: class org.apache.jsp.login$jsp
auth = (xns.beans.Authenticator) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "xns.beans.Authenticator");
^
login$jsp.java [105:1] cannot resolve symbol
symbol : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
JspRuntimeLibrary.introspect(pageContext.findAttribute("auth"), request);
^
login$jsp.java [145:1] cannot resolve symbol
symbol : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
out.print(JspRuntimeLibrary.toString((((xns.beans.Authenticator)pageContext.findAttribute("auth")).getUsername())));
^
login$jsp.java [170:1] cannot resolve symbol
symbol : variable JspRuntimeLibrary
location: class org.apache.jsp.login$jsp
out.print(JspRuntimeLibrary.toString((((xns.beans.Authenticator)pageContext.findAttribute("auth")).getError())));
^
7 errors
Errors compiling login.this happens with both the default internal SOS server and a tomcat 4.1 installation i have on same machine.
i also mounted the jars that are in the server/lib dir of the tomcat install (i thought the server would have already mounted them) but this didnt help either
any ideas pls, i need to extend this application and cant do it without debugging
kind regards
g00fyHi Guys
I found the answer already...
u have to put jsse.jar , jnet.jar , jcert.jar in jdk1.31./jre/lib/ext folder
And set some provider in java.security
while it was done automatically in jdk1.4.1 -
OWB11r2 data chunking: cannot find package DBMS_APPLY
Hi,
I'm trying the new data chunking feature of owb11r2. I got it running with serial strategy. But when I switch to parallel strategy, the mapping does not compile. It tries to call the package DBMS_APPLY, but that cannot be found:
DBMS_APPLY.INITIALIZE(..);
DBMS_APPLY.CHUNK_TABLE_BY_ROWID(..);
Target db is 11r2.
Any idea?
Regards,
Carsten.Hi Carsten
There is a bug (9057172) logged for this. I have tried to workaround but couldn't find any mechanism.
Cheers
David -
Cannot find package error and cannot resolve symbol error
Hi
I have a file Assignment.java in C:\TIJCode\c03 folder. But this file belongs to the default package. This file imports a package com.bruceeckel.simpletest which is in C:\TIJCode\ folder. Now this package has a file named Test.java which accesses a few more files fromt he same package.
I set the classpath to C:\TIJCode. When i try to run the Assignment file I get an error saying package com.bruceeckel.simpletest cannot be found and cannot resolve symbol error. symbol: Test Class: Assignment.
The files in com.bruceeckel.simpletest package were not compiled. So I first tried to do that. But I get a cannot resolve symbol error while trying to compile a file NumOfLinesException which inherits SImpleTestException file. The exact error message is
NumOfLinesException.java : 7 : cannot resolve symbol
symbol : class SimpleTestException
location : class com.bruceeckel.simpletest.NumOfLinesException extends SimpleTestException
The exact code in each of above mentioned files is
//: c03:Assignment.java
// Assignment with objects is a bit tricky.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import com.bruceeckel.simpletest.*;
class Number {
int i;
public class Assignment {
static Test monitor = new Test();
public static void main(String[] args) {
Number n1 = new Number();
Number n2 = new Number();
n1.i = 9;
n2.i = 47;
System.out.println("1: n1.i: " + n1.i +
", n2.i: " + n2.i);
n1 = n2;
System.out.println("2: n1.i: " + n1.i +
", n2.i: " + n2.i);
n1.i = 27;
System.out.println("3: n1.i: " + n1.i +
", n2.i: " + n2.i);
monitor.expect(new String[] {
"1: n1.i: 9, n2.i: 47",
"2: n1.i: 47, n2.i: 47",
"3: n1.i: 27, n2.i: 27"
} ///:~
//: com:bruceeckel:simpletest:SimpleTestException.java
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
package com.bruceeckel.simpletest;
public class SimpleTestException extends RuntimeException {
public SimpleTestException(String msg) {
super(msg);
} ///:~
//: com:bruceeckel:simpletest:NumOfLinesException.java
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
package com.bruceeckel.simpletest;
public class NumOfLinesException extends SimpleTestException {
public NumOfLinesException(int exp, int out) {
super("Number of lines of output and "
+ "expected output did not match.\n" +
"expected: <" + exp + ">\n" +
"output: <" + out + "> lines)");
} ///:~
//: com:bruceeckel:simpletest:Test.java
// Simple utility for testing program output. Intercepts
// System.out to print both to the console and a buffer.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
package com.bruceeckel.simpletest;
import java.io.*;
import java.util.*;
import java.util.regex.*;
public class Test {
// Bit-shifted so they can be added together:
public static final int
EXACT = 1 << 0, // Lines must match exactly
AT_LEAST = 1 << 1, // Must be at least these lines
IGNORE_ORDER = 1 << 2, // Ignore line order
WAIT = 1 << 3; // Delay until all lines are output
private String className;
private TestStream testStream;
public Test() {
// Discover the name of the class this
// object was created within:
className =
new Throwable().getStackTrace()[1].getClassName();
testStream = new TestStream(className);
public static List fileToList(String fname) {
ArrayList list = new ArrayList();
try {
BufferedReader in =
new BufferedReader(new FileReader(fname));
try {
String line;
while((line = in.readLine()) != null) {
if(fname.endsWith(".txt"))
list.add(line);
else
list.add(new TestExpression(line));
} finally {
in.close();
} catch (IOException e) {
throw new RuntimeException(e);
return list;
public static List arrayToList(Object[] array) {
List l = new ArrayList();
for(int i = 0; i < array.length; i++) {
if(array[i] instanceof TestExpression) {
TestExpression re = (TestExpression)array;
for(int j = 0; j < re.getNumber(); j++)
l.add(re);
} else {
l.add(new TestExpression(array[i].toString()));
return l;
public void expect(Object[] exp, int flags) {
if((flags & WAIT) != 0)
while(testStream.numOfLines < exp.length) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
List output = fileToList(className + "Output.txt");
if((flags & IGNORE_ORDER) == IGNORE_ORDER)
OutputVerifier.verifyIgnoreOrder(output, exp);
else if((flags & AT_LEAST) == AT_LEAST)
OutputVerifier.verifyAtLeast(output,
arrayToList(exp));
else
OutputVerifier.verify(output, arrayToList(exp));
// Clean up the output file - see c06:Detergent.java
testStream.openOutputFile();
public void expect(Object[] expected) {
expect(expected, EXACT);
public void expect(Object[] expectFirst,
String fname, int flags) {
List expected = fileToList(fname);
for(int i = 0; i < expectFirst.length; i++)
expected.add(i, expectFirst[i]);
expect(expected.toArray(), flags);
public void expect(Object[] expectFirst, String fname) {
expect(expectFirst, fname, EXACT);
public void expect(String fname) {
expect(new Object[] {}, fname, EXACT);
} ///:~What do you have in the C:\TIJCode\ directory? Does the directory structure mimic the package structure for the stuff you're importing?
-
I am running 10.5.8, I can find no software update as recommended by Ziplogix for Java which keep saying that I am missing 1.0.6_11
Where do I go to download and install this so I may work... lol?This was the last Java update for Leopard:
Update 10, 29 June 2011 - This release updates J2SE 5.0 to 1.5.0_30, and updates Java SE 6 to 1.6.0_26. J2SE 1.4.2 is no longer being updated to fix bugs or security issues and remains disabled by default in this update. Support for out-of-process Java applets on Mac OS X 10.5 Leopard has been removed with this update.
This release is only for Intel Macs running versions of Mac OS X 10.5. http://support.apple.com/kb/DL1359
Since August 2012 updates for Java (and especially Java Runtime Environment, which is what you actually need) must now be downloaded direct from Oracle:
http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.h tml
(which is for Java 7)
Further information here:
http://www.oracle.com/us/corporate/press/1735645
and their FAQ’s:
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html -
Help JDeveloper cannot find package
Hi,
I am using JDeveloper 9.0.3.4.
In the project settings -->Configurations -->Development --> Libraries, I add JSP Runtime, J2EE, Servlet Runtime. But When I tried to rebuild my project, I got errors like:
(1) package javax.servlet.jsp does not exist;
(2) cannot resolve symbol on import javax.servlet.http.HttpServletRequest;
(3)javax.servlet.http.HttpServletRequest is not public in javax.servlet.http; cannot be accessed from outside package.
Can you help?
Many thanks,Add lib/j2ee.jar from the J2sdkee installation in the project Classpath with Paths>Additional Paths in the project properties frame.
-
I am migrating from a single server, database and http server on one machine, to a two server approach, app server (http server) and database. I have a page in Apex that displays a stored PDF file using an iframe. For example:
select
'<iframe src="web_admin_pkg.display_action_pdf?p_doc_id='||:P104_DOC_ID||'" height="600" width="900"></iframe>' pdf
from dual
This works great on my single server environment, but when I try to run this from my app server, I get an error stating:
The requested URL /pls/apex/web_admin_pkg.display_action_pdf was not found on this server.
Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at my_host03 Port 7777
my_host03 is the Application Server
my_host01 is my database server
I have the same permissions on the package in both environments, so I don't think that is the issue.
Any ideas?
TonyTony,
Here's a shot in the dark.
Are the Database Access Descriptors defined with 2 different database users? I noticed that the reference to web_admin_pkg.display_action_pdf is not qualified with a package owner, so either it's being accessed:
1) through a public synonym
or
2) it's contained in the schema configured in your DAD
Ensure you have either granted execute to PUBLIC on this procedure, and/or try and fully qualify the package reference, e.g., joedbuser.web_admin_pkg.display_action_pdf.
Joel
Maybe you are looking for
-
"Blue Screen of Death" when trying to capture video!
Whenever I go to capture video, it immediately gives me a blue screen and the computer restarts. I thought that installing Premiere (CS 4 trial) would allow me to use Premiere's capture capabilities, but I still got the same blue screen problem. So
-
Firefox reports wrong pdf mime type
I have multiple Windows 7 pcs that are unable to upload PDFs to websites. When we try, we get a message that we can only upload pdfs. The problem is, we ARE uploading PDFs. This happens on more than 1 website. I found that deleting mimetypes.rdf fixe
-
Zen Xtra ...Need to downgrade my firmware
Please could someone help me, after i upgraded my firmware for my 60 Gb zen extra i cant transfere files from and to the jukebox. And i've lost my cd that came with the player... please help... thnx
-
Upgrade successful, but this morning after signing in, Mac has locked up on "setting up your Mac" screen. Ive restarted it, and powered down and started again, but the same thing happens. Help!
-
App update in iTunes 11.0.1?
I've downloaded the newer itunes 11.0.1. There was a short tutorial with the changes and I watched it, which I don't always do ;-) then I opened itunes and plugged in my iphone to update apps. With the new itunes, you click on the device in the upp