When instructed "the java binary in your path"

please help
when Im instructed with the following:
a JDK or JRE 1.0+ (see www.javasoft.com) installed and the java binary in your PATH
my operating system is windows server 2000
how do i set the path to to the java binary, Is the java binary. Is the java binary the bin folder, if so i have two of those, one directly under the jdk folder and one under jre folder.
Do i use autoexecute.bat, if so how.
thank you for any help rendered.
Yaary

Oh oh.
Java uses the sys var CLASSPATH to look for - well - java classes.
For that reason, CLASSPATH should always include ".;<yourJavaDir>\jre\lib\rt.jar" or ".;<yourJavaDir>\j2re1.4.x\lib\rt.jar". This ensures that Java can find the classes that come with the distribution (i.e. everything in rt.jar) and all classes in the directory from which you invoke Java or Javac.
Now, the "<yourJavaDir>\jdk1.x.x\bin" thingie belongs into your PATH variable - that's the var your system uses to look for executables, i.e. java or javac.
Regards, Thomas

Similar Messages

  • ORA-03113 error when running the Java stored proc demos

    Hi there,
    Has anyone else run into this issue. When attempting to transfer an object type from Java to Oracle - through a Java stored proc - the session crashes with:
    ORA-03113: end-of-file on communication channelLooking in the trace file generated the error message looks something like:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0x8fe04468] [SIGTRAP] [unknown code] [0x8FE59034] [] []
    Current SQL statement for this session:
    select pointruntime.jdistance(point(1, 2), point(2, 3)) from dual
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex     
    location             type     point                (? means dubious value)    
    ksedmp+764           call     ksedst               0 ? 2C4F4A ? 2C ? 98968000 ?
                                                       DB02C ? 27A50000 ?
    ssexhd+956           call     ksedmp               3 ? 0 ? 8FE5E790 ? 5905870 ?
                                                       8FE0434C ? 40895E4 ?
    0x9012c860           call     ssexhd               5 ? BFFEEF70 ? BFFEEFB0 ? 0 ?
                                                       0 ? 0 ?As you can see from the trace snippet above, I was attempting to run one of the Oracle Java stored procedure demos. Has anyone successfully run those demos? Specifically the ones where complex types (table objects or the Point object) are passed back to Oracle from the JVM.
    I would appreciate some help with this. The code works fine in a Windows or Solaris environment but barfs on Apple. Truly annoying....
    Anyone?
    Thanks in advance,
    Alex

    Yes,
    Apologies for not stating that information, Steve. Was a bit naughty of me! I guess the reason I didn't was because I just wanted to hear if anyone else running Oracle on Mac received such errors when executing the Java stored proc demos (specifically, the execution of PointRuntime.jDistance). Nevertheless, here's the relevant info from the trace file:
    Dump file /Users/oracle/admin/sandbox/udump/sandbox_ora_1861.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    ORACLE_HOME = /Users/oracle/product/10.1.0/db
    System name:     Darwin
    Node name:     maczilla.local
    Release:     8.3.0
    Version:     Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC
    Machine:     Power Macintosh
    Instance name: sandbox
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Unix process pid: 1861, image: [email protected] for the Java version, according to the readme file in the javavm directory, I am running 1.4.1:
    1.5  Java Compatibility
    This release has been thoroughly tested with Sun's Java Compatibility
    Kit for the JDK 1.4.1. Oracle is committed to OracleJVM keeping pace
    with Java and other Internet standards.

  • When will the "How I Met Your Mother" final season 9 be released on iTunes?

    When will the "How I Met Your Mother" final season 9 be released on iTunes? I really don't want to miss it! I know it starts on the 23rd of September in America but I would like to see it at the same time in England! Therefore O want to download it onto my iPad! but when is it getting released on iTunes so I can doneload it! Thank you

    It will be available whenever the studio provides it to itunes.

  • Windows refuses to run the java.exe in my path.

    Hi all -
    I'm having some problems managing Java in Windows. All my experience with Java is primarily from a Unix environment, so I'm really having a tough time solving this issue.
    Windows is obsessed with using java from c:\program files\Java\jre1.5.0. That directory isn't in my path anywhere, and I don't have the problem from within Eclipse because you can specify your environment, but if I type 'java' from a command line, it invokes a version from that directory. I only noticed when trying to debug an RMI problem related to this and I started my project with "java -server" and it gave me the error:
    "Error: no `server' JVM at `C:\Program Files\Java\jre1.5.0\bin\server\jvm.dll'."
    Of course if I type in the full path to the java.exe I want to use, its fine.
    I've tried just removing the directory in the hopes that it would then take a look at my path variable and find the correct version, but then I just get the error:
    "Error: could not open `C:\Program Files\Java\jre1.5.0\lib\i386\jvm.cfg'"
    It's driving me mad! What do I have to do to tell Windows to give up on this directory? I've looked at the registry and it is in there about 30 times. That seems a little crazy to me, but I'm just not a Windows guy.
    Thanks
    Jason

    To allow "naked" java commands, Sun places a copy of java.exe and javaw.exe in a Windows directory that's on the execution path. In 2000/XP they're in WINDOWS\system32 (along with a copy of the Web Start program javaws.exe.)
    Either remove them, or place the directory that contains the wanted java.exe in the path before the WINDOWS\system32 entry - the first copy found will be used.

  • Do you have the java api on your computer?

    Just an observation.
    Earlier when i started java programing, i used alot of books and tutorials which i still do. when i was faced with a problem eg. a method to do this or that, i used to look for tutorials for how to do it, and sometimes i couldnt get. After Many months, i stumbled upon java api, a documents that cointains all methods, classes and interfaces in java. my output increased, posts in this forum to seek help reduced, and am happier now?
    Dou you have this api in your computer? i personally think newbies can accelerate their learning path by having this two references
    1. the java tutorial
    2. the java api
    your thoughts?

    your thoughts?That it's time for you to stumble across the downloads section of this site and download jdk-6-doc.zip. You can download the Tutorials here
    db
    edit Lousy link parsing. Just go to the Tutorial home page and click the link provided.
    Are https links not allowed? Crazy.
    Edited by: Darryl.Burke

  • UDESEncrypt Errors when using the JAVA engine (NW IDM 7.0)

    Folks,
    I'm seeing an error when I use the uDESEncrypt function with the Java Engine in NW IDM SP2 Patch 3.
    The error I am getting is:
    runFunctionsInString($FUNCTION.encrPWD()$$) got exception
    org.mozilla.javascript.EvaluatorException: uDESEncrypt: Key should be exactly 24 bytes long.
    The code calling it is:
    // Main function: encrPWD
    function encrPWD(Par){
         //Example calling DSE internal function
         //UserFunc.uStop("Terminated by user");
         key = "C:\Program Files\SAP\IdM\Workflow\configs\KEY\keys.ini";
         OutString = UserFunc.uDESEncrypt(key, Par);
         return OutString;
    I have also seen this error when using Patch 4.
    Interestingly enough, the error does not occur when using the Windows Engine.  Anyone else seeing this?
    Thanks,
    Matt

    Hi Matthew,
    Try to replace the '\' with '
    key = "C:
    Program Files
    SAP
    IdM
    Workflow
    configs
    KEY
    keys.ini";
    Alternative approaches,
    1) setting key empty and it will look into %DSE_HOME%\KEY\key.ini
      which should be C:\Program Files\SAP\IdM\Identity Center\Key\key.ini on default installation path.
    2) or setting the key to something like = 6D5A2AF59B1CDD7F9592484F178331C891537A3F9B91D362
       a 24 byte key...
    Also when using DES you should ensure that in Identity Center underneath Options/General
    you have encryption algorithm set to 3DES.
    Normally if you intend to use this for password provisioning in IC you would also
    on the identity store (for instance 'Enterprise people') underneath 'password policy' check
    of for 'enable password provisioning.'
    By doing so the MX_ENCRYPTED_PASSWORD with be set when operating through
    workflow (3DES encryption version of the MX_PASSWORD) which allows you to obtain password
    when provisioning to other target systems...

  • Error when building the Java pricing userexit manual code

    I went throught the manual for the pricing userexit manual... it tells you to ignore the errors when you do an ant build but I want to remove all the errors since they dont let the rest the code compile.... where are the jars for these errors: 
    [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:16: package com.sap.vmc.logging does not exist
         [javadoc] import com.sap.vmc.logging.Category;
         [javadoc]                            ^
         [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:26: cannot resolve symbol
         [javadoc] symbol  : class Category
         [javadoc] location: class com.sap.spc.document.DocumentConstants
         [javadoc]     public static final Category CATEGORY = Category.getCategory(Category.APPLICATIONS, "/AP/SPC/Document");
         [javadoc]                         ^

    See the [SAP note 809820 - Userexit concept for pricing|https://service.sap.com/sap/support/notes/809820]
    Use ZIP file the attached to the above note - PRC_UE_CUSTOMER_V105.zip
    ZIP file contains an Eclipse .project file that has the required build path. If you read the documents carefully, it does refer this project file.
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry sourcepath="lib_src/src" kind="lib" path="lib_api"/>
         <classpathentry kind="lib" path="lib_vmc_api/base_services_stripped_api.jar"/>
         <classpathentry kind="output" path="bin"/>
    </classpath>
    Again read the documents thoroughly. They are neither fictions nor non-fictions, but technical documents written with care. So, we must also read them with care. If we don't follow them, then it is time to engage someone who does. )
    BTW, coming back to the Java basics - One must have a class and source files to debug. You won't get a class file unless it is compiled. The Java file won't compile correctly if it has syntax / reference errors. Unfortunately or fortunately, all these apply to the IPC java userexit development as well.
    Easwar Ram

  • Cannot read MAC address when Installing the Java workplace

    Hi All,
         While installing the Java Workplace for 2004s, following error happened:
    ERROR 2008-03-25 11:50:53
    CJS-30059  Java EE Engine configuration error.<br>DIAGNOSIS: Error when configuring J2EE Engine. See output of logfile umconfigurator.log: 'Mar 25, 2008 11:50:49... Info: UME configurator (com.sap.security.tools.UMConfiguratorLoad) called for action "setup"PerfTimes : loadNativeLayer: loading jperflib failed. no jperflib in java.library.pathjava.text.ParseException: cannot read MAC address from [
    Windows IP Configuration
            Host Name . . . . . . . . . . . . : IDSMYN
            Primary Dns Suffix  . . . . . . . :
            Node Type . . . . . . . . . . . . : Hybrid
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
    Ethernet adapter ] using ipconfig /all     at com.sap.bc.krn.perf.PerfTimes.windowsParseMacAddress(PerfTimes.java:1173)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:289)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:260)     at com.sap.tc.logging.UID.getnodeaddress(UID.java:303)     at com.sap.tc.logging.UID.<clinit>(UID.java:59)     at com.sap.tc.logging.GUId.toString(GUId.java:46)     at java.lang.String.valueOf(String.java:2131)     at java.lang.StringBuffer.append(StringBuffer.java:370)     at com.sap.tc.logging.ListFormatter.format(ListFormatter.java:215)     at com.sap.tc.logging.Log.writeInt(Log.java:864)     at com.sap.tc.logging.Log.writeInternalByAPI(Log.java:930)     at com.sap.tc.logging.LogController.writeToLogs(LogController.java:3160)     at com.sap.tc.logging.LogController.messageInternal(LogController.java:2280)     at com.sap.tc.logging.LogController.logInt(LogController.java:2477)     at com.sap.tc.logging.LogController.logInt(LogController.java:2432)     at com.sap.tc.logging.LogController.logIntByAPI(LogController.java:2231)     at com.sap.tc.logging.APILogger.instrumentIntByAPI(APILogger.java:59)     at com.sap.tc.logging.LogController.addLog(LogController.java:1320)     at com.sap.tc.logging.PropertiesConfigurator.configure(PropertiesConfigurator.java:1119)     at com.sap.engine.core.configuration.impl.Logging.<init>(Logging.java:54)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:176)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:60)     at com.sap.security.tools.UMConfigModel.<init>(UMConfigModel.java:79)     at com.sap.security.tools.UMConfiguratorLoad.main(UMConfiguratorLoad.java:179)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)***************************************************************                                                         **** getMacAddress() failed                                  ****                                                         **** trying to get mac address from                          **** file C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MAXDB\MAC_ADDRESS**                                                         **************************************************************Exception : CreateProcess: cat MAC_ADDRESS error=2**************************************************************                                                         **** getMacAddress() failed                                  ****                                                         **** failed to get mac address with Runtime.getRuntime().exec( cat MAC_ADDRESS )**                                                         **************************************************************java.text.ParseException: cannot read MAC address for IDSMYN from [] using cat MAC_ADDRESS     at com.sap.bc.krn.perf.PerfTimes.voidParseMacAddress(PerfTimes.java:1326)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:571)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:260)     at com.sap.tc.logging.UID.getnodeaddress(UID.java:303)     at com.sap.tc.logging.UID.<clinit>(UID.java:59)     at com.sap.tc.logging.GUId.toString(GUId.java:46)     at java.lang.String.valueOf(String.java:2131)     at java.lang.StringBuffer.append(StringBuffer.java:370)     at com.sap.tc.logging.ListFormatter.format(ListFormatter.java:215)     at com.sap.tc.logging.Log.writeInt(Log.java:864)     at com.sap.tc.logging.Log.writeInternalByAPI(Log.java:930)     at com.sap.tc.logging.LogController.writeToLogs(LogController.java:3160)     at com.sap.tc.logging.LogController.messageInternal(LogController.java:2280)     at com.sap.tc.logging.LogController.logInt(LogController.java:2477)     at com.sap.tc.logging.LogController.logInt(LogController.java:2432)     at com.sap.tc.logging.LogController.logIntByAPI(LogController.java:2231)     at com.sap.tc.logging.APILogger.instrumentIntByAPI(APILogger.java:59)     at com.sap.tc.logging.LogController.addLog(LogController.java:1320)     at com.sap.tc.logging.PropertiesConfigurator.configure(PropertiesConfigurator.java:1119)     at com.sap.engine.core.configuration.impl.Logging.<init>(Logging.java:54)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:176)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:60)     at com.sap.security.tools.UMConfigModel.<init>(UMConfigModel.java:79)     at com.sap.security.tools.UMConfiguratorLoad.main(UMConfiguratorLoad.java:179)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)**************************************************************                                                         **** Suggested workaround:                                   ****                                                         **** create file C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MAXDB\MAC_ADDRESS** with hostname and mac address in the following format:  **** IDSMYN xx:xx:xx:xx:xx:xx**                                                         ***************************************************************java.text.ParseException: cannot read MAC address from [
    Windows IP Configuration
            Host Name . . . . . . . . . . . . : IDSMYN
            Primary Dns Suffix  . . . . . . . :
            Node Type . . . . . . . . . . . . : Hybrid
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
    Ethernet adapter ] using ipconfig /all     at com.sap.bc.krn.perf.PerfTimes.windowsParseMacAddress(PerfTimes.java:1173)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:289)     at com.sap.bc.krn.perf.PerfTimes.getMacAddress(PerfTimes.java:260)     at com.sap.tc.logging.UID.getnodeaddress(UID.java:303)     at com.sap.tc.logging.UID.<clinit>(UID.java:59)     at com.sap.tc.logging.GUId.toString(GUId.java:46)     at java.lang.String.valueOf(String.java:2131)     at java.lang.StringBuffer.append(StringBuffer.java:370)     at com.sap.tc.logging.ListFormatter.format(ListFormatter.java:215)     at com.sap.tc.logging.Log.writeInt(Log.java:864)     at com.sap.tc.logging.Log.writeInternalByAPI(Log.java:930)     at com.sap.tc.logging.LogController.writeToLogs(LogController.java:3160)     at com.sap.tc.logging.LogController.messageInternal(LogController.java:2280)     at com.sap.tc.logging.LogController.logInt(LogController.java:2477)     at com.sap.tc.logging.LogController.logInt(LogController.java:2432)     at com.sap.tc.logging.LogController.logIntByAPI(LogController.java:2231)     at com.sap.tc.logging.APILogger.instrumentIntByAPI(APILogger.java:59)     at com.sap.tc.logging.LogController.addLog(LogController.java:1320)     at com.sap.tc.logging.PropertiesConfigurator.configure(PropertiesConfigurator.java:1119)     at com.sap.engine.core.configuration.impl.Logging.<init>(Logging.java:54)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:176)     at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:60)     at com.sap.security.tools.UMConfigModel.<init>(UMConfigModel.java:79)     at com.sap.security.tools.UMConfiguratorLoad.main(UMConfiguratorLoad.java:179)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)Mar 25, 2008 11:50:53... Info: Using SID "J11" for secure storageMar 25, 2008 11:50:53... Info: Created group entry in secure storage: Group "Administrators", roles "Administrator"Mar 25, 2008 11:50:53... Info: Created group entry in secure storage: Group "Guests", roles ""Mar 25, 2008 11:50:53... Info: Created user entry in secure storage: User "Administrator", password set, parent groups "Administrators", locked "false", roles ""Mar 25, 2008 11:50:53... Info: Created user entry in secure storage: User "Guest", password not set, parent groups "Guests", locked "true", roles ""Mar 25, 2008 11:50:53... Info: Inserted administrator user data into secure storage: "Administrator"Mar 25, 2008 11:50:53... Info: Setting UME property "ume.login.guest_user.uniqueids" to "Guest"Mar 25, 2008 11:50:53... Info: Setting UME property "ume.persistence.data_source_configuration" to "dataSourceConfiguration_database_only.xml"Mar 25, 2008 11:50:53... Warning: UME property "ume.authenticationFactory" shall be set, but does not existMar 25, 2008 11:50:53... Info: Setting UME property "ume.logonAuthenticationFactory" to "com.sap.security.core.logon.imp.SAPJ2EEAuthenticator"Mar 25, 2008 11:50:53... Info: Setting UME property "ume.login.context" to "ticket"Mar 25, 2008 11:50:53... Info: Setting UME property "ume.login.context.default" to "ticket"Mar 25, 2008 11:50:53... Info: Setting UME property "login.ticket_keyalias" to "SAPLogonTicketKeypair"Mar 25, 2008 11:50:53... Info: Setting UME property "login.ticket_keystore" to "TicketKeystore"Mar 25, 2008 11:50:53... Info: Setting UME property "login.ticket_lifetime" to "8"Mar 25, 2008 11:50:53... Info: Setting UME property "ume.superadmin.activated" to "FALSE"Mar 25, 2008 11:50:53... Info: Set role references for jndi_all_operations in path "security/configurations/service.naming/security/roles/UME User Store/jndi_all_operations"Mar 25, 2008 11:50:53... Info: Set role references for jndi_get_initial_context in path "security/configurations/service.naming/security/roles/UME User Store/jndi_get_initial_context"Mar 25, 2008 11:50:53... Info: Set role references for telnet in path "security/configurations/service.telnet/security/roles/UME User Store/telnet_login"Mar 25, 2008 11:50:53... Info: Added group "Administrators" to path "security/roles/UME User Store/administrators/groups"Mar 25, 2008 11:50:53... Info: Added group "Guests" to path "security/roles/UME User Store/guests/groups"Mar 25, 2008 11:50:53... Info: Added group "Everyone" to path "security/roles/UME User Store/all/groups"Mar 25, 2008 11:50:53... Info: Changing JMS username in path "jms_provider/DEFAULT/default/conn_factories/XATopicConnectionFactory" to "Administrator"Mar 25, 2008 11:50:53... Info: Changing JMS username in path "jms_provider/DEFAULT/default/conn_factories/QueueConnectionFactory" to "Administrator"Mar 25, 2008 11:50:53... Info: Changing JMS username in path "jms_provider/DEFAULT/default/conn_factories/TopicConnectionFactory" to "Administrator"Mar 25, 2008 11:50:53... Info: Changing JMS username in path "jms_provider/DEFAULT/default/conn_factories/XAQueueConnectionFactory" to "Administrator"Mar 25, 2008 11:50:53... Info: Operation executed successfullyMar 25, 2008 11:50:53... Info: Committed changes to configuration managerMar 25, 2008 11:50:53... Info: Leaving with return code 0'.
    Anyone knows how to solve it?
    Thanks in advance.
    YiNing

    Posting this in the Netweaver Administrator section may yield better results.

  • When does the Java main(String args[]) method exit?

    Hi all,
    I and my colleagues want to know, when does the main() method exit?
    we wrote a small code as follows:
    import java.awt.*;
    public class Test {
    public static void main(String[] args) {
    Frame f = new Frame("hi");
    f.show();
    System.out.println("after show");
    and ran the program, in which case I could see the printed message "after show", but although there is no code after the System.out.println(), the Java virtual machine does not exit and waits for the Frame to close.
    My question is has the main method exited in this case? since it clearly shows that it does not have any more code to execute. Does java create the main method as a thread or as a process?
    regards,
    Harshad

    To make your application terminate you need to add code to cause the AWT thread to handle the termination. In your code, before f.show(), try:
    f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        dispose();
      public void windowClosed(WindowEvent e) {
        System.exit(0);
    });Now, at least you can click on the little "X" on the upper right-hand corner of the Frame (at least in Win95/98/NT) environments) to cause your application to receive a window closing event. It is also possible to add a menu with an option to exit; in that case I'd use an EventQueue to cause a window closing event to be sent.

  • Error when compiling the Java file

    Hi I have created a jsp program that uses the java files. i have jboss installed. when i compile the java file it gives compilation error saying that javax.servlet.jsp.tagext.TagSupport not found.
    Although when i installed the Tomcat seperately i did not get any compilation error. can anyone tell me how to get out of this problem when Tomcat is not installed seperately.
    Thanks,
    Rakesh

    Hi
    I think these errors are due to incorrect classpath settings.While compiling HelloHome ..Helloremote must be in classpath.Also if u have packaged them u must be in the package root during compilation ie if uor remote & home interface is in a package called "ejbserver"
    then while compiling u must be in the folder above ejbserver & compile command is
    javac .\ejbserver\*.java
    If uor home & remote interface is in different folder check wheather u have imported the remote interface inside home interface file.

  • When will the Universal Binary version of Final Cut Express HD be available

    I'm purchasing a new mac mini Intel core duo and I need to know when the Universal Binary version of Final Cut Express HD will be available?

    True but Apple will not support Mac Mini and MacBook's for some stupid reason.
    It's available now and it's called FINAL CUT EXPRESS
    HD 3.5
    I'm purchasing a new mac mini Intel core duo and I
    need to know when the Universal Binary version of
    Final Cut Express HD will be available?

  • Problem when open the Java Berkeley DB

    I'm using the Java Berkeley DB version: je-6.2.31.jar
    - My database has about 4 GB of info.
    - I use a Replicated Environment (but now I'm currently pointing the -nodeHost and -helperHost to the same IP and port)
    - I'm using a StoredSortedMap to store some key/value info. (sorted duplicates is set to true)
    I use the database correctly for some time.
    Normaly I open the database and close many times;
    There is enough disk, and I already tested it in different HDs, (even with a SSD)
    I casually receive the bellow error, it's not more possible to open the data base:
    com.sleepycat.je.EnvironmentFailureException: (JE 6.2.31) Problem creating output files in: E:\data\database/je.info UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
      at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:330)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1484)
      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:474)
      at com.sleepycat.je.rep.impl.RepImpl.<init>(RepImpl.java:267)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      at com.sleepycat.je.dbi.DbEnvPool.loadRepImpl(DbEnvPool.java:242)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:178)
      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:251)
      at com.sleepycat.je.Environment.<init>(Environment.java:232)
      at com.sleepycat.je.Environment.<init>(Environment.java:188)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:573)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:443)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:507)
    Caused by: java.io.IOException: Couldn't get lock for E:\data\database/je.info
      at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
      at java.util.logging.FileHandler.<init>(FileHandler.java:394)
      at com.sleepycat.je.util.FileHandler.<init>(FileHandler.java:85)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1478)
      ... 24 more

    I got the same behavior again:
    I open and close the DB many times about 50 times.
    OBS: I interrupt the java process abruptly not by API.
    I think this is not a reason to get the files easily corrupted...
    com.sleepycat.je.EnvironmentFailureException: (JE 6.2.31) Problem creating output files in: E:\data\database/je.info UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
      at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:330)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1484)
      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:474)
      at com.sleepycat.je.rep.impl.RepImpl.<init>(RepImpl.java:267)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      at com.sleepycat.je.dbi.DbEnvPool.loadRepImpl(DbEnvPool.java:242)
      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:178)
      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:251)
      at com.sleepycat.je.Environment.<init>(Environment.java:232)
      at com.sleepycat.je.Environment.<init>(Environment.java:188)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:573)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:443)
      at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:507)
    Caused by: java.io.IOException: Couldn't get lock for E:\data\database/je.info
      at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
      at java.util.logging.FileHandler.<init>(FileHandler.java:394)
      at com.sleepycat.je.util.FileHandler.<init>(FileHandler.java:85)
      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1478)
      ... 24 more

  • HELP:  Connecting to the Java Dictionary from your Local NDS Environment...

    In order to simplify local development and remain consistent with the use and data in the Java Data Dictionary, we would like our developers to connect to the JDD on the development server.  We believe we can accomplish this, but the question is "How do we set security on the central JDD so that developers cannot update tables and data that do not belong to them"?? 
    Any help would be greatly appreciated.

    Hello,
    I work with Peggy and wanted to clarify our issue.  We know we can contorl access to the Java Dictionary within NetWeaver by assigning them to tracks.  That's not our concern right now.  What we're worried about is that our developers will have to set up a DataSource to the Oracle DB on the development server, and will therefore know the password to that database.  Once they know the password they would be able to access the data in all the tables - including ones not in their own tracks - because they could use any database tool to get to that data.
    In addition, we're concerned not only about developers updating data, but even reading, as some of our data is sensitive data that only those working on the project should be allowed to even see.
    Thanks for any other advice you have,
    Jennifer

  • Error when starting the Java Web Start Based Sun Management

    After typing ttp://server-name:webserver-port/smconsole.jnlp i in my web browser (Firefox/Linux32, Chrome/Linux32, IE 6.0/Windows XP32) I have always the same error:
    JNLParseException[ Could not parse launch file. Error at line 0.]
         at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:88)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:61)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:319)
         at com.sun.javaws.Main.launchApp(Main.java:271)
         at com.sun.javaws.Main.continueInSecureThread(Main.java:216)
         at com.sun.javaws.Main$1.run(Main.java:104)
         at java.lang.Thread.run(Thread.java:619)Client side java
    $ java -version
    java version "1.6.0_12"
    Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
    Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)Any ideas?
    Cheers
    Andreas

    J2EE Database is not available via  test
    See logfile JdbcCon.log
    Please see the log file.If it says password expired .Please change the password for the schema user of J2ee database.In my case the user is sapdbqx1 and after resetiing the apssword it worked fine.
    Also onetime for annother system in XI Landscpe I had same issue.
    Solution: The listener file should have both logical hostname as well as physical host name entry.Then its worked.
    Sudhakar

  • When Does the app store charge your card?

    So I recently brought two new apps. These two new apps that I brought, were my first apps the I actually paid for. Once I put in my card information, I ordered the app and everything was successful. So, then I called my card to check my balance and it was the same. Not even one penny taken away! I don't know if I should be happy or worried. Does this always happen? PLEASE HELP!

    You will usually get an email directly from Apple regarding your past purchases (such as apps, music, books, etc.) They like to "batch-charge" your purchases.

Maybe you are looking for

  • Total Result is not working properly in QA

    Hi, We have requirement to show Total No. of Employees with respect to Age Band and Total No. of Employees in the entire Organization. We developed the reports as per the requirement to show employees in the age band <20 Years/ 21-30 Years/31-40 Year

  • Elements file saved as PDF --is it PDF/x-1a vector? or is it a raster file?

    Hi, Have a magazine requiring vector rather than raster*.  How do I tell which my Photoshop Elements saves it as?  And if I find out it is a raster, how do I change it to vector? As well, since I have no idea how their printer is color profiled, I'm

  • MISSING TEXT/GRAPHICS WHEN CREATING PDF

    Hello ... When I convert FrameMaker files to PDF, text and graphics are missing in the pdf. Sometimes this happens, sometimes not - the pattern seems to be whenever I am working with a large file (1MB or more)or if I have several windows open. My tem

  • Transfring from CSV file to LabVIEW 2011 and view it in XY Graph

    Hi, I would like to seek for your assistance in my project. I have an excel file which is in CSV format and intend to transfer it into LabVIEW 2011. I want to create a storage to store all the excel file for viewing purpose and in the mean while I wa

  • Flags and Monsters on my screen saver!!!

    I have my screen saver set to flashing up random pictures from iPhoto, and ever 10-20 pictures or so, I get a random picture of a different flag of the world, or sometimes an animated "cartoon monster" looking thing. What should I do?????