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.

Similar Messages

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • Very Urgent Please Help Me with XML parsing(DOM parser)

    Hi
    Please help me with the following code.
    I have an XML file
    <catalog>
    <book id="101">
    <title>First Ex With ID 101</title>
    <ID>500</ID>
    <author>RAJU</author>
    <price>39.95</price>
    </book>
    <book id="121">
    <ID>501</ID>
    <title>First Ex With ID 121</title>
    <author>RAJU1</author>
    <price>19.95</price>
    </book>
    </catalog>
    By using DOM parser I have to retrive ID values .After getting this ID values i have to pass these values in someother method of someother class.What i suppose to do?Can anyone help me with this regards ,if possible plese write the code..
    Regards
    Raju G

    Well first up all create a parser class where u parse the document using DOm and get the id node and assigen it to a String sat str.
    Now whatever processiong u want to do , u write in a separate class (say Process.java) in one method say doProcess(String str)
    Now from parser class u just call the doProcess() method with passing str as a parameter.
    eg.
    Process p = new Process();
    p.doProcess(str);
    Hope this will help u.
    ....yogesh

  • Very Very Urgent Please help me  Integration between OIM and Siebel CRM

    1.The system is proprietary of nature and hence not out of the box provisioning agents exist to integrate the system.
    Integration options for COPS(Customer Organisation Profiling System) ) is a proprietary CRM system holding contact, billing and other profile information as the authoritative source on customers;
    I need complete solution.Please help me its very very urgent.

    As mentioned in your Subject, if it is integration between OIM and Siebel CRM, we have an OOTB connector available for it. Even if your application is similar to Siebel CRM, you can refer the OOTB Siebel connector and do some reverse engineering on it to make a similar one..
    Hope it helps.. otherwise .. all the best and go ahead with writing a new connector and share your exp with the other forum members.
    cheers

  • Please help: problems with tutorial 'building advanced portals'

    hi there,
    i'm an absolute newbie with oracle portal and trying to work through the tutorials. a lot of questions arise...
    like this one:
    i've created a multi-tabbed region (chapter 3.4) and added a chart to each tab. So now i have a tab-bar on top-navigation-level and a tab-bar in this region. but they don't look the same and i can't find out, where to manipulate the style of the sublevel-region-tab.
    Can someone help, please?
    thank you very much
    Ralf Schmitt

    Ralf
    When you click on 'Edit Page' (top right hand corner) you should be able to edit both sets of tabs there and each individual tab properties.
    Darren

  • Please help - problems with iPod Nano

    I saw a page in my Popular Science magazine and it had iPod Linux. So I went to the website installed it, and it worked!!! But the problem is , is that when I plug it in to my computer, it charges but won't show up as a drive. Please help!!!!!!!!!!!!!

    Even within the iPod Linux Project the Fifth Generation iPod and the Nano are unsupported hardware so you are pretty much on you own, however check these links out:
    iPod Linux Unsupported - What if Something Goes Wrong
    iPod Linux Project- My iPod is really messed up, how can I fix it?

  • Please Help-Problem with Optical Drive, it's a Mystery...

    Well I'm a fairly big Imogen Heap fan, and her new CD came out the 25th. So I went to Best Buy and I bought the deluxe version which includes a seperate disc with instrumentals. I got home, put it in, and my Mac made a "scratching" kind of noise, then it spit out the disc. I figured there was a problem with it, I went back to Best Buy, got a new one, and it did the exact same thing.
    HOWEVER, both of the instrumental discs worked just fine, and imported just fine. The normal audio disc also works on my Ubuntu computer, Windows computer, and my other Early 2009 Macbook Pro. I also restarted my Mac, cleaned the disc, and that did nothing.
    So, what's the problem do you think?
    (Also I went to Apple but there were no appointments available, and they were too busy to just look at it without an appointment )

    Hi Mate,
    I didn't do an OS install, I took it to an apple store and made a Genius Bar appointemnt. Explained the proble and after 15min conversation, they diagnosed it as teh following;
    The felt/rubber where you put the CD/DVD had gone hard and the friction is causing the CD/DVD to get stuck and be loaded. They tried to tell me that I need to replace the top case  (£140+VAT) as its in-built into it or I can use a £3 spudger to push the CD's in......needles to say the Spudger works fine.....Shame I wasted £100 on the new optical drive ;o( Maybe sell teh spare on eBay....Happy days!

  • HT201240 PLEASE HELP PROBLEMS WITH MY MAX OSX 10.5.8

    Does anyone know how many chaaracter my mac password can be up to ? I forgot my password and my trackpad and mouse is broken so I can't use Command S to make a new one and I'm just trying to figure out what the password requirements were in 2010? any help would be much appreciated I have another macbook but I would really like to get the other one up and running again as a desktop with a mouse and keyboard. Thanks.

    edit: trackpad and keyboard don't work it took a fall two years ago when my girlfriend dropped it I can only start it using the s key after power up and after it turns on the keyboard and trackpad do not function.

  • Please help me with my projectiles and angles program!!!!

    I am having problems lining things up correctly. my program generates a table telling you how far an object will travel based upon its angle and its velocity. the chart has the angles along the top and the velocites down the side. default angles are 10,20,30,40,50,60,70,80 and default velocities are 20,40,60,80,100. I need the user to be able to enter the smallest angle, the angle increment, and the total number of angles.
    My problem is for exmaple if i enter the smallest angle as 20, increment as 5, and total number as 4 it will display the correct calculations but the angles on the top will not line up. It will display angles 0,5,10,15 when its suppose to be showing 20,25,30,35. Anyone know how to fix this?
    Also i need the user to be able to enter the minimum initial velocity, maximum initial velocity, and the number of equally spaced initial velocities. for example if the user enter smallest velocity 10, largest velocity 30, and total number 5 it should display the distances for initial velocities 10,15,20,25,30. Any ideas on that one? I will post my code below. Thanks again for any help you can provide!!
    import java.util.*;
    public class test
    /** Main Method**/
         public static void main(String[] args)
              Scanner sc = new Scanner(System.in);
              int smallestAngle, increment, totalAngles,angleDegree = 0, velocity = 0;
              double answer = 0;
              System.out.print("Please enter the smallest angle: ");
              smallestAngle = sc.nextInt();
              System.out.print("Please enter the increment: ");
              increment = sc.nextInt();
              System.out.print("Please enter the total number of angles: ");
              totalAngles = sc.nextInt();
              for(int i = 0; i < totalAngles; i++)
                   System.out.print("\t" + (angleDegree + (increment * i)));
              for(int i = 0; i < (totalAngles * 5); i++)
                   if((i % totalAngles) == 0)
                        angleDegree = smallestAngle;
                        velocity += 20;
                        System.out.print("\n" + velocity);
                   answer = Math.round((Math.pow(velocity, 2) * Math.cos(Math.toRadians(angleDegree)) * Math.sin(Math.toRadians(angleDegree))) / 32);
                   System.out.print("\t" + answer);
                   angleDegree += increment;
              System.out.println("\n\n");
    }

    Ok i re wrote my code another way hoping it would help solve things. My prob now is that it will only display the correct degree headings and not produce any form of calculation. I need to find a way for the user to enter the minimum initial velocity they want, the maximum initial velocity they want, and finally the number of equally spaced equally initial velocities. After this I need the program to produce the table with the calcuations. MY CODE SO FAR IS POSTED BELOW!! PLEASE PROVIDE SOME CODE OR INSIGHT TO FIX MY PROBLEM!! :-) THANKS!
    import java.util.*;
    public class testtwo
    /** Main Method**/
    public static void main(String[] args)
    Scanner sc = new Scanner(System.in);
      int angleDegree = 0;
      int beginningangle = angleDegree;
      int totalangles = 0;
      int angleincrement = 0;
      int velocity = 0;
      int velocityincrement = 20;
      int numberofvelocities = 5;
      int maxvelocity = 0;
      double answer = 0;
      int answerint = 0;
      int tablesize = numberofvelocities * totalangles;
      System.out.print("Please enter the smallest angle: ");
      angleDegree = sc.nextInt();
      System.out.print("Please enter the increment: ");
      angleincrement = sc.nextInt();
      System.out.print("Please enter the total number of angles: ");
      totalangles = sc.nextInt();
      System.out.print("Please enter the minimum initial velocity: ");
      velocity = sc.nextInt();
      System.out.print("Please enter the maximum initial velocity: ");
      maxvelocity = sc.nextInt();
      System.out.print(" Please enter the number of spaced initial velocities: ");
      numberofvelocities = sc.nextInt();
      System.out.print("\t");
      for(int a = 0; a < totalangles; a++)
          System.out.print("\t" + angleDegree  );
          angleDegree += angleincrement;
      for(int i = 0; i < tablesize; i++)
       if((i % totalangles) == 0)
        angleDegree = beginningangle;
        velocity += velocityincrement;
        System.out.print("\n" + velocity + " ft/sec");
       answer = Math.round((Math.pow(velocity, 2) * Math.cos(Math.toRadians(angleDegree)) * Math.sin(Math.toRadians(angleDegree))) / 32);
       answerint = (int)answer;
       System.out.print("\t" + answerint);
       angleDegree += angleincrement;
      System.out.println("\n\n");
    }  Message was edited by:
    chrisb0486

  • Please help - Problem with loading swf's (running very slowly)

    Hi
    I have posted this problem up in the last few days so I built a quick demo of my problem. Can somebody please download it and take a look at it and see what I'm doing wrong?
    You can download it here at:
    http://www.bounceworld.ie/download/Demo_Test.zip
    The external swf's when loaded.....run very very slow; sometimes unresponsive as if there is a script running in the background. I'm using keyboard commands to navigate through the screens - eg:
    on (keyPress "<Space>") {
    gotoAndStop("scene02", "firstframeLabel");
    Thank you for your help!!!!

    Hi
    I'm trying to use Key Listeners to solve my problem.
    I don't know much about key liseners so can somebody help me out.
    I have the following on a keyframe yet it still wont jump to the certain frames when I press the relevent keys. Am I missing something?
    stop();
    KeyListener = new Object();
    KeyListener.onKeyDown = function() {
    if (Key.getAscii() == 38) {  // UP key
    gotoAndStop(89);}
    if (Key.getAscii() == 40) {  // DOWN key
    gotoAndStop(91);}
    if (Key.getAscii() == 37)  // LEFT key
    gotoAndStop(88);}
    if (Key.getAscii() == 32) {  // SPACEBAR key
    loadMovie("application_01.swf", "container");}

  • Please Help: problems with 2nd internal SATA drive on G5

    Hello everyone,
    I was transferring and deleting very large files from my main drive, a 2nd 250GB SATA internal drive, and an external 250GB FW800 drive recently (about 50GB worth of data transfered), and decided to run disk warrior and repair my permissions/verify disk in disk utilities once completed.
    Everything seemed fine until I verified my 2nd internal drive upon which I received the following error: "First Aid Failed" citing "Invalid node structure" and that the volume needs to be repaired. I attempted to Repair disk, though the process stops and I get the same error "Volume could not be repaired because of an error."
    This 2nd SATA drive only holds data (I'm a musician so it only holds sample data for streaming in Logic) but it contains allot of information (185GB used of 233GB) which according to my math comes out to about 80% used. This should be acceptable amount, correct? The drive also has Journaling enabled, though I'm not sure if its relevant or not.
    What should I do? The drive itself seems to be working fine, but why would disk utility have a problem reading/repairing it if its indeed fine. Should I be worried? The drive is probably no more than 2 years old, so it cant be drive failure yet, can it?
    Thanks in advance for any help you can provide!
    Update: I tried to graph the problem drive again in diskwarrior, and this time an error occurred! This obviously did not happen the first time I used diskwarrior to graph and build a new directory, so something must have happened recently. What could have happened? What should I do?
    Message was edited by: Jonathan Timpe

    This 2nd SATA drive only holds data (I'm a musician
    so it only holds sample data for streaming in Logic)
    but it contains allot of information (185GB used of
    233GB) which according to my math comes out to about
    80% used. This should be acceptable amount, correct?
    Yes, that's fine.
    The drive also has Journaling enabled, though I'm not
    sure if its relevant or not.
    Hmm, I think I once had a drive with a directory problem that couldn't be fixed with DiskWarrior without journaling being (temporarily) disabled. After disabling journaling, I used DiskWarrior to Rebuild the drive's directory, then I reenabled journaling.
    What should I do? The drive itself seems to be
    working fine, but why would disk utility have a
    problem reading/repairing it if its indeed fine.
    Should I be worried? The drive is probably no more
    than 2 years old, so it cant be drive failure yet,
    can it?
    I'm afraid it could be, I've had drives fail at any time between half a year after purchase up to 3 or more years after. Though often one hears the drive "die", or notices very slow performance due to bad blocks being weeded out, and the S.M.A.R.T. status - visible in Disk Utility (only for internal drives) in the bottom right, when you select a drive (not volume) is an indicator of a harddisk's health as well (though not the most complete, see this hint, or S.M.A.R.T. Guard).
    Update: I tried to graph the problem drive again in
    diskwarrior, and this time an error occurred! This
    obviously did not happen the first time I used
    diskwarrior to graph and build a new directory, so
    something must have happened recently.
    Did you try to repair anything with Disk Utility in the meantime?
    What could
    have happened? What should I do?
    So did the Repair with DiskWarrior not finish? What kind of error was it?
    In my experience, DiskWarrior mostly fixed any directory trouble. For more serious cases, see this thread.

  • Urgent.Please Help me. DB2 Connectivity and Swings

    Hi.
    I use Jbuilder 7.0 and I want to query from a DB2 database.
    I have used some swing classes in my frame.
    I have defined a new library that contain DB2 JDBC Driver and added it to required Library of my project.
    I have used a DataBase class instance for connecting to DB2.
    in jbuilder designer,after selecting connection property of Database class,I want to select DB2 JDBC Driver from Drivers List.
    In the JDBC Drivers List,I see COM.ibm.db2.net.DB2Driver(DB2 JDBC Driver),but it's color is red and seems that the driver is not accessible.
    Do you know why it's inaccessible?
    any Idea?
    Best Regards.

    Hi all
    Help me please,urgently.
    Thanks.

  • Need Help: Problem with iTunes 8 and artwork.....

    This is a weird issue. I'm trying to add album artwork for imported albums manually in itunes that it can't find or has incorrect. Every time I try (no matter which method) the artwork either doesn't take, iTunes freezes, or the album in question skips the first track until I delete the entire album and re-import. Any suggestions? I'm running 10.5.6. Any help would greatly appreciated

    Hi,
    Hope I can help. I had a similar problem. I could not update any information about the tracks album etc. I had checked permissions everything... finally I decided to go to ID3Tags and selected none and then the edits took. Strange don't know why, but in my case it has worked a number of times.
    Hans

  • PLEASE HELP - Problem with 2 column fixed template in Dreamweaver CS3

    I am trying to create a website using the 2 column fixed, right sidebar, header and footer html template in Dreamweaver CS3.  I tried putting a picture in the right side bar as well as with in the main content or left portion of the page, and neither picture is showing up when I view it in any of the browsers I'm using.
    I've made some minor changes in colors and sizing, but other than that no other changes.  The pic I put in for the header is showing up just fine though.
    Any help or advice to solve this issue would be greatly appreciated.
    Thanks!!

    Here is the base Dreamweaver code including the pic references that I'm trying to show on either side - when the browser opens, it only shows a blank space where the pics should be... let me know what you think.  Thanks!!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/AL TemplateNEW.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Temp Home</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    .twoColFixRtHdr #container {
    width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
    .twoColFixRtHdr #header {
    background: #DDDDDD;
    padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .twoColFixRtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixRtHdr #sidebar1 {
    float: right; /* since this element is floated, a width must be given */
    width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px;
    .twoColFixRtHdr #mainContent {
    margin: 0 250px 0 0; /* the right margin on this div element creates the column down the right side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    .twoColFixRtHdr #footer {
    padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    .twoColFixRtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixRtHdr #sidebar1 { width: 220px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]--></head>
    <body class="twoColFixRtHdr">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="sidebar1">
        <h3>Sidebar1 Content</h3>
        <!-- InstanceBeginEditable name="RightSideBar" -->
        <p>Right Side Bar Content - - -    </p>
        <p>Inserted pic below here</p>
        <p><img src="/images/Syntergy5.jpg" width="123" height="105" /></p>
        <p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the right side of the #mainContent div if it will always contain more content. </p>
        <p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</p>
    <!-- InstanceEndEditable -->
        <p> </p>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> Main Content </h1>
        <!-- InstanceBeginEditable name="MainContent" -->
        <p>Main Content - - </p>
        <p>inserted pic below here:</p>
        <p><img src="/images/Kelly1.jpg" width="285" height="236" /></p>
        <p> </p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero. </p>
        <!-- InstanceEndEditable -->
        <p>
          <!-- end #mainContent -->
        </p>
      </div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    <!-- InstanceEnd --></html>

  • URGENT! Having problem with while statement and other syntax errors

    I am trying to teach myself JSP for a school project due very soon. But I keep receiving errors surrounding my while statement. The errors are:
    Syntax: ";" inserted to complete BlockStatements
    Syntax: "}" inserted to complete Block
    I have checked it over and over again, comparing against other examples found in this forum and against servlet examples and I can see no difference. This is my file for your information. It is supposed to list all the users in the user table. Is there a simpler way to do this?
    regards
    rach
    <%@ page language="java" import="java.sql.*, java.util.*"%>
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <%! String selected = null; %>
    <%
    try{
         // Connect to the database
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
         Connection con = DriverManager.getConnection("jdbc:odbc:dbtest");
    catch(ClassNotFoundException e) {
         System.out.println("Database driver could not be found.");
         System.out.println(e.toString());
         throw new UnavailableException(this, "Database driver class not found");
    try{
         //create SQL statement
         stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
    catch(SQLException e){
         System.out.println("Error connecting to the database.");
         System.out.println(e.toString());
         throw new UnavailableException(this, "Cannot connect to the database");
    %>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
         <td width="10">    </td>
         <td width="200" valign="top" align="center">
         <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr><td><form method="post" action="userupdatedelete.jsp" target="content" name="userlist">
                   <h2>Users</h2>
              </td>
              </tr>
              <tr>
                   <td width="10">    </td>
              </tr>
              <tr>
                   <td valign="top"><select size="15" name="rec">
                   <!-- if the resultset is not null -->
                   <% try {
                   //if (rs.next()) {
                        While (rs.next()){
                             //retrieve data from User table
                             String userid = rs.getString("User_ID");
                             String firstname = rs.getString("User_firstname");
                             String lastname = rs.getString("User_lastname");
                             out.println("<option value='userid'>lastname + ', ' + firstname</option>");
                             //<option value="<%=userid%>"><%=lastname + ", " + firstname%></option>
                   //else {
                   //     out.println("<option>    - No Users Entered - </option>");
                        //<option>    - No Users Entered - </option>
                   stmt.close();
                   con.close();
                   catch (SQLException ex){
                        System.err.print("SQL Exception :");
                        System.err.println(ex.getMessage());
                   %>               
                   </select>
                   </td>
              </tr>
              <tr>
                   <td align="center"><input type="submit" value="Update/Delete"></td>
              </tr></form>
              <tr>
                   <td><br></td>
              </tr>
              <tr>
                   <td align="center">
                   <form method="post" action="useraddform.jsp" name="addbuttonform">
                   <input type="submit" value="    Add New    " name="addnew">
              </tr></form>
              </table>
         </td>
         <td width="10">    </td>
    </tr>
    </table>
    </body>
    </html>

    There is a problem here with the "scope" of variables namely your variables "rs" and "stmt". Variables declared within a try block are available only within that try block. Also, the type for stmt is not even given.
    Change:
    try{
    //create SQL statement
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
    catch(SQLException e){
    System.out.println("Error connecting to the database.");
    System.out.println(e.toString());
    throw new UnavailableException(this, "Cannot connect to the database");
    }to:
    Statement stmt = null;
    ResultSet rs = null;
    try
        //create SQL statement
        stmt = con.createStatement();
        rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
    catch(SQLException e)
        System.out.println("Error connecting to the database.");
        System.out.println(e.toString());
        throw new UnavailableException(this, "Cannot connect to the database");

Maybe you are looking for

  • Driver for HP scanjet 5400 c windows 7 64 bit

    This is an old issue, and according to various posts there should be a workaround for this one. I have not seen one which is fully explained and conclusive with a win 64 system. I have downloaded everything II can find on the HP site. The scanner sho

  • PhotoShop CS6 .psd file currpt/not open :( my lots hard work

    Hi Friends, Today Accidentally my photoshop has closed at that time i am working on my demo template work from last 2 months, so again i open my .psd file thier is error prompt "could not complete your request because the file is not compatible with

  • IReport and JRHtmlExporter : Problem in reloading images

    Hello I have created the report with IReport and exported to the HTML format. The problem is when i reload my webpage , in backend error is shown that "Cannot write to image files". Does that mean when i refresh the page stream is still writing the i

  • Are there earphones for iPod as comfortable as the iPhone's Bluetooth?

    This has got to be thee most comfortable earphone I've ever tried - the iPhone's Bluetooth thing by Apple. Does anybody know if there is are earphones usable with the iPod that are as comfortable (and stay in the ear - like the iPhone's one)? The App

  • AI CS 4 crashes on quit

    Search this forum for this topic. But all hints are useless. Finally i wipe the disk and installed CS 4 over a fresh installed Mac OS 10.6 and the crashes persist. I can work the whole day without any probs. Bur when i quit AI CS4 it crashes every da