Error regarding package concept and classpath

Dear All,
I am just compiling two java classes which is part of struts frame work.
Register Form.java:
package app;
import org.apache.struts.action.*;
public class RegisterForm extends ActionForm
protected String username;
protected String password1;
protected String password2;
public String getUsername(){return username;}
public String getPassword1(){return password1;}
public String getPassword2(){return password2;}
public void setUsername(String username){this.username=username;}
public void setPassword1(String password){this.password1=password;}
public void setPassword2(String password){this.password2=password;}
I am compiling this file its compiling and i put this class file in app folder and the i am compiling the second java file.
package app;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.io.*;
public class RegisterAction extends Action
public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest req,HttpServletResponse res)
RegisterForm rf = (RegisterForm) form;
String username=rf.getUsername();
String password1=rf.getPassword1();
String password2=rf.getPassword2();
if(password1.equals(password2))
return mapping.findForward("success");
else
return mapping.findForward("failure");
when i am compiling i got error as
package app;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.io.*;
public class RegisterAction extends Action
public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest req,HttpServletResponse res)
RegisterForm rf = (RegisterForm) form;
String username=rf.getUsername();
String password1=rf.getPassword1();
String password2=rf.getPassword2();
if(password1.equals(password2))
return mapping.findForward("success");
else
return mapping.findForward("failure");
C:\j2sdk1.4.1_04\bin>javac RegisterAction.java
RegisterAction.java:10: cannot resolve symbol
symbol : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
^
RegisterAction.java:10: cannot resolve symbol
symbol : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
no problem in struts jar and servlet jar file i set classpath correctly for this but i cant resolve thsi error.
can any one help on this issue.
i need urgently.
Thanks
Balaji.A.U.

i need urgently.Oh. In that case, I'm probably too late. What a bummer.

Similar Messages

  • A simple Q about package, import and classpath

    Hi!
    Could You help me! Where's the problem?
    dir is C:\Omat tiedostot\Pasin Kansio\Et�lukio\eph200,
    sub dirs are datat, javat (java-files) and luokat (classes),
    file kaanna.bat is
    "set classpath=C:\Omat tiedostot\Pasin Kansio\Et�lukio\eph200
    del luokat\*.class
    c:\jdk1.1.8\bin\javac -d luokat javat\Examiphobia.java"
    Examiphobia.java is
    "import luokat.*;
    class Examiphobia...
    new ExamiphobiaFrame(Asetukset[0]);
    ExamiphobiaFrame.java is
    "import luokat.*;
    class ExamiphobiaFrame..."
    Thanks /m35Fin

    Laitetaanpa nyt kuitenkin enklanniks� jotta muutkin ymmärtää...
    The problem is that package structure and directory structures are different things.
    You can't import the package "luokat" since there is no package called that. Packages are made with the package declaration: "package packageName;".
    So, remove "import luokat.*;". It's not needed.
    Instead, modify kaanna.bat:
    set classpath="C:\Omat tiedostot\Pasin Kansio\Etälukio\eph200"
    del luokat\*.class
    REM cd to the real directory and compile
    cd javat
    c:\jdk1.1.8\bin\javac -d ..\luokat Examiphobia.java
    REM cd back to parent
    cd ..
    I'd also recommend downloading up-to-date SDK, you may need it in the future...

  • Jar not running is sarge and apache-ant  shows error of package not found

    Hello,
    First of all I am not a java programmer. I work in C/C++/C#.
    Currently I am dealing a game written in java (1.5) using netbeans 5.5.0 under windows xp. My target is to compile in my development machine and run in the clients machine. everything works fine in windows xp. I open the netbeans ide, load the necessary class libraries, build the project and run it. it runs without any problem.
    The problem begins when I run the same project from linux (fedora). it doest not run. It shows some error.
    <error platform="fedora 7">
    Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:406)
    at java.awt.Frame.<init>(Frame.java:402)
    at java.awt.Frame.<init>(Frame.java:367)
    at javax.swing.JFrame.<init>(JFrame.java:163)
    at netbeansapplication.nbApplication.<init>(nbApplication.java:52)
    at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    </error>
    Some of these error were resolved when I set the DISPLAY variable (export DISPLAY="127.0.0.1:0") but the other errors were still there.
    But when I open this same project in netbeans and resolve the dependencies with class libraries it works ok after compiling.
    I can run it from console (java -jar ...)
    And again the same source tree shows the following error when I am in windows !!! (by java -jar ... command)
    <error platform="WinXPSP2">
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:468)
    at java.lang.Integer.parseInt(Integer.java:497)
    at cherrygame.global.readConfigForStickProtection(global.java:2060)
    at cherrygame.nbCherryGame.<init>(nbCherryGame.java:243)
    at netbeansapplication.nbApplication.<init>(nbApplication.java:46)
    at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    </error>
    I see that netbeans uses ant to compile project in the background.
    then I tried using ant to compile.
    doing only `#ant compile` where build.xml resides does the compilation.
    after that I try to run it (by java -jar ...). again the above error shows up.
    What would I do?
    If I compile it with netbeans in machine A then it runs well in A but not in machine B.
    If I compile it with ANT in machine A then it doesn't run in A, no chance for machine B.
    the contents of my build xml is here
    <code file="build.xml">
    <![CDATA[
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="NetBeansApplication" default="default" basedir=".">
    <description>Builds, tests, and runs the project NetBeansApplication.</description>
    <import file="nbproject/build-impl.xml"/>
    <!--
    There exist several targets which are by default empty and which can be
    used for execution of your tasks. These targets are usually executed
    before and after some main targets. They are:
    -pre-init: called before initialization of project properties
    -post-init: called after initialization of project properties
    -pre-compile: called before javac compilation
    -post-compile: called after javac compilation
    -pre-compile-single: called before javac compilation of single file
    -post-compile-single: called after javac compilation of single file
    -pre-compile-test: called before javac compilation of JUnit tests
    -post-compile-test: called after javac compilation of JUnit tests
    -pre-compile-test-single: called before javac compilation of single JUnit test
    -post-compile-test-single: called after javac compilation of single JUunit test
    -pre-jar: called before JAR building
    -post-jar: called after JAR building
    -post-clean: called after cleaning build products
    (Targets beginning with '-' are not intended to be called on their own.)
    Example of inserting an obfuscator after compilation could look like this:
    <target name="-post-compile">
    <obfuscate>
    <fileset dir="${build.classes.dir}"/>
    </obfuscate>
    </target>
    For list of available properties check the imported
    nbproject/build-impl.xml file.
    Another way to customize the build is by overriding existing main targets.
    The targets of interest are:
    -init-macrodef-javac: defines macro for javac compilation
    -init-macrodef-junit: defines macro for junit execution
    -init-macrodef-debug: defines macro for class debugging
    -init-macrodef-java: defines macro for class execution
    -do-jar-with-manifest: JAR building (if you are using a manifest)
    -do-jar-without-manifest: JAR building (if you are not using a manifest)
    run: execution of project
    -javadoc-build: Javadoc generation
    test-report: JUnit report generation
    An example of overriding the target for project execution could look like this:
    <target name="run" depends="NetBeansApplication-impl.jar">
    <exec dir="bin" executable="launcher.exe">
    <arg file="${dist.jar}"/>
    </exec>
    </target>
    Notice that the overridden target depends on the jar target and not only on
    the compile target as the regular run target does. Again, for a list of available
    properties which you can use, check the target you are overriding in the
    nbproject/build-impl.xml file.
    -->
    <target name="-post-jar">
    <jar update="true" destfile="${dist.jar}">
    <zipfileset src="${libs.swing-layout.classpath}"/>
    <zipfileset src="${libs.addMoney.classpath}"/>
    <zipfileset src="${libs.NormalWindow.classpath}"/>
    </jar>
    </target>
    </project>
    ]]>
    </code>
    my directory contents is here. note. I have 2 packages "cgwindow2" and "NormalWindow" for class libraries and my main application is "CherryGame". The game is "game.jar" in the CherryGame folder.
    <listing foldername="CherryGame">
    D:\src\java\CherryGame\build.xml
    D:\src\java\CherryGame\BW.txt
    D:\src\java\CherryGame\config.txt
    D:\src\java\CherryGame\config.txt.lin
    D:\src\java\CherryGame\flopsfile.txt
    D:\src\java\CherryGame\game.jar
    D:\src\java\CherryGame\LWMoneyfile.txt
    D:\src\java\CherryGame\mfile.txt
    D:\src\java\CherryGame\mfile2.txt
    D:\src\java\CherryGame\mfile3.txt
    D:\src\java\CherryGame\TotalRollsTillBigWin.txt
    D:\src\java\CherryGame\UserFile.txt
    D:\src\java\CherryGame\build\classes\cherrygame\addMoneyFrame.class
    D:\src\java\CherryGame\build\classes\cherrygame\addMoneyPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\cherryGameBackPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cherryWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\customBorderCherryGame.class
    D:\src\java\CherryGame\build\classes\cherrygame\FixedGlassPane.class
    D:\src\java\CherryGame\build\classes\cherrygame\global.class
    D:\src\java\CherryGame\build\classes\cherrygame\helpPanelOne.class
    D:\src\java\CherryGame\build\classes\cherrygame\imagesPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow2.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow3.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$10.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$11.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$12.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$13.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$14.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$15.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$16.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$17.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$18.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$19.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$2.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$20.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$21.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$22.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$23.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$24.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$25.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$26.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$27.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$2.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$29.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$3.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$30.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$31.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$32.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$33.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$34.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$35.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$36.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$37.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$38.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$39.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$4.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$40.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$41.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$42.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$43.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$44.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$45.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$46.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$5.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$6.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$7.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$8.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$9.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$MyTask.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage2.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage3.class
    D:\src\java\CherryGame\build\classes\lpt\LPT.class
    D:\src\java\CherryGame\build\classes\lpt\events\Events.class
    D:\src\java\CherryGame\build\classes\lpt\events\LPTEvent.class
    D:\src\java\CherryGame\build\classes\lpt\events\LPTEventListener.class
    D:\src\java\CherryGame\build\classes\lpt\ieee1284\PPParallelPort.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\customBorder.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$1.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$10.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$11.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$12.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$13.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$14.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$2.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$3.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$4.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$5.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$6.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$7.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$8.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$9.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication.class
    D:\src\java\CherryGame\dist\NetBeansApplication.jar
    D:\src\java\CherryGame\dist\javadoc\package-list
    D:\src\java\CherryGame\dist\javadoc\stylesheet.css
    D:\src\java\CherryGame\dist\javadoc\resources\inherit.gif
    D:\src\java\CherryGame\nbproject\build-impl.xml
    D:\src\java\CherryGame\nbproject\genfiles.properties
    D:\src\java\CherryGame\nbproject\project.properties
    D:\src\java\CherryGame\nbproject\project.xml
    D:\src\java\CherryGame\nbproject\private\private.properties
    D:\src\java\CherryGame\nbproject\private\private.xml
    D:\src\java\CherryGame\src\customBorder.java
    D:\src\java\CherryGame\src\nbApplication.form
    D:\src\java\CherryGame\src\nbApplication.java
    D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.form
    D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.java
    D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.form
    D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.java
    D:\src\java\CherryGame\src\cherrygame\cardsPanel.java
    D:\src\java\CherryGame\src\cherrygame\cardsWindow.form
    D:\src\java\CherryGame\src\cherrygame\cardsWindow.java
    D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.form
    D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.java
    D:\src\java\CherryGame\src\cherrygame\cherryWindow.java
    D:\src\java\CherryGame\src\cherrygame\customBorderCherryGame.java
    D:\src\java\CherryGame\src\cherrygame\global.java
    D:\src\java\CherryGame\src\cherrygame\helpPanelOne.form
    D:\src\java\CherryGame\src\cherrygame\helpPanelOne.java
    D:\src\java\CherryGame\src\cherrygame\imagesPanel.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow2.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow2.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow3.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow3.java
    D:\src\java\CherryGame\src\cherrygame\nbCherryGame.form
    D:\src\java\CherryGame\src\cherrygame\nbCherryGame.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage2.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage2.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage3.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage3.java
    D:\src\java\CherryGame\src\lpt\LPT.java
    D:\src\java\CherryGame\src\lpt\events\Events.java
    D:\src\java\CherryGame\src\lpt\events\LPTEvent.java
    D:\src\java\CherryGame\src\lpt\events\LPTEventListener.java
    D:\src\java\CherryGame\src\lpt\ieee1284\PPParallelPort.java
    </listing>
    <listing foldername="NormalWindow">
    D:\src\java\NormalWindow\build.xml
    D:\src\java\NormalWindow\manifest.mf
    D:\src\java\NormalWindow\build\classes\normalwindow\global.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$1.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$10.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$11.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$12.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$13.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$14.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$15.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$16.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$17.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$2.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$3.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$4.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$5.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$6.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$7.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$8.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$9.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$1.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$2.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$3.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$4.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$5.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog.class
    D:\src\java\NormalWindow\dist\NormalWindow.jar
    D:\src\java\NormalWindow\dist\README.TXT
    D:\src\java\NormalWindow\dist\_normalwindow.jar
    D:\src\java\NormalWindow\dist\lib\swing-layout-1.0.jar
    D:\src\java\NormalWindow\nbproject\build-impl.xml
    D:\src\java\NormalWindow\nbproject\genfiles.properties
    D:\src\java\NormalWindow\nbproject\project.properties
    D:\src\java\NormalWindow\nbproject\project.xml
    D:\src\java\NormalWindow\nbproject\private\private.properties
    D:\src\java\NormalWindow\nbproject\private\private.xml
    D:\src\java\NormalWindow\src\normalwindow\global.java
    D:\src\java\NormalWindow\src\normalwindow\NormalWindow.form
    D:\src\java\NormalWindow\src\normalwindow\NormalWindow.java
    D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.form
    D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.java
    </listing>
    <listing foldername="cgwindow2">
    D:\src\java\cgwindow2\build.xml
    D:\src\java\cgwindow2\manifest.mf
    D:\src\java\cgwindow2\mfile.txt
    D:\src\java\cgwindow2\UserFile.txt
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyPanel.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$1.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$10.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$11.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$12.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$13.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$14.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$2.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$3.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$4.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$5.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$6.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$7.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$8.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$9.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow.class
    D:\src\java\cgwindow2\build\classes\addmoney\customBorderForAddMoneyWindow.class
    D:\src\java\cgwindow2\build\classes\addmoney\global.class
    D:\src\java\cgwindow2\dist\cgwindow2.jar
    D:\src\java\cgwindow2\dist\README.TXT
    D:\src\java\cgwindow2\dist\lib\swing-layout-1.0.jar
    D:\src\java\cgwindow2\nbproject\build-impl.xml
    D:\src\java\cgwindow2\nbproject\genfiles.properties
    D:\src\java\cgwindow2\nbproject\jax-ws.xml
    D:\src\java\cgwindow2\nbproject\project.properties
    D:\src\java\cgwindow2\nbproject\project.xml
    D:\src\java\cgwindow2\nbproject\private\private.properties
    D:\src\java\cgwindow2\nbproject\private\private.xml
    D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.form
    D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.java
    D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.form
    D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.java
    D:\src\java\cgwindow2\src\addmoney\customBorderForAddMoneyWindow.java
    D:\src\java\cgwindow2\src\addmoney\global.java
    </listing>
    About my thread subject, my clients machine is a debian sarge 3.0 and when I compiled it there with ANT It says, "normalwindow" package not found. other 2 errors were due to "normalwindow".
    Edited by: mokaddim on Sep 12, 2007 2:08 PM

    Julio.Faerman wrote:
    Hello,
    I am trying to run my annotation processor using ant.
    I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
    The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
    warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?When -processor is not given, a service loader is used to find the annotation processors (if any). In addition to the class files of the process, to allow your processor to be found as a service, make sure you've also provided the needed META-INF data in the jar file. The general service file format is described in
    http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
    That said, I'd recommend setting an explicit processor path separate from your general classpath.

  • Help with packages and classpath

    Heya,
    first off, i use textpad to compile my java, i don't do it via the command line.
    my problem is faily simple, i think. i've got a main class and i'd like it to import a custom class from a subdir.
    Main class is in
    C:\Documents and Settings\David\Desktop\java\test_gen.java
    I would like it to import
    C:\Documents and Settings\David\Desktop\java\obj_data\objects.java
    I understand that I have to declare objects.java to be a part of a package, so i head the code with: package obj_data; as i understand it, the directory in which the package to be imported resides in will be named the same as the package.
    When i import my package into test_gen.java, i import obj_data as follows:
    import obj_data.*;
    this should import objects.class and any other classes in the same directory. also import obj_data.objects.*; could be used.
    Anyway, thats my understanding of how you set up the class and package; i also understand that when the java file compiles the compiler looks at the directoy(s) indicated in the class path for the classes to import. that in mind i tried to add:
    C:\Documents and Settings\David\Desktop\java\obj_data\
    to my classpath. i did this via dos, javac -classpath "C:\Documents and Settings\David\Desktop\java\obj_data\"
    i got no error messages, so i assume it worked. however when i try to compile the main java (test_gen) i get-
    package packages does not exist
    import packages.*;
    ^
    1 error
    Tool completed with exit code 1
    can anyone give me some help please?

    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Error message when installing iTunes on my PC:  This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that  this is a valid Windows installer package

    Error message when trying to install iTunes on my Pc:
    Using Windows 7, had to replace hard drive.  HELP!!
    This installation package could not be
    opened. Verify that the package exists
    and that you can access it, or contact
    the application vendor to verify that
    this is a valid Windows installer package

    Hello JAH1961,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • When downloading itunes onto my windows 7 pc I get the following error message "this installation package could not be opened verify that the package exists and that you can access it"

    I am having trouble downloading Itune, icloud etc onto my Windows 7 PC and keep getting the following error message "this installation pack could not be opened, verify that the package exists and that you can access it"

    tried downloading the quicktime installer, I get the same message with it too

  • While installing itunes i am getting error "this installation package could not be opened.verify that the package exists and that you can access it,or contact the appliacation vendor to verify that this is a valid windows installer package"

    While installing itunes i am getting error "this installation package could not be opened.verify that the package exists and that you can access it,or contact the appliacation vendor to verify that this is a valid windows installer package"

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • I-tunes won't download onto Windows XP.  Error message 'this application package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this a a valid window Installation package'.

    How do you download i-tunes onto Windows XP when error message occurs, 'This application pack could not be opened. Verify that hte package exists and that you can access it, or contact the application vendor to verify that this is a valid window installation package'.

    I wish I knew because i'm having the same problem. As soon as I find the answer I will post.

  • How to fix error: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the applikcation vendor to verify that this is a valid Windows Installer package."

    ERROR: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the applikcation vendor to verify that this is a valid Windows Installer package." I have tried everything which I found on google and apple community. Does anybody have the exact solution? PLEASE HELP!

    What has this to do with the application Front Row which this forum covers?
    What are you trying to install, on what Mac, with what version of OS X?

  • IE 10 and 11 error install failure ERROR: "Neutral package installation failed"

    This is a 2008 R2 physical server with all available patches installed and SFC recently run.
    00:00.000: ====================================================================
    00:00.000: Started: 2014/01/16 (Y/M/D) 11:52:19.750 (local)
    00:00.000: Time Format in this log: MM:ss.mmm (minutes:seconds.milliseconds)
    00:00.016: Command line: "C:\Users\{user}\Desktop\IE11-Windows6.1-x64-en-us.exe"
    00:00.016: INFO:    Setup installer for Internet Explorer: 11.0.9600.16428
    00:00.016: INFO:    Previous version of Internet Explorer: 9.0.8112.16526
    00:00.016: INFO:    Checking if iexplore.exe's current version is between 11.0.9600.0...
    00:00.016: INFO:    ...and 11.1.0.0...
    00:00.016: INFO:    Maximum version on which to run IEAK branding is: 11.1.0.0...
    00:00.016: INFO:    iexplore.exe version check success. Install can proceed.
    00:00.016: INFO:    Operating System: Windows Server: 6.1.7601 (Service Pack 1)
    00:00.016: INFO:    Trying to extract ID: SetupDownloadList.txt (0) as "SetupDownloadList.txt"
    00:00.016: INFO:    Trying to extract ID: HardwareBlockingList.xml (0) as "HardwareBlockingList.xml"
    00:00.016: INFO:    Trying to extract ID: 7006 (0) as "IE11-neutral.Extracted.cab"
    00:00.219: INFO:    Trying to extract ID: 5501 (1033) as "Spelling_en.msu"
    00:00.546: INFO:    Extracted Spelling dictionary for en to C:\Windows\TEMP\IE182A.tmp\Spelling_en.msu.
    00:00.546: INFO:    Trying to extract ID: 5502 (1033) as "Hyphenation_en.msu"
    00:00.562: INFO:    Extracted Hyphenation dictionary for en to C:\Windows\TEMP\IE182A.tmp\Hyphenation_en.msu.
    00:00.562: INFO:    Trying to extract ID: 7128 (1033) as "IE11-support.cab"
    00:01.467: INFO:    PauseOrResumeAUThread: Successfully paused Automatic Updates.
    00:01.810: INFO:    Updated Download list, Hardware Blocking list, and no reboot policy files successfully downloaded and extracted for use.
    00:01.826: INFO:    Launched program to check hardware: "C:\Windows\TEMP\IE182A.tmp\IE11-SUPPORT\IEXPLORE.EXE" /CheckHardware "C:\Windows\TEMP\IE182A.tmp\IE11-support\HardwareBlockingList.xml"
    00:01.919: INFO:    Hardware support check succeeded. Installation will continue.
    00:01.919: INFO:    Windows 7 operating system detected.
    00:01.919: INFO:    Service pack major: 1
    00:01.919: INFO:    Service pack minor: 0
    00:01.919: INFO:    Service pack name:  Service Pack 1
    00:01.935: INFO:    Version Check for (KB2834140) of C:\Windows\System32\d3d11.dll: 6.2.9200.16570 >= 6.2.9200.16570 (True)
    00:01.935: INFO:    Version Check for (KB2670838) of C:\Windows\System32\api-ms-win-downlevel-user32-l1-1-0.dll: 6.2.9200.16492 >= 6.2.9200.16426 (True)
    00:01.935: INFO:    Version Check for (KB2639308) of C:\Windows\System32\Ntoskrnl.exe: 6.1.7601.18247 >= 6.1.7601.17727 (True)
    00:01.966: INFO:    Version Check for (KB2533623) of C:\Windows\System32\api-ms-win-security-base-l1-1-0.dll: 6.1.7601.18229 >= 6.1.7601.17617 (True)
    00:01.966: INFO:    Version Check for (KB2731771) of C:\Windows\System32\conhost.exe: 6.1.7601.18229 >= 6.1.7601.17888 (True)
    00:01.966: INFO:    Checking for correct version of C:\Windows\Fonts\segoeui.ttf.
    00:01.966: INFO:    Version Check for (KB2786081) of C:\Windows\System32\taskhost.exe: 6.1.7601.18010 >= 6.1.7601.18010 (True)
    00:01.982: INFO:    Version Check for (KB2888049) of C:\Windows\System32\drivers\tcpip.sys: 6.1.7601.18254 >= 6.1.7601.18254 (True)
    00:02.013: INFO:    Version Check for (KB2882822) of C:\Windows\System32\tdh.dll: 6.1.7601.18247 >= 6.1.7601.18247 (True)
    00:54.258: INFO:    Waiting for 0 prerequisite downloads.
    00:54.258: INFO:    The neutral pack was not successfully downloaded from the internet. Installation will continue using the extracted package.
    00:54.258: INFO:    Waiting for 0 language pack downloads.
    00:54.258: INFO:    Language pack downloads completed. (exit code = 0xffffffff (4294967295)).
    00:54.273: INFO:    No reboot logic message NrApiStart(0), lParam=0x002a2778 returned 0x00000000.
    00:54.492: INFO:    No reboot logic message NrApiScan(1), lParam=0x00000001 returned 0x00000000.
    00:54.492: INFO:    No reboot logic message NrApiStartInstall(4), lParam=0x00000001 returned 0x00000014.
    00:54.492: INFO:    Installing with the extracted package. C:\Windows\TEMP\IE182A.tmp\IE11-neutral.Extracted.cab
    00:54.492: INFO:    Launched package installation: C:\Windows\SysNative\dism.exe /online /add-package /packagepath:C:\Windows\TEMP\IE182A.tmp\IE11-neutral.Extracted.cab /quiet /norestart
    01:21.792: INFO:    Process exit code 0x00000002 (2) [The system cannot find the file specified. ]
    01:21.792: ERROR:   Neutral package installation failed (exit code = 0x00000002 (2)).
    01:21.792: INFO:    No reboot logic message NrApiInstallDone(7), lParam=0x00009c59 returned 0x00000000.
    01:21.792: INFO:    No reboot logic message NrApiStartFinish(11), lParam=0x00000000 returned 0x00000000.
    01:21.807: INFO:    No reboot logic message NrApiFinish(12), lParam=0x00000000 returned 0x00000016.
    01:21.807: INFO:    Waiting for Active Setup to complete.
    01:21.807: INFO:    Waiting for Active Setup to complete. ({89820200-ECBD-11cf-8B85-00AA005B4383})
    01:26.815: INFO:    Waiting for Active Setup to complete. ({89820200-ECBD-11cf-8B85-00AA005B4383})
    01:31.823: INFO:    Waiting for Active Setup to complete. ({89820200-ECBD-11cf-8B85-00AA005B4383})
    01:37.298: INFO:    Waiting for Active Setup to complete. ({89820200-ECBD-11cf-8B85-00AA005B4383})
    01:42.306: INFO:    Waiting for Active Setup to complete. ({89820200-ECBD-11cf-8B85-00AA005B4383})
    01:47.314: INFO:    Waiting for Active Setup to complete. ({A509B1A7-37EF-4b3f-8CFC-4F3A74704073})

    PS C:\Windows> DIR -FILTER vbscript.DLL -RECURSE -NAME | get-item | select -expandproperty VersionInfo | sort-object FileVersion, FileName | ft File
    Version, FileName -Autosize
    FileVersion FileName
    5.8.7601.16978 C:\Windows\System32\vbscript.dll
    5.8.7601.16978 C:\Windows\SysWOW64\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7600.16385_none_a44ef4f6479809f0\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7601.17514_none_a68008be44868d8a\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16450_none_bcd6d18300a40070\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16455_none_bcdbd2f5009f7f23\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16476_none_bcc7336700aed05c\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16526_none_bcfd44e9008641ce\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20562_none_bd579ef619c7eed9\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20586_none_bd46004619d48c17\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20637_none_bd7d121219ab16e0\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7600.16385_none_aea39f487bf8cbeb\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7601.17514_none_b0d4b31078e74f85\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16450_none_c72b7bd53504c26b\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16455_none_c7307d473500411e\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16476_none_c71bddb9350f9257\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.16526_none_c751ef3b34e703c9\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20562_none_c7ac49484e28b0d4\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20586_none_c79aaa984e354e12\vbscript.dll
    5.8.7601.16978 C:\Windows\winsxs\wow64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_9.4.8112.20637_none_c7d1bc644e0bd8db\vbscript.dll
    PS C:\Windows> get-item -path ".\SysWOW64\vbscript.dll" | fl *
    PSPath : Microsoft.PowerShell.Core\FileSystem::C:\Windows\SysWOW64\vbscript.dll
    PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\Windows\SysWOW64
    PSChildName : vbscript.dll
    PSDrive : C
    PSProvider : Microsoft.PowerShell.Core\FileSystem
    PSIsContainer : False
    VersionInfo : File: C:\Windows\SysWOW64\vbscript.dll
    InternalName: vbscript.dll
    OriginalFilename: vbscript.dll.mui
    FileVersion: 5.8.7601.16978
    FileDescription: Microsoft r VBScript
    Product: Microsoft r VBScript
    ProductVersion: 5.8.7601.16978
    Debug: False
    Patched: False
    PreRelease: False
    PrivateBuild: False
    SpecialBuild: False
    Language: English (United States)
    BaseName : vbscript
    Mode : -a---
    Name : vbscript.dll
    Length : 420864
    DirectoryName : C:\Windows\SysWOW64
    Directory : C:\Windows\SysWOW64
    IsReadOnly : False
    Exists : True
    FullName : C:\Windows\SysWOW64\vbscript.dll
    Extension : .dll
    CreationTime : 1/15/2014 2:37:08 PM
    CreationTimeUtc : 1/15/2014 7:37:08 PM
    LastAccessTime : 1/15/2014 2:37:08 PM
    LastAccessTimeUtc : 1/15/2014 7:37:08 PM
    LastWriteTime : 11/14/2013 5:38:16 PM
    LastWriteTimeUtc : 11/14/2013 10:38:16 PM
    Attributes : Archive

  • How to set packages and classpath

    Hi,
    I want to know about packages and classpath. I have these questions
    1, If I put a class in a package(work.util) is it necessary to put the java file in the same directory/directory hierarchy as mentioned in the package declaration. I have to compile this class, run it from main method and must be able for other classes to import.
    2. If a package have subpackages(work.util.db) do I have to set the classpath to subdirectory also to run that class.
    3. If a class is in package is it possible to run the class without prefixing the package name. I need to do this in the text editor so that I can run any program by pressing a hot key.
    rgds
    Antony Paul

    1, If I put a class in a package(work.util) is it
    necessary to put the java file in the same
    directory/directory hierarchy as mentioned in the
    package declaration.Strictly speaking, this isn't covered by the spec - it depends on what compiler and ClassLoader you are using. If you're using Sun's JDK, then yes.
    2. If a package have subpackages(work.util.db) do I
    have to set the classpath to subdirectory also to run
    that class. No. You should add the directory above work/util/db to your classpath. You should not add work, or work/util or work/util/db.
    E.g., if your Java files are in C:/MyProject/JavaSrc/work/util/db, and the package name is work.util.db, then you should have C:/MyProject/JavaSrc on your classpath (or have "." (dot) on your classpath, and compile and run from that same directory).
    3. If a class is in package is it possible to run the
    class without prefixing the package name. I need to do
    this in the text editor so that I can run any program
    by pressing a hot key.If you mean "in order to run work.util.db.Main do I need to type java work.util.db.Main, or just java Main", then you do indeed need the fully qualified class name (otherwise, how would the runtime environment know which class you mean? - there could be any number of classes called Main in any class, and it would have to search every directory and subdirectory on your classpath to find them.

  • How to show PL/SQL package  output and fix below error(please help)

    --PACKAGE SPECIFICATION AND BODY complied successfully but I can not see output some error are also there..  please help ;how to fix this problem
    -- with code
    CREATE OR REPLACE PACKAGE package_variables IS
    -- Declare package components.
    PROCEDURE set(value VARCHAR2);
    FUNCTION get RETURN VARCHAR2;
    END package_variables;
    CREATE OR REPLACE PACKAGE BODY package_variables IS
    -- Declare package scope variable.
    variable VARCHAR2(20) := 'Initial Value';
    -- Define function
    FUNCTION get RETURN VARCHAR2 IS
    BEGIN
    RETURN variable;
    END get;
    -- Define procedure.
    PROCEDURE set(value VARCHAR2) IS
    BEGIN
    variable := value;
    END set;
    END package_variables;
    VARIABLE outcome VARCHAR2(20)
    CALL package_variables.get() INTO :outcome;
    SELECT :outcome AS outcome FROM dual;
    EXECUTE package_variables.set('New Value');
    CALL package_variables.get() INTO :outcome;
    SELECT :outcome AS outcome FROM dual;
    OUTPUT
    PACKAGE package_variables Compiled.
    PACKAGE BODY package_variables Compiled.
    Error starting at line 2 in command:
    CALL package_variables.get() INTO :outcome
    Error report:
    SQL Error: ORA-01008: not all variables bound
    01008. 00000 - "not all variables bound"
    *Cause:   
    *Action:
    OUTCOME
    1 rows selected
    anonymous block completed
    Error starting at line 2 in command:
    CALL package_variables.get() INTO :outcome
    Error report:
    SQL Error: ORA-01008: not all variables bound
    01008. 00000 - "not all variables bound"
    *Cause:   
    *Action:
    OUTCOME
    1 rows selected
    */

    EXECUTE package_variables.set('New Value');
    CALL package_variables.get INTO :outcome;
    SELECT :outcome AS outcome FROM dual;
    OUTPUT
    anonymous block completed
    Error starting at line 2 in command:
    CALL package_variables.get INTO :outcome
    Error report:
    SQL Error: ORA-06576: not a valid function or procedure name
    06576. 00000 - "not a valid function or procedure name"
    *Cause:    Could not find a function (if an INTO clause was present) or
    a procedure (if the statement did not have an INTO clause) to
    call.
    *Action:   Change the statement to invoke a function or procedure
    OUTCOME
    1 rows selected

  • Package and CLASSPATH

    Hi,
    I have a hard time understanding the package and CLASSPATH. I want to have a solid understanding of it. I read some tutorials online but didn't make me fully understand. How does declaring a package effect the CLASSPATH? Say I have following:
    (This is from one of the tutorial- http://home.cogeco.ca/~ve3ll/jatutor4.htm)
    C:\myclasses\world\moon\HelloMoon.java
    C:\myclasses\world\HelloWorld.java
    HelloMoon.java is defined as
    package world.moon;
    public class HelloMoon {
    private String holeName = "rabbit hole";
    public String getHoleName() {
    return holeName;
    public void setHole(String holeName) {
    this.holeName = holeName;
    public static void main(String[] args){
         HelloMoon moon = new HelloMoon();
         System.out.println(moon.getHoleName());
    HelloWorld is defined as
    package world;
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World");
    if the CLASSPATH is set : set CLASSPATH=.;C:\myclasses;
    Once the CLASSPATH has been set (and compiled .java file); it can be called using the following from any path of directory:
    java world.HelloWorld
    java world.moon.HelloMoon
    But it does not explain the details why it works this way. Also, if I want to run it without using "world" prefix to run HelloWorld, what do I need to set up?
    also for the HelloMoon?
    When I tried running those classes by going to an appropriate directory, I got the noClassDefFound (using command like "java HelloWorld" or java "HelloMoon").
    Thanks in advance...

    [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
    [How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
    [Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
    [Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
    [Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • This installation package could not be opened. Verify that the package exists and that you can access it, or contact the applikcation vendor to verify that this is a valid Windows Installer package." How to fix this installation error?

    Does anyone know, how to fix  ' This installation package could not be opened. Verify that the package exists and that you can access it, or contact the applikcation vendor to verify that this is a valid Windows Installer package." ?

    At what point in the process are you getting this message? Have you tried downloading a fresh copy of the iTunes setup file from http://www.apple.com/itunes/download/ ?
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

Maybe you are looking for

  • Can't save anything to desktop

    I can't save anything to my desktop all of a sudden... help?

  • How to disable a single row of a multi-line text item

    I am trying to disable a date and a price on each row where the date is current or in the past (on theory the user can't update reference data that is in effect or past, only data which is not yet in use). It appears that forms 6i will make this an a

  • Tighter Integration with Active Directory User Groups

    I just wrapped up a Jabber deployment with IM&P 9.1(1) and J4W clients 9.1(3). The customer asked me if it is on Cisco's roadmap to allow groups in Active Directory to be pulled into the Jabber client.  The primary business case is to allow those in

  • Pager Tag Library & JSLT

    Hi I try to incorporate paging in my web application and I find Pager Tag Library in http://jsptags.com/tags/navigation/pager/index.jsp. Here is my code <%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %> <%-- Retrieve data--%> <

  • Macbook 2011 not booting

    Hello, i have a macbook pro 15' late 2011 and it stopped booting. The apple disappear and the. It get stuck in a gray screen. I saw on the web that it would be possible to apply a software fix, disabling the video card. Is that true? IN my country a