Problems with Running the Examples in J2ee tutorial-asant utility

Hello,
I am just working on the examples given in the J2EE tutorials given by SUN.
When trying to build the examples using the asant utility,I encounter an error message saying
"BUILD FAILED"
and it says some error with the build.xml file (C:\lib not found)
I think i have all my CLASSPATH settings and PATH setting right.Can anyone suggets me a solution to this problem,so that i can go ahead with the details.
Thanks
Sandeep

did you set the build.properties settings properly ?

Similar Messages

  • Problem with running the midlet class (Error with Installation suite )

    hi everyone...
    i have problem with running the midlet class(BluetoothChatMIDlet.java)
    it keep showing me the same kind of error in the output pane of netbeans...
    which is:
    Installing suite from: http://127.0.0.1:49296/Chat.jad
    [WARN] [rms     ] javacall_file_open: wopen failed for: C:\Users\user\javame-sdk\3.0\work\0\appdb\delete_notify.dat
    i also did some research on this but due to lack of forum that discussing about this,im end up no where..
    from my research i also find out that some of the developer make a changes in class properties..
    where they check the SIGN DISTRIBUTION...and also change the ALIAS to UNTRUSTED..after that,click the EXPORT KEY INTO JAVA ME SDK,PLATFORM,EMULATOR...
    i did that but also didnt work out..
    could any1 teach me how to fix it...
    thanx in advance... :)

    actually, i do my FYP on bluetooth chatting...
    and there will be more than two emulators running at the same time..
    one of my frens said that if u want to run more than one emulator u just simply click on run button..
    and it will appear on the screen..

  • Run the example of ejb tutorial ...

    When I run the example of "Enterprise JavaBeansTM Tutorial:
    Building Your First Stateless Session Bean"--DemoClient,(Weblogic server 6.0,
    win 2000) ,I met a probelm.
    Following is the error information:
    C:\bea\wlserver6.0\CLASSES>java -Djava.naming.factory.initial=weblogic.jndi.Teng
    ahInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001 ejb.demo.
    DemoClient
    begin DemoClient...
    => Error <=
    javax.naming.NoInitialContextException: Cannot instantiate class: weglogic.jndi.
    T3InitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
    glogic.jndi.T3InitialContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:195)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
    a:45)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at ejb.demo.DemoClient.getInitialContext(DemoClient.java:58)
    at ejb.demo.DemoClient.main(DemoClient.java:15)
    End DemoClient...
    Any guidance will be appreciated!
    Thanks, Yu

    I managed to fix my problem, hopefully thissolution
    will help you as well.
    I discovered that the following entries arerequired
    in the jndi.properties file in order to lookupEJB's
    using JNDI from a client application:
    java.naming.factory.initial=com.sun.jndi.cosnaming.CNCt
    Factory
    java.naming.provider.url=iiop://localhost:1050
    Note that my environment uses the j2ee server fromSUN
    running on the localhost on port 1050.
    If you can locate the proper settings for theweblogic
    server, then you can try this solution on for size.
    One quick question: When I try to run my client
    against the Ref. Implementation like this:
    java -Dorg.omg.CORBA.ORBInitialHost=localhost
    -Dorg.omg.CORBA.ORBInitialPort=1050
    -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CN
    txFactory
    -Djava.naming.provider.url=iiop://localhost:1050
    com.sld.role.ValidationClient
    I get the following error:
    javax.naming.NamingException: java:comp/env namespace
    is only available from within a J2EE component.
    This stinks. All I can find out is that Sun wants you
    to use runclient, which is silly. My client is trying
    to resolve the JNDI name:
    "java:comp/env/ejb/ValidationSessionBean"
    Any idea why this isn't working?
    Thanks....
    -ScottGot it working. Here's how:
    In the client's CLASSPATH I have three things: j2ee.jar, the client jar file generated by the server during deployment, and my client class files. I took out all of the -D stuff above and it still works. (With or without it.) I haven't tried it from another machine yet - I may need them for that.
    The client uses the JNDI name "ValidationSessionBean", not "java:comp/env/ejb/ValidationSessionBean" and it now can bind to it.
    I wish Sun would have given out this kind of info with their J2EE tutorial, instead of just pushing their runclient script, which uses their own client class.
    -Scott

  • I ve a problem with running the javabeans

    dear all
    i ve a problem with running javabean in forms 9i all codes, program units are correct. i think there is something with classpath which i dont where to put the path of bean jar files. however the simple code for the Colorpicker and keyFilter dont work when clicking the button to fire the trigger to bring the bean up.
    thank you
    Walaa eddien

    Walaa,
    Make sure you've entered the implementation class (do not append the class extension). For example, if you have a class example.class in the package otn.oracle.forum, the implementation class should be: otn.oracle.forum.example
    Make sure you place the containing java archive in <OH>/forms90/java and do not forget to update the configuration section (default or app specific) parameter archive_jini accordingly.
    Jeroen van Schaijk

  • [perhaps stupid] Problem with running the Sun's example

    I am new to RMI and I was reading the tutorial of RMI provided by Sun. Now the question is: suppose I have examples.hello.HelloImpl class compiled and I want to run rmic in order to create stub and skeleton files. In which directory should I run rmic?

    Run rmic from the directory where rmic can pick your classes.
    As an example if your compiled client class is in
    c:\rmitest\classes
    run the rmic from there and make sure you specify -d . then it will generate the stubs and skeletons in the same directory. If you want to compile them somewhere else specify -d option to that folder.
    Example use
    to store stubs and skeletons in the same directory
    c:\rmitest\classes> rmic -d . foo (where foo is your class name)
    to store stubs and skeletons in a separate directory
    c:\rmitest\classes> rmic -d "c:\mystubs\" foo (where foo is your class name)
    Hope this helps :)

  • How to use ant1.3 in Wndows ME to build the examples in J2EE Tutorial?

    When I tried to build the examples bundled with j2ee tutorial in the ..\j2eetutorial\examples directory using the ant 1.3 on Wndows ME I get the following exception.Anybody please help me.Is there any other build tool available for download?
    StringIndexOutOfboundsException
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant -verbose all
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.3
    Detected OS: Windows Me
    parsing buildfile D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml with URI
    = file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
    Project base dir set to: D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
    Build sequence for target `all' is [init, savingsaccount, bank, cart, checker, c
    onfirmer, converter, enroller, order, salesrep, storagebin, teller, htmlreader,
    warehouse, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-
    ejb, bookstore2, bookstore3, web, all]
    Complete build sequence is [init, savingsaccount, bank, cart, checker, confirmer
    , converter, enroller, order, salesrep, storagebin, teller, htmlreader, warehous
    e, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-ejb, boo
    kstore2, bookstore3, web, all, create-storagebin-table, get-cci-jar, procs, cci,
    connector, create-salesrep-table, create-procs-alias, create-coffee-table, abou
    t, create-enroller-table, create-savingsaccount-table, create-web-db, create-war
    ehouse-table, create-bank-table, clean, create-order-table, create-teller-table,
    prepare, create-ejb-db]
    init:
    [property] Loading Environment myenv.
    BUILD FAILED
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: D:\JAVATUTORIAL\J2EE\j2
    eetutorial\examples\build.xml:19: java.lang.StringIndexOutOfBoundsException: Str
    ing index out of range: -1
    --- Nested Exception ---
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: java.lang.StringIndexOu
    tOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1476)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 2 seconds
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>
    *********************************************************************

    Please Help Me

  • Problems with running the interop sample

    Hi,
    I can't seem to run the .NET client that is supplied with the interop samples
    in the workshop that demonstrates the use of a .NET client with an asnyc WebLogic
    web service. Everytime I run the .NET client, it prompts me to save a file called
    "ConversationClient.asmx" and if I open it, its opened in VS .NET. Any ideas/suggestions?
    Thanks,
    August

    August,
    The readme.html which is present in the samples/interop/dotNet directory
    provides detailed instructions for running that example. Please follow the
    steps mentioned in there, and let me know if you face any issues.
    Regards,
    Anurag
    "August" <[email protected]> wrote in message
    news:3e56b164$[email protected]..
    >
    Hi,
    I can't seem to run the .NET client that is supplied with the interopsamples
    in the workshop that demonstrates the use of a .NET client with an asnycWebLogic
    web service. Everytime I run the .NET client, it prompts me to save a filecalled
    "ConversationClient.asmx" and if I open it, its opened in VS .NET. Anyideas/suggestions?
    >
    Thanks,
    August

  • Problems with running quote server from Java Tutorial

    Hello
    The problem is this: I try to run QuoteServer from java tutorial (Trail: Deployment
    Lesson: Applets, A Simple Network Client Applet) and server compiles but when I try to run it following message shows up:
    QuoteServer listening on port: 32769
    Exception in thread "QuoteServer" java.lang.NullPointerException
    at java.net.DatagramPacket.setData(DatagramPacket.java:244)
    at java.net.DatagramPacket.<init>(DatagramPacket.java:62)
    at java.net.DatagramPacket.<init>(DatagramPacket.java:78)
    at QuoteServerThread.run(QuoteServerThread.java:38)
    And then server stops. What's going on?.
    Cheers

    Line 38 of QuoteServer.java is: packet = new DatagramPacket(buf, 256);
    And that's where the problem is because in line 31 is written byte[] buf = null;
    And what I get when I run QuoteServer.java with gcj version of java (gives more clues) is:
    java QuoteServer
    QuoteServer listening on port: 32785
    Exception in thread "QuoteServer" java.lang.NullPointerException: Null buffer
    at java.net.DatagramPacket.setData(byte[], int, int) (/usr/lib/libgcj.so.6.0.0)
    at java.net.DatagramPacket.DatagramPacket(byte[], int, int) (/usr/lib/libgcj.so.6.0.0)
    at java.net.DatagramPacket.DatagramPacket(byte[], int) (/usr/lib/libgcj.so.6.0.0)
    at QuoteServerThread.run() (Unknown Source)
    at .GC_start_routine (/usr/lib/libgcj.so.6.0.0)
    at .__clone (/lib/libc-2.3.5.so)
    So the problem is with this null buffer. What enter in line 31 instead of null?.
    What values can byte[] reach except null?. I tried to find byte[] in java API but there is only Byte variable. I get the same output with java 5.0 compiler (but less clues).
    Message was edited by:
    macmacmac

  • Problem with running the app outside NetBeans (loading fxml from jar)

    Hello.
    this problem occurs only when NOT using NetBeans (becouse NB may use this normal file sctructure, without jars)
    here is part of my main class, start method
            //load FXMLs
            FXMLLoader primaryLoader = new FXMLLoader();
            URL primaryLocation = getClass().getResource("PrimaryStage.fxml");
            primaryLoader.setLocation(primaryLocation);
            Parent root = (Parent) primaryLoader.load();
            Scene primaryScene = new Scene(root);
            FXMLLoader secondaryLoader = new FXMLLoader();
            URL secondaryLocation = getClass().getResource("SecondaryStage.fxml");
            secondaryLoader.setLocation(secondaryLocation);
            System.out.println("sec loader = " +secondaryLoader.toString()
                    +"\n sec loc from loader = "+secondaryLoader.getLocation()
                    +"\n sec loc url = " + secondaryLocation
                    +"\n pri loc url = " + primaryLocation);
            Parent secondaryRoot = (Parent) secondaryLoader.load();
            Scene secondaryScene = new Scene(secondaryRoot);and the thing is the 1st url (primaryLocation) is loaded properly, and the secondLocation aint.
    those 2 files are both in the same jar, same folder (packege) as main class.
    the outcome looks like this
    sec loader = javafx.fxml.FXMLLoader@5bde2a20
    sec loc from loader = null
    sec loc url = null
    pri loc url = jar:file:/C:/test_workspace/NetBeans/MZlike/dist/MoreAdvStuff.jar!/moreadvstuff/PrimaryStage.fxml
    Exception in Application start method
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.javafx.main.Main.launchApp(Main.java:486)
            at com.javafx.main.Main.main(Main.java:638)
    Caused by: java.lang.RuntimeException: Exception in Application start method
            at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
            at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
            at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalStateException: Location is not set.
            at javafx.fxml.FXMLLoader.load(Unknown Source)
            at moreadvstuff.MoreAdvStuff.start(MoreAdvStuff.java:55)
            at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
            at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
            at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
            at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
            ... 1 morewhere 55 line is
    Parent secondaryRoot = (Parent) secondaryLoader.load();any ideas how to fix it? loading the file manually from the jar may be a way, but its a workaround, not a solution
    Edited by: Radosław on 2012-05-17 07:55

    Hi,
    The root cause of the exception appears is here:
    sec loc url = nullThis means that the URL returned here by getResource() was null:
            URL secondaryLocation = getClass().getResource("SecondaryStage.fxml");So the only thing you have to do is figure out why this call returned null. Usually it returns null if the resource is not found in the jar/classpath.
    Last time it happened to me it was because I had misspelled the file name.
    Check that your file is not named SecondaryStage,fxml instead of SecondaryStage.fxml or something like that. Also check that it's actually present in the jar - or in the build/ directory and at the expected place (next to the class that loads it).
    Hope this helps,
    -- daniel

  • TS3212 I have a problem with running the itunes download on my new toshiba satellite pro laptop,

    I have downloaded the iTunes software no problems, but when i come to run it a windows pop up comes up saying,
    "This installation package could not be opened. Verify that the package exists and that you can access it, or contact
    the application verifier to verify that this is a valid window installer package"
    as i mentioned it is a brand new Toshiba satellite pro running windows 7 professional,
    any ideas????????????
    mark

    A lot of people have found this works for them:
    Settings/General/Date and Time   Turn OFF Set Automatically
    Set the date to several years in the future
    Try to update again - you will get a different error message
    Go back and turn ON Set Automatically

  • Problems with Running the application with adobe interactive form

    Hi,
    I am pasting the error below. Can you tell me whats happening?
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation.
    Request start time: Wed Sep 14 13:11:22 CEST 2005
    com.adobe.ProcessingError: File not found error writing stream:
    <Render><Template><Name> "http://inld50047142a:53000/webdynpro/dispatcher/local/IAF29/IAF29/wd_keyFCf_HVR6LN8eiYL61rWjaQ==/sapwebdynpro.xft;jsessionid=(INLD50047142A_F21_30)ID305519150DB14134377352030124527End;saplb_*=(INLD50047142A_F21_30)305519150?sap.session.download=4&sap-wd-cltwndid=4&sap-wd-appwndid=OPCP4&sap-wd-norefresh=true :
    java.io.FileNotFoundException: IO error detected while retrieving input stream for: http://inld50047142a:53000/webdynpro/dispatcher/local/IAF29/IAF29/wd_keyFCf_HVR6LN8eiYL61rWjaQ==/sapwebdynpro.xft;jsessionid=(INLD50047142A_F21_30)ID305519150DB14134377352030124527End;saplb_*=(INLD50047142A_F21_30)305519150?sap.session.download=4&sap-wd-cltwndid=4&sap-wd-appwndid=OPCP4&sap-wd-norefresh=true :
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://inld50047142a:53000/webdynpro/dispatcher/local/IAF29/IAF29/wd_keyFCf_HVR6LN8eiYL61rWjaQ==/sapwebdynpro.xft;jsessionid=(INLD50047142A_F21_30)ID305519150DB14134377352030124527End;saplb_*=(INLD50047142A_F21_30)305519150?sap.session.download=4&sap-wd-cltwndid=4&sap-wd-appwndid=OPCP4&sap-wd-norefresh=true
    Thanks,
    Tarun.

    did you set the build.properties settings properly ?

  • Running examples from J2EE Tutorial

    Has anyone been successfully running examples from
    J2EE Tutorial on Creator?
    I tried to import the JSP but Creator complains that it is
    not an XHTML document. Clicking on the 'Convert to XHTML'
    button or 'Preview...' button does not seem to do anything.
    Openning the Source panel shows parsing problems on
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    Does anyone know how to run these in Creator correctly?
    - weijyh

    Yes,
    It runs successfully....
    I have download the examples from Sun,
    unzipped It into my Projektfolder and open it in Creator, start it and works fine ...
    No error messages ....

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Is anyone know how to run the examples in 3d user interfaces with java 3d

    hi dear ,
    I am trying to run the examples in 3d user interfaces with java 3d.
    I hope i can load the library in jcreator. but the libarary for this book are classes files , it do not have jar file for it . the jcreator do not read these classes . i do not know why ? i am wonder if there any one run these code before can give me some idear .
    thanks so much .
    the code u can get from this link.
    http://www.manning.com/books/barrilleaux/source
    thank you for u to have a look for me .
    regards
    xiaocui

    <h2>{color:red}CROSS POSTED{color}</h2>
    [t-5289810]
    Cross posting is rude.
    db

  • Error when executing EJB example in J2EE Tutorial

    Hi,
    I am trying Converter example in J2EE tutorial.
    I have created ConverterJAR and ConverterWAR
    ConverterJAR is verified sucessfully when using verifier option
    When verifying ConverterWAR i am getting the following error
    Error: Class [ converter.ConverterHome ] not found in WEB-INF/classes or WEB-INF/lib.
    For [ /ConverterWAR ]
    Error: class [ converter.ConverterHome ] cannot be found within this jar [ war-ic.war ].
    Error: Class [ converter.Converter ] not found in WEB-INF/classes or WEB-INF/lib.
    For [ /ConverterWAR ]
    Error: class [ converter.Converter ] cannot be found within this jar [ war-ic.war ].
    Please let me know if anybody aware of this problem

    I have created ConverterJAR and ConverterWAR
    ConverterJAR is verified sucessfully when using
    verifier option
    When verifying ConverterWAR i am getting the
    following errorCreate an EJB-client JAR which will contain only the home and remote interfaces. Place it in WEB-INF/lib of your webapp and recreate your WAR. This should solve the problem. :)
    $

Maybe you are looking for