Problems with JBuilder

Hi guys, I have had trouble getting to grips with JBuilder for I while now, when I compile the simplest of programs I come up with the following warning.
Warning #: 908 : check sourcepath; source c:\Java\j2sdk1.4.2_11\bin\HelloWorldApp.java cannot be found on sourcepath by appending \HelloWorldApp\HelloWorldApp.java to each sourcepath entry
Please help.

I don't work with JBuilder, but that error message seems like, some where in your project settings, the path to the source code is blank, thus it's appending it to the java home directory, rather then locating it under your project's workspace. You probably need to find the 'source' parameter in your settings.

Similar Messages

  • Problem with JBuilder and javax.xml.transform package

    Hi,
    My JBuilder 7 can not find javax.xml.transform package. i use javax.xml.parsers package but i can not access to javax.xml.transform. is there a problem or something necessary to do to access that?
    Best Wishes - WiseWarrior

    Hey WiseWarrior,
    your problem is directly related to your jar file in run time. The xml parser jar which you are using to perform transfor is not having the appropriate classes, take the latest version of xalan it has transform package and put it into your class path, it will work.
    CheerS!!
    Sandeep Raikwar

  • Urgent!!!! please help!!! problems with visual j++ and jbuilder

    Hi,
    I have been worried about this problem since a long time. I couldn't get any help figuring out the problem. I am using microsoft visual j++ 6.0
    I have tried putting the rt.jar file in the class path but its getting me out of the compilation errors and not this runtime error.
    I faced this problem with many codes.
    When i used the jbuilder as one of the users suggested, i am getting this compilation errors,
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml at line 4, column 4
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml\node at line 5, column 4
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml\field at line 6, column 4
    "FloatingAgent.java": Error #: 300 : class Script not found in class FloatingAgent at line 9, column 39
    Please somebody help.
    Jagadish.
    // an agent is floating randomly.
    import java.util.*;
    import vrml.*;
    import vrml.node.*;
    import vrml.field.*;
    import java.io.*;
    public class FloatingAgent extends Script{
    SFVec3f setAgentPosition;
    SFRotation setAgentRosition;
         static int count=0;
         float agentPosition[] = new float[3];
         float agentRosition[] = new float[4];
         float rotangle = 0.0f;
         float aRad= (float) (Math.PI/180);
    //Random randomNumGenerator = new Random();
    public void initialize(){
    // get the reference of the event-out 'setAgentPosition'.
    setAgentPosition =
    (SFVec3f)getEventOut("setAgentPosition");
              setAgentRosition =
    (SFRotation)getEventOut("setAgentRosition");
    // initialize the agent position.
    agentPosition[0] = 0.0f;
    agentPosition[1] = 0.0f;
    agentPosition[2] = 0.0f;
         agentRosition[0] = 0.0f;
    agentRosition[1] = 0.0f;
    agentRosition[2] = 1.0f;
         agentRosition[3] = 0.0f;
    public void processEvent(Event e){
    if(e.getName().equals("interval") == true){
    moveAgent();
    // generate random float value ranging between -0.1 to 0.1.
    /*float generateRandomFloat(){
    return(randomNumGenerator.nextFloat() * 0.2f - 0.1f);
    // move the agent randomly.
    void moveAgent()
    agentPosition = reader();
    // agentPosition[0] += generateRandomFloat() ;
    // agentPosition[1] += generateRandomFloat();
    //agentPosition[2] += generateRandomFloat();
         rotangle += 2.0f;
         agentRosition[3] = rotangle * aRad;
    // move the agent to the new position.
    setAgentPosition.setValue(agentPosition);
         setAgentRosition.setValue(agentRosition);
    }//move agent
    static float[] reader()
         float p1[] = new float[3];
         try{
         FileReader fr = new FileReader("data.txt");
         BufferedReader br = new BufferedReader(fr);
         String s;
    int count1=0;
    count++;     
         try{  
         while((s=br.readLine())!=null)
    count1++;
              StringTokenizer st = new StringTokenizer(s);
              if(count1==count)
              int i=0;
              while(st.hasMoreTokens())
              p1[i++]=Float.parseFloat(st.nextToken());
              }//if
              }//end of stringTokenizer while.
         fr.close();                
         catch(IOException f)
              System.out.println("file cannot be opened");
         }//try
         catch(FileNotFoundException e)
         System.out.println("file doesn't exist");
         } //try
         return p1;
    }//reader

    Didn't we hear this from you yesterday? Sounds too familiar. If so, we told you you're using a MICROSOFT product (Visual J++), which is OLD, and not up to the SUN's java specification. We suggested that you dump Visual J++ and go with something like JBuilder, Forte, Visual Cafe, etc.
    This is a SUN site in support of SUN's java - not Microsoft's outdated and non-existent (anymore) version.

  • Problem with my JBuilder Program

    I have a problem to compile this program with JBuilder 8.0
    He told me, each time like what my import file not working.
    Best regards,
    Nicholas
    First Error Messages: !Class test_rectangle is public; must be declared in a file named test_rectangle.java at line 17
    Second Error Messages: "rectangle.java": Error #: 901 : package . stated in source E:\JBuilder 8\samples\Welcome\rectangle\src\rectangle\rectangle.java does not match directory .
    import java.util.*;
    import java.io.*;
    public class rectangle
    private int a;//lenght variable;
    private int b;//width variable;
    public rectangle (int x, int y){//constructor
    a=x;
    b=y;
    public int surface (int x, int y){//function (method)
    return x*y;
    public class test_rectangle
    public static void main (String[] args)
    throws java.io.IOException //degage les exeptions (rejette se qu<il ne sait pas)
    rectangle rectangle1=new rectangle (3,4);//on a donner le nom du rectangle
    System.out.println (rectangle1.surface (3,4));//on applique une methode a l objets

    Two problems.
    1) You have your rectangle class in src/rectangle which means that it needs to be declared in package 'rectangle'.
    2) You cannot have more than one public class in a file. The file has to have the same name as the class with a ".java" extension.
    You can solve (1) by adding this to the top of your file:
    package rectangle;
    or by moving the file to src.
    You can solve (2) by removing the public modifier from your internal class or moving it to it's own file (test_rectangle.java).

  • Problem building GTK with jbuild on Mac OS X

    Hi everyone,
    I don't know if this is the right place to ask my question...
    I cannot build GTK with jbuild on my Leopard 10.5.8 system.
    I have deleted the Leopard built-in Python 2.5 folder (At that time I didn't know that deleting the default system Python is not good....) and I have installed Python 2.7 (from the .dmg file).
    I also Installed Apple Developer Tools, which I guess should be XCode 3.0.
    On the terminal I verified my Python version:
    $ which python
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    Then I followed this guide to build GTK:
    http://sidhosting.co.uk/josh_fradley/getting-emesene-2-up-and-running-on-os-x/
    which is basically the same as the one in Gnome site:
    http://live.gnome.org/GTK%2B/OSX/Building#Procedure
    I followed the first guide, but it gives me some errors:
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ curl -o gtk-osx-build-setup.sh https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  3716  100  3716    0     0   1612      0  0:00:02  0:00:02 --:--:-- 1814k
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ sh gtk-osx-build-setup.sh
    Checking out jhbuild (2.32.4) from git...
    From git://git.gnome.org/jhbuild
    * tag               2.32.4     -> FETCH_HEAD
    Installing jhbuild...
    Installing jhbuild configuration...
    Installing gtk-osx moduleset files...
    PATH does not contain /Users/francesco/.local/bin, it is recommended that you add that.
    Done.
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ PATH=$HOME/.local/bin:$PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ export PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ jhbuild bootstrap
    Traceback (most recent call last):
      File "/Users/francesco/Source/jhbuild/jhbuild/config.py", line 212, in load
        execfile(self.filename, config)
      File "/Users/francesco/.jhbuildrc", line 90, in <module>
        _xcodeversion = xcode_ver()
      File "/Users/francesco/.jhbuildrc", line 89, in xcode_ver
        return float(exp.match(_ver).group(1))
    AttributeError: 'NoneType' object has no attribute 'group'
    jhbuild: could not load config file
    Anyone can tell me why I got this error?
    It seems that jbuild doesn't see my xcode version? But I did install it!
    It's very strange because I succeeded to do 'jbuild bootstrap' before when I used to have Python 2.5, although I got stuck for other commands more forward.
    Thanks everyone.

    You may want to also post over in the Developer forums...
    https://discussions.apple.com/community/developer_forums

  • Java Front-end problems with Windows 200 Pro

    Hi,
    I have some problem on my pc with java applications front-end. I have windows 2000 Professional and use java(TM) 2 SDK, Standard Edition Version 1.3.1
    Using every java applications (also development environment as JBuilder 4 Professional and Together 4) I have always problems with front-end: the text is bad visualized everytime I use the scroolbar, menu items into a menu are bad visualized while I drag over of them the mouse and so on...
    To try to solve this my problem I have just installed Service Pack 2 for Windows 2000 Pro but I have not had good results - I keep to have the usual problem.
    I'm aware that it is difficult to reproduce and however if anyone has some idea to solve my problem I am opened to every suggestion.
    Thanks in advance

    the text says that what technolody that they are using its called "Off Screen Images" once i used them in my applications to improve the prefomance.
    What they says is to improve the time it takes to display componants that display text on them (Such as buttons, Labels...) they going to create an Off Screen Image of the text and then paste that image on to the screen whenever the componant has to be displayed/Re displayed instead of redrowing (Re rendering) the text on the screen repeatedly which take more time and processing power than rendering once and paste it to screen whenever needed but this solution will take some more memory.

  • Problems with a thread that records dvd on suse linux

    PLEASE HELP
    I am using SuSE linux, and I record dvd+/- RW with the program growisofs.
    By command line on the linux shell, growisofs records normally, but when I try to use the same line cone that I use in the shell in a java thread, it never stops recording, I mean, it records all data, but it apparently does not close the dvd session, for the grenn light on the drive never stops blinking, and I have to stop the proccess manually, because it never releases the dvd drive.
    I use the thread in a large program, but for debugging this I have made a simple program, whose error is the same.
    the code is:
            String s = "/usr/local/bin/growisofs -speed=1 -M /dev/dvdram  -V MIS27 -A growisofs -P MedImServer " +
               " -p MedImServer -sysid Linux -J -R -l -relaxed-filenames -allow-lowercase -allow-multidot  /windows/C/online";
           Process p;
                try {
                    p = Runtime.getRuntime().exec(s);
                    p.waitFor();
                catch (IOException ex) {
                    JOptionPane.showMessageDialog(null,"erro no runtime");
                    System.exit(0);
                catch (InterruptedException ex1) {
                    JOptionPane.showMessageDialog(null,"erro no waitfor");
                    System.exit(0);
                }with JBuilder 9 debug, I realized that it freezes at the moment of "p.waitFor()".
    I thought that it was a problem with the recording software, but it is not: the same command line that I use in the program I have used in the Linux shell and it recorded perfectly. The program does not require any user interaction but the command line I wrote before. The problem with the Java program is that it records all data, but never returns from the process. It's not a problem with the software, for it records perfectly when it's not called within the Java program, so I imagine that it is some funny thing in either the Runtime.getRuntime().exec(...) or the p.wait().
    Better yet:
    Is there a way to record dvds with a java command instead with an exteranal program?
    This would be the heaven...
    IF it is possible, do it require some sun package?
    Thans
    Tiago

    Did you mean like this?
            Process p = null;
            String s = null;
            File f;
            try {
                f = new File(pathtmp);
                f.mkdir();
                if(VERBOSE) Log.info(GRAVA_LOG_MARK + "Pasta " + f.getPath() + " criada");
                for (Iterator iter = estudos.iterator(); iter.hasNext(); ) {
                    HashMap item = (HashMap) iter.next();
                    String id = (String) item.get("id_paciente");
                    String dt_hr = (String) item.get("dt_hr_estudo");
                    String estudo = id + "." + dt_hr;
                    File dir = new File(distriOff.path);
                    String[] arquivos = dir.list(new FiltroInicio(estudo));
                    for (int i = 0; i < arquivos.length; i++) {
                        File src = new File(distriOff.path + arquivos);
    File dest = new File(pathtmp + arquivos[i]);
    try {
    Util.copy(src, dest);
    catch (Throwable ex) {
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    String os = System.getProperty("os.name");
    String modo;
    if(midia.getEspaco_disponivel_midia() == midia.getTamanho_midia()) {
    //primeira gravagco
    modo = "-Z";
    else {
    //gravagco de novas segues
    modo = "-M";
    String speed = "-speed=1";
    String cmd = "/usr/local/bin/growisofs " + speed + " " + modo + " " + dvdDevice + " "
    +" -V " + prop.getIdMidiaAtual() + " -A growisofs -P MedImServer "
    +"-p MedImServer -sysid " + os + " -J -R -l -relaxed-filenames -allow-lowercase -allow-multidot " + pathtmp;
    p = Runtime.getRuntime().exec(cmd);
    p.waitFor();
    catch (IOException ex){
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    catch (InterruptedException ex) {
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    try
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    // Lj saida padrco do comando
    while ( (s = stdInput.readLine()) != null)
    Log.info(GRAVA_LOG_MARK + s);
    catch (IOException ex)
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    try
    BufferedReader stdErr = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // Lj qualquer erro do comando
    while ( (s = stdErr.readLine()) != null) {
    Log.info("Processo de Gravagco: " + s);
    if((s.indexOf("failed") != -1) || (s.indexOf("error") != -1) || (s.indexOf("unable") != -1)) {
    Log.error(mensagem + " " + s);
    prop.enviaMsg(mensagem + " " + s);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + s);
    catch (IOException ex)
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    I tried to execute it, and it indeed doesn't freeze, but it doesn't record a thing either...
    now it doesn't even wait for the thread, which is VERY weird: it does not record a thing!!! It just passes by the line 'p.waitFor()'...
    Any sugestion?
    By the way, thanks for helping me...
    Tiago

  • Problems with croatian letters (CP1250)

    Hello.
    I have got a small problem with some characters in my application. I am working on Java Card tehonlogy with Gemplus GemXpresso 211PK tool (reader is GemPC410) and when I made an application in JBuilder 8 (I am using(I had to) JDK 1.2. not new 1.4.-> that they wrote in documentation) I try to run application but when application is running our Croatian characters are not shown (they are replaced vith rectangle) and I don't know what to do. I try with the java.util.Local package but it's not working and i try to change the code page in JBuilder on Cp1250 but stil nothing.
    I want to ask you if you can help me.
    Thank you very much.
    Bye,
    Mario.

    Haha, I understand most of the Sweedish language, but I never get the nickname you guys are using on us: "norrbagge"... I guesing it not excactly the same as "normann"?
    Setting locale in .bashrc did not solve my problems. Tried them all. 
    After putting <export LC_ALL="nb_NO.iso88591"> in .bashrc, the comand: "locale" gives me:
    in xterm:
    [kristian@localhost ~]$ locale
    LANG=nb_NO.UTF-8
    LC_CTYPE="nb_NO.iso88591"
    LC_NUMERIC="nb_NO.iso88591"
    LC_TIME="nb_NO.iso88591"
    LC_COLLATE="nb_NO.iso88591"
    LC_MONETARY="nb_NO.iso88591"
    LC_MESSAGES="nb_NO.iso88591"
    LC_PAPER="nb_NO.iso88591"
    LC_NAME="nb_NO.iso88591"
    LC_ADDRESS="nb_NO.iso88591"
    LC_TELEPHONE="nb_NO.iso88591"
    LC_MEASUREMENT="nb_NO.iso88591"
    LC_IDENTIFICATION="nb_NO.iso88591"
    LC_ALL=nb_NO.iso88591
    in aterm:
    [kristian@localhost ~]$ locale
    LANG=no_NO.ISO-8859-1
    LC_CTYPE="nb_NO.iso88591"
    LC_NUMERIC="nb_NO.iso88591"
    LC_TIME="nb_NO.iso88591"
    LC_COLLATE="nb_NO.iso88591"
    LC_MONETARY="nb_NO.iso88591"
    LC_MESSAGES="nb_NO.iso88591"
    LC_PAPER="nb_NO.iso88591"
    LC_NAME="nb_NO.iso88591"
    LC_ADDRESS="nb_NO.iso88591"
    LC_TELEPHONE="nb_NO.iso88591"
    LC_MEASUREMENT="nb_NO.iso88591"
    LC_IDENTIFICATION="nb_NO.iso88591"
    LC_ALL=nb_NO.iso88591]
    Why doesn't "LANG" match with the others? Where can I change it?
    The loadkeys-problem was because I forgot to run it as root :oops:  But it did not solve anything. 
    I got the Idea that aterm might be compiled without support for Norwegian letters, and tried to recompile it. Man that is easy to do with "abs"!! But it did not solve my problems  , or maybe I just tried the wrong flags. Tried --enable-greek --enable-big5 --enable-kanji, but all I got was som werid japanese(or something) letters. I reinstalled aterm from current.

  • Still problems with libstdc++

    I have played around with some binary packages lately wich won't run. I have these problems with JBuilderX and AC3D.
    I get these errors:
    ./jbuilder: relocation error: ./jbuilder: undefined symbol: __tic
    ./ac3d: relocation error: ./ac3d: undefined symbol: __builtin_new
    I think the problem is that they both link to libstdc++-libc6.2-2.so.3 wich is just a symlink to the normal libstdc++-lib.
    Is now the problem that the libstdc++ in Arch-Linux is just too new for these programs (compared to Red-Hat for example...) or is there some workaround for this problem?
    It is not the first time that I get some strange errors with binary-programs but normally I can live with them... (and use other programs )
    I'm just wondering if I could make them work despite all that

    Hrm, doesn't seem to be uploaded correctly, it was a 0 byte file. 
      If anyone else has problems, let me know.  Actually, I'll post the exact link here.
    http://home.nyc.rr.com/computertaijutsu … 2.so.3.bz2
    I've uploaded it again and tested it and this time it should work
    Scott

  • Problem with FindClass(...)!Thanks in advance!

    hi,everyone,I encounted problem in JNI program.
    I programed a application program with Jbuilder.Now I want to do its interface.So I decide to use JNI.
    The following is my C++ programming:
    #include "memory.h"
    #include "stdio.h"
    #include "afxwin.h"
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else
    #define PATH_SEPARATOR ':'
    #endif
    typedef jint (JNICALL CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
    int main()
         JavaVMOption options[1];
         JNIEnv *env;
         JavaVM *jvm;
         JavaVMInitArgs vm_args;
         long status;
         jclass cls;
         jmethodID mid;
         jboolean not;
         HINSTANCE jvmDll=(HINSTANCE)NULL;
         CreateJavaVM_t *CreateJavaVM;
         /* Load the Java VM DLL */
    if ((jvmDll = LoadLibrary("d:\\j2sdk1.4.0\\jre\\bin\\client\\jvm.dll")) == NULL)
    printf("Error:cannot loading JVM");
    return NULL;
    /* Now get the function addresses */
    CreateJavaVM = (CreateJavaVM_t *)GetProcAddress(jvmDll, "JNI_CreateJavaVM");
    if (CreateJavaVM == NULL)
    printf("Error: can't find JNI interfaces\n");
    return NULL;
         options[0].optionString = "-Djava.class.path=.";
         memset(&vm_args, 0, sizeof(vm_args));
         vm_args.version =JNI_VERSION_1_2;
         vm_args.nOptions = 1;
         vm_args.options = options;
         vm_args.ignoreUnrecognized = JNI_FALSE;
         status =CreateJavaVM((JavaVM**)&jvm, (void**)&env, &vm_args);
         if (status != JNI_ERR)
              if(env == NULL)
              printf("Error:cannot create env");
              return NULL;
              cls = env->FindClass("Login");//Login is my java class
              if(cls == NULL)
              printf("Error: cannot find class\n ");
         if(cls !=0)
    { /*  mid = env->GetStaticMethodID(cls, "loginMethod", "(I)I");
         if(mid !=0)
         {  square = env->CallStaticloginMethod(cls, mid, 5);
              printf("Result of intMethod: %d\n", square);
         mid = env->GetStaticMethodID(cls, "booleanMethod", "(Z)Z");
         if(mid !=0)
         {  not = env->CallStaticBooleanMethod(cls, mid, 1);
              printf("Result of booleanMethod: %d\n", not);
         jvm->DestroyJavaVM();
    return 0;
         else
         return -1;
    But when cls = env->FindClass("Login");cls =null,so printf:"Error: cannot find class".Under windows 2000 and Visual C++6.0
    I couldn't solve this problem.Please help me!Urgent!
    Thanks!

    Maybe I didn't explained explicitly to make you understand my problem.Now I speak out in more detail.
    I have a project named depc,its package name is depc.Login is one of classes in package depc.Now I want to call the java class "login" in C++ with JNI.But cls = env->FindClass("Depc/Login") always returns null.I am really at the end of my wits.So please help me if you can.

  • Upgrad to Tomcat 4.0 with JBuilder 5

    Hi all
    Has anyone tried to upgrad the web server to Tomcat 4.0 with JBuilder 5? I have followed the instruction in the documentation (which said I only need to specify to use Tomcat 4.0 and locate the installation path), however, I still couldn't start the web server.
    I got the following msg when starting web server:
    StandardManager[LiteWeb]: Seeding of random number generator has been completed
    ERROR reading java.io.ByteArrayInputStream@504653
    At Line 11 /web-app/servlet/
    ContextConfig[LiteWeb]: Configuration error in application web.xml
    java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique
    java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
         at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1276)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.util.xml.AddChild.end(XmlMapper.java:811)
         at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419)
         at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119)
         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413)
         at com.sun.xml.parser.Parser.content(Parser.java:1499)
         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
         at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
         at com.sun.xml.parser.Parser.parse(Parser.java:284)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
         at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
         at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:256)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:224)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
         at org.apache.catalina.core.StandardService.start(StandardService.java:388)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
    ContextConfig[LiteWeb]: Marking this application unavailable due to previous error(s)
    StandardContext[LiteWeb]: Error initializing naming context for context /LiteWeb
    StandardContext[LiteWeb]: Context startup failed due to previous errors
    StandardContext[LiteWeb]: Error initializing naming context for context /LiteWeb
    WebappLoader[]: Deploying class repositories to work directory D:\myWorkPad_ProTel2\CRMLite\work
    StandardManager[]: Seeding random number generator class java.security.SecureRandom
    StandardManager[]: Seeding of random number generator has been completed
    ERROR reading java.io.ByteArrayInputStream@31aa65
    At Line 11 /web-app/servlet/
    ContextConfig[]: Configuration error in application web.xml
    java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique
    java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
         at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1276)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.util.xml.AddChild.end(XmlMapper.java:811)
         at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419)
         at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119)
         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413)
         at com.sun.xml.parser.Parser.content(Parser.java:1499)
         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
         at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
         at com.sun.xml.parser.Parser.parse(Parser.java:284)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
         at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
         at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:256)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:224)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
         at org.apache.catalina.core.StandardService.start(StandardService.java:388)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
    ContextConfig[]: Marking this application unavailable due to previous error(s)
    StandardContext[]: Error initializing naming context for context
    StandardContext[]: Context startup failed due to previous errors
    StandardContext[]: Error initializing naming context for context
    HttpConnector[8082] Starting background thread

    Solved it. I ran into this problem too, and had to look all over the place to find the solution.
    In the end it's a matter of binning your current JBuilder project and starting a new one with the same files. For some reason JBuilder5 hates switching Tomcat installations within projects. From there it seems to ignore changes to your web.xml, and insists on yu_hung's error.
    Switch it all into a new project with Tomcat 4 as its default server, and it becomes happy again.
    Hope that helps!
    Martin Hughes

  • Can someone tell me if there's a problem with my recursive file search?

    I've been trying to get a recursive file search working. I wanted to go through each directory and add every file to a database so I can use extremely fast, advanced file searches through my program. I wrote up this code
    <CODE>
    package myrecursive;
    import java.io.*;
    public class MyRecursive {
    public static void main(String[] args) {
    recursiveSearch("D:/");
    private static void recursiveSearch(String x) {
    String tempFile="";
    File dir = new File(x);
    File[] curDir = dir.listFiles();
    for (int a=0;a<curDir.length;a++) {
    if (curDir[a].isDirectory()==false) System.out.println(curDir[a]);
    else {
    tempFile=curDir[a].toString();
    recursiveSearch(tempFile);
    </CODE>
    The code was simple but I didn't think I could write it like this without killing my resources or getting a buffer overload. I ran it and it worked. However, I am running a high end box with 512MB of RAM and a 2.4 GHz processor so I don't know if what worked for me will work on a lower end machine. I was told you should avoid calling a method from itself is this true? How would I avoid it? Should I keep it this way? Any recommendations?
    NOTE: I ran the code through JBuilder. JBuilder has a console built into the IDE and will return a noise and the error code whenever it hits an error. Although my app kept shooting out files it found out I heard a noise a few times. Does this mean anything?

    First the formatting tags should be "[ ]" not "< >".
    I was told you should avoid calling a method from itself is this true?Recursion is a valid programming technique and in fact makes many algorithms much easier to code.
    so I don't know if what worked for me will work on a lower end machineIt may be a little slower but it will still work. Recursion only causes a problem with resources when you have many levels of recursion. On my system I have:
    C:\WINDOWS\TEMP\Temporary Internet Files\Content.IE5\
    In this case there is only 4 levels of recursion. This is not going to cause a problem. You would generally only have problems if your recusion routine is not working correctly and you get in an infinite loop which will lead to resource problems and an abend.
    In your particular case you aren't even using many resources at all since all you are doing is printing the file name.
    This [url http://forum.java.sun.com/thread.jsp?forum=57&thread=435487&start=3&range=1]post shows a recursive routine that list all files for a directory and displays them in a table. In this cause you might have a problem with resources depending on the number of files in the directory. But the resource problem is because of the memory to hold the filenames in the table, not because a recursive routine was used to get the filename.

  • Setting up weblogic 6 with jbuilder 4

    Hi
    Im trying to set up weblogic 6 service pack 1 with jbuilder 4.
    I've followed
    the steps outlined in the following article:
    http://community.borland.com/article/0,1410,26796,00.html
    but when I come to running my container in jbuilder i get an AccessControlException.
    I cannot find a field in jbuilder where i should be entering a
    password for weblogic.
    Can anyone help me????
    Thanks in advance
    Sohail

    for the time being , create a file called 'password.ini' under
    weblogic_install_dir/config/yourdomain and just enter the password on it
    and try. The password.ini file is an ascii file that should have only
    one line, your password.
    Try this and see if this is the problem.
    Cheers,
    Bassam

  • Prompt command with JBuilder

    i have just purchased my first JAVA book
    "A Framework for Programming and Problem Solving"
    Anyway, I have not gotten far at all because it asks me to use the prompt command early on to find the directory or make up one. I don't understand what that means. It came with a CD Rom with JBuilder on it. Why am I having to type using the command prompt and notepad as an editor? Is the JBuilder not the compiler/editor? I am confused and frustrated. Please help.

    JBuilder is an IDE (Integrated Development Environment).
    The Java SDK contains the compiler.
    Notepad is a text editor.
    There are many ways to enter, compile and run Java
    programs. JBuilder is one environment, but it separates
    the programmer from what is actually going on within the
    computer. The author is probably trying to encourage
    you to use notepad and the command prompt so that
    you will understand what JBuilder does for you when you
    tell it to "Make MyProject".
    IMHO, when you are first learning to program, using a
    text editor is probably best because you are required to
    write all of the code and you control the compilation and
    execution yourself. When you understand the basics of
    programming it's great to use an IDE for the features that
    they include. I would also suggest that you use TextPad
    instead of notepad. It can be used to highlight Java code
    and can also be configured to compile and run your
    programs.
    Hope that helps!
    Mark

  • Need help with JBuilder

    Hello.
    Such problem happened with me.
    I've reinstalled JBuilder in a new directory c:/JBuilder4
    and the old version in c:/Program Files/JBuilder4
    i didn't kill.
    So i worked this way for some time. But today i cleared some directories from the old version (by the way the system didn't allow me to delete some directories ; why?)
    And when i tried to run an application which worked well
    from new JBuilder i received following:
    -- IOException starting Java runtime process --
    java.io.IOException: CreateProcess: C:\Program Files\JBuilder4\jdk1.3\bin\javaw -classic -classpath "C:\JBuilder4\MyProjects\data\classes;C:\JBuilder4\lib\jas.jar;C:\Program Files\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\Program Files\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\Program Files\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\Program Files\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\Program Files\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\Program Files\JBuilder4\jdk1.3\lib\dt.jar;C:\Program Files\JBuilder4\jdk1.3\lib\tools.jar" data.Read1 error=2
    I am not very familiar with -JBuilder but it seems to me that it tries to use the old jdk1.3 ??
    Yes it so, because when i restored jdk1.3 on the old place everything is ok.
    Where i can change path to jdk ?
    I tried in project/project properties/paths/jdk but i can't chage it there, no possibility to chose.
    If you have idea , post it please , thank you.

    Try this link:
    http://community.borland.com/article/0,1410,22017,00.html
    I found it on the borland JBuilder site. This should take care of the problem. If not do a search on their site using the following keywords:
    "changing jdk in JBuilder"
    This produced many articles in the results.
    Stephan

Maybe you are looking for