Multiplayer pong

Hey everybody,
I'm writing a game for a final project and it is supposed to be a four player "Pong"
I have my keyboard listener working just fine, the problem is that it just accept the input from one key, as soon as another key is pressed the first key stop working
I know everybody says this, but I'm kind of starting with java, and that is the only thing left in my game. I saw something about AWTEventMulticaster but I have no idea how to use it.....
does anyone have a sugestion?
thanks!

The usual way of doing this is to store a flag for each key indicating whether it is currently pressed. Most people use an array of 256 booleans for this task.
When I wrote the following code (a LONG time ago) I didn't know that so I used an ArrayList instead, which seemed to work fine, but maybe is a bit slower. I'm sure you could easily adapt what I've done to use an array if you prefered.import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.HashSet;
* Generic Keyboard handler for detecting pressed keys. Keeps a list of all the
* keys currently pressed in a HashSet. Register this KeyListener on the main
* window, then use: KeysDownListener.isDown(key) to see if a particular key is
* pressed. KeysDownListener.anyDown() to see if <i>any </i> key is currently
* pressed.
public class KeysDownListener implements KeyListener {
    static private HashSet keysDown = new HashSet();
     * Returns boolean true if the supplied key value represents a key that is
     * currently pressed.
     * @param key
     *            A valid keycode that could be a pressed key.
    static boolean isDown(int key) {
        return keysDown.contains(new Integer(key));
     * Returns true if the supplied key value is a key that was down when this
     * routine was called, but waits until the key is released before returning.
     * If the key wasn't down on entry, then the routine returns false
     * immediately.
    static boolean wasDown(int key) {
        if (isDown(key)) {
            while (isDown(key)) {
                try {
                    Thread.sleep(5);
                } catch (InterruptedException ie) {
            return true;
        return false;
     * Returns boolean true if there are any keys currently pressed.
    static boolean anyDown() {
        return ! keysDown.isEmpty();
    public void keyPressed(KeyEvent ke) {
        keysDown.add(new Integer(ke.getKeyCode()));
    public void keyReleased(KeyEvent ke) {
        keysDown.remove(new Integer(ke.getKeyCode()));
    public void keyTyped(KeyEvent ke) {
}I add the listener to the panel like this:
qixFrame.addKeyListener(new KeysDownListener());And I use the results like this:        if (KeysDownListener.isDown(KeyEvent.VK_UP)) {
            moveX = 0;
            moveY = - 1;
        } else if (KeysDownListener.isDown(KeyEvent.VK_DOWN)) {
            moveX = 0;
            moveY = + 1;
        ...Looking at this code now, I find it quite weird that I instantiate the class, but then use static methods - I'm sure this code could be improved on! :-)
Regards,
Tim

Similar Messages

  • Pong contest (7 dukes)

    Easy as 1, 2, 3.
    1- Write and compile a pong game (Multiplayer Pong, Pong3D, etc.)
    2- Post your game (either source code or a link to your game)
    3- I will reward 7 Duke Dollars to the author of the best Pong game.

    "qonjure wrote a nice pong-game for the 4K-contest. You can find it here:"
    Hehe I would not call it nice but thanks ;)
    Anyway I guess that�s my entry then. Or can I enter since I wrote it before the contest? I updated it last week and I am planning to release the source next week after cleaning it up some if anyone is interested. Here is a direct link but do check the link Storgaard gave and be amazed by all the other 4k games.
    http://home.student.uu.se/maer6521/pjong.html

  • Fast Data Transfer

    I want to make an online multiplayer pong game. I want the
    user to be able to play against a different user on a different
    network. How could I transfer the data of one player to the other?
    When one player moves his paddle left, I need somehow to let the
    other user's computer know that pretty fast so they have the same
    game play. I thought about using a text file. When a player moves
    left, it will write left on a text file and upload it to my server.
    Then the other computer will download the text file. If it says
    left, he will move the opponent left. If the text file says right
    it will move the opponent right. But I think this is a very slow
    process and their game will pretty much not be the same. How could
    I do this so that they get the data fast?
    Thanks,
    Dor

    DorKauf schrieb:
    > does anyone know the answer?
    I did, but the public newsservers don't seem to relay answers
    back to
    Macromedia's newsserver, so here is the answer again:
    You may want the players flash movies to do a direct IP
    communication,
    so your server will only have to relay the opponents IP once.
    Best regards,
    Martin

  • Moving a ball around

    I have a really annoying problem that I can't figure out.. I think it's a problem with my casting.
          float delta = System.currentTimeMillis() - timeAtLastTick;
          timeAtLastTick = System.currentTimeMillis();
          float ychange = (float)(ball.getYVol()*(delta/1000));
          float xchange = (float)(ball.getXVol()*(delta/1000));
          float newx = xchange + ball.getXPos();
          float newy = ychange + ball.getYPos();
          System.out.println("xchange: " + xchange + " newx: " + newx + " oldx: " + ball.getXPos());
          ball.setYPos(newy);
          ball.setXPos(newx);I call that code every time I go through my game loop. xchange and ychange are always possitive, but newx and newy are always equal to oldx and oldy! Any thoughts?

    Nope, I copied and pasted that code. The only difference is that it was wrapped up in a method. Here's my tick() method:
    public void tick()
          float delta = System.currentTimeMillis() - timeAtLastTick;
          timeAtLastTick = System.currentTimeMillis();
          float ychange = (float)(ball.getYVol()*(delta/1000));
          float xchange = (float)(ball.getXVol()*(delta/1000));
          float newx = (xchange + ball.getXPos());
          float newy = (ychange + ball.getYPos());
          ball.setYPos(newy);
          ball.setXPos(newx);
          System.out.println("xchange: " + xchange + " newx: " + newx + " oldx: " + ball.getXPos());
    }What's being printed looks something like this:
    xchange: 7.5 newx: 5.48133175E11 oldx: 5.48133175E11
    xchange: 16.0 newx: 5.48133175E11 oldx: 5.48133175E11
    xchange: 7.5 newx: 5.48133175E11 oldx: 5.48133175E11
    xchange: 8.0 newx: 5.48133175E11 oldx: 5.48133175E11
    ...Every time I go through my gameLoop, I call tick, and then I call repaint on the panel that's drawing my ball. Here's the drawing code:
          g2.fillOval(Math.round(ball.getXPos()), Math.round(ball.getYPos()), BALL_WIDTH, BALL_HEIGHT);It definately wasn't a problem with using the wrong class files, but I deleted them all and recompiled anyway. That didn't work....
    Here's my Ball.java code if anybody wants to look at it:
    package com.cyntaks.gaming.arcade.pong;
    public class Ball
      private float xPos;
      private float yPos;
      private double xVol;
      private double yVol;
      public Ball(float xPos, float yPos, float xVol, float yVol)
        this.xPos = xPos;
        this.yPos = yPos;
        this.xVol = xVol;
        this.yVol = yVol;
      public float getXPos()
        return xPos;
      public void setXPos(float newXPos)
        xPos = newXPos;
      public float getYPos()
        return yPos;
      public void setYPos(float newYPos)
        yPos = newYPos;
      public double getXVol()
        return xVol;
      public void setXVol(double newXVol)
        xVol = newXVol;
      public double getYVol()
        return yVol;
      public void setYVol(double newYVol)
        yVol = newYVol;
    }Well I'm stumped. I'm going to rewrite all of my ball moving/handling/drawing code tomorrow if I don't think of something in my sleep :P
    The game is a multiplayer pong game. I had everything working, but then I realized that because the game speed was locked to the refresh rate, the two players' games would become out of sync if their frame rates weren't synced. That's why I implemented this "delta tick" idea. Here's a screenshot of the game in action before I started this delta thing:
    http://gaming.cyntaks.com/projects/projects/tempscreens/RLKPong.gif

  • Desktop multiplayer ping-pong game

    Hello all,
    I've come here to seek advice related to my university project. I am almost a complete newbie at Java - during the past years I've only done programming in C, C++, Symbian and PHP. I remember doing a project in Java on the first year, but now I don't remeber anything.
    Let's get to the point. I think I won't have problems with the language itself and the structure of the application. Yet, I would be very grateful if you could guide me to the resources/libraries/classes I should use in my project.
    It will be a multiplayer network ping-pong game in a frame window, with a game frame, some menubar and a chat below the game frame. My question is: what class should I use to create a window for the whole application? What class for the game screen, where it will be neccesary to paint a ball jumping here and there and two rackets? What classes would you recommend for handling the network communication between two instances of the application? Any other suggestions would also be welcome. I have less than three weeks to implement this game:)
    Thanks in advance.
    Maciej Gawronski

    I guess you haven't taken the google class yet...
    http://www.softlookup.com/tutorial/games/ch2.asp
    http://javaboutique.internet.com/tutorials/Java_Game_Programming/
    Edited by: Mr.E.H. on Jan 2, 2008 3:01 PM

  • Please help beginner! Few pong questions.

    So, I have just started creating my own pong game after
    learning the basics of Flash 8. Everything went perfectly until
    now, I got a bit stuck.
    I got to point where I have fully working menu, multiplayer
    and singleplayer, you can play against another person using mouse
    and arrows. The scoring system works too and I actually managed to
    get the computer to follow the ball but here comes the first
    problem. I found a whole actionscript for the ball on the internet
    here it is:
    onClipEvent(load){
    s = {l:10,r:490,t:20,b:405,w:10,h:10};
    function setSpeed(){
    xspeed = Math.round(Math.random()*5)+1;
    yspeed = Math.round(Math.random()*5)+1;
    xspeed *= Math.round(Math.random()*2)==1 ? -1 : 1;
    yspeed *= Math.round(Math.random()*2)==1 ? -1 : 1;
    setSpeed();
    _root.cscore = _root.pscore = 0;
    onClipEvent(enterFrame){
    _x += xspeed;
    _y += yspeed;
    if(_x+(s.w/2)+xspeed>s.r){
    _x = s.r/2;
    _y = s.b/2;
    setSpeed();
    _root.cscore += 1;
    if(_x-(s.w/2)+xspeed<s.l){
    _x = s.r/2;
    _y = s.b/2;
    setSpeed();
    _root.pscore += 1;
    if(_y+(s.h/2)+yspeed>s.b){
    _y = s.b-(s.h/2);
    yspeed *= -1;
    if(_y-(s.h/2)+yspeed<s.t){
    _y = s.t+(s.h/2);
    yspeed *= -1;
    if(this.hitTest(_root.player)){
    _x = _root.player._x - _root.player._width/2;
    xspeed *= -1;
    xspeed *= 1.08;
    yspeed *= 1.08;
    if(this.hitTest(_root.computer)){
    _x = _root.computer._x + _root.computer._width/2;
    xspeed *= -1;
    xspeed *= 1.08;
    yspeed *= 1.08;
    As I said I am a beginner and I dont really understand the
    code. The problem is that after every hit the ball gets faster and
    faster and faster until it is impossible to see it.
    Here comes another problem: I have got the enemy just
    following the ball so it is impossible to score the script for
    enemy is:
    onClipEvent(enterFrame){
    ydist = _root.ball._y - _y;
    _y = _root.ball._y;
    Now my question is can someone plese tell me what do I have
    to change in the ball code so it stays at the constant speed or it
    just increases a little bit. The second qustion is how can I make
    the enemy computer not perfect? So you can actually win the game?
    Something like hit it randomly.
    My last question is: The game should be quiz pong. So if you
    score a point a qustion will pop up and you will have to answer it.
    What is the best way to do that? I think it should mean somethin
    like this: If score=+1 gotoandplay(lets say the question will be at
    frame 20) I dont know if that is the way it should be formed in the
    action script it is just my guess.
    Please if someone can help me at least with one of those
    questions I would be incredibly oblidged. thanks

    hey, im not great at this easier, but i think the speed
    problem can be solved by getting rid of the 2 lines
    xspeed *= 1.08;
    yspeed *= 1.08;
    I think this increases the speed by 8% after every hit. You
    can also try lowering the number, but if you go elow 1 it will slow
    down.

  • Multiplayer game programming - Code of a basic server

    I'm a beginner in multiplayer game programming and I'm looking for the code of a basic server for a multiplayer game. I don't mind which kind of game (I mean: chess, ping-pong, battlenet...) The important thing is the code pattern abnd the server structure.
    Could anyone help me?

    If you want to have a look at a generic multi-threaded server, check out the Java networking tutorial.. there's a basic example server that responds to a "Knock knock, who's there?" conversation.. you can start off with it..
    Of course it's not a game server but you could try sticking in a game engine to maintain the game world and change the user sessions to a proper game protocol.. e.g. sending key strokes or joystick movements. You could also get the server to send player and enemy positions etc...
    Good luck!

  • Pong Lag

    I've recently created a Pong game that is multiplayer and networked.
    When I play my game over LAN, it works fine, but when I play over the internet, it gets really laggy, even from a cable modem to a DSL modem. I've played similar pong games over the net, and never had lag problems. I don't understand why I'm having lag, and I don't know where to begin, since, I've made non-laggy chat programs/MUDs before in Java ;) but never a graphical 'action' type game. I have reason to believe though, that it is the IO streams I'm using for sending and recieving (PrintWriter/BufferedReader). Are there better IO streams for fast pace sending like this or something? Or maybe I just need to learn some logic in this whole thing, on how often I send things...
    Either way, PLEASE help!
    Thanks

    Well what are you sending over the network. I would HOPE you are only seding the motion of the padles up and down. Anything more than this is extra and it would be better to do the processing concurently on both sides. You would definatly have to set up some sort of syncronization maybe send time stamps with direction changes (this is all i would send like when the user is going up, when they are going no where and when they are going down) Send maybe a time stamp with all of these signals that will allow you to sync up the processing on both machines. Sending something like a graphics object is a it expensive to do and will result in slower game play. Also remeber the difference between a LAN and a cable/dsl modem is massive. LAN's will give you speeds in the 10mps range for something like this making transimission times a non issue unless you are being insanly wasteful, DSL/Cable odems on the other hand tyicaly operate in the 200-300 kbs range fast when you copare it to dial ups but very slow when you compare it to a LAN.

  • How to create a turn-based multiplayer online game?

    Hello. This is my first time here. I am familiar with programming games and have been doing so for 20 years. However, I'm completely new to using Java to do so. In the past, I wrote games in BASIC, Blitz, and C++ using DirectX. Being familiar with C/C++, the Java language syntax is not a hurdle for me.
    I've never created a networking game, but I feel that if I tried to create one using one of the programming languages I already know that I would succeed at doing so. (I'm just trying to show that I feel confident in programming with the languages that i know)
    The dilemma here is that someone else would like me to program a turn'based multiplayer game for them in Java.
    I've downloaded the NetBeans 4.1 IDE and uncovered a lot of terms and such that I'm unfamiliar with.
    What I'm looking for from you guys is an overview of what I need to do to achieve my ultimate goal of creating this online game.
    As a reference, I need to create a game very similar to this one:
    http://www.tacticsarena.com/play/
    Click on the "Launch Game: Tactics Arena Online" link to see the game.
    Create a new account to play (accounts are free).
    Upon starting the NetBeans IDE, I found that I could create several different types of projects. I guess first of all, I need to know what kind of project is best suited to make this type of game.
    To name a few, I have to select from:
    Java Application
    Java Class Library (is this an Applet?)
    Web Application
    Enterprise Application
    EJB Module
    Then I guess I would like to know if any of the above projects would be used to make the clients interface or the server side software or both? Or do I need to use some other kind of software/programming language/etc. to create the server side? (As a side note, typically what kind of Operating system would the server be using? I ask because I may set one up myself for testing purposes.)
    Somewhere I came upon the term 'Servlet'. Is this some kind of Java server application? Do I need/want to be using this?
    As you can see, I'm very lost at where to begin. I'm not at all unfamiliar with programming. I'm just unfamiliar with Java.
    WolRon

    Hi WolRon
    I am in the process of learning Java myself and from what i have read, you have a long road ahead of you!
    To start this Project the following will be essential for you to know:
    Applets - if this is going to an online game
    Multiple Threads - for the Server side
    Swing - for the GUI on both sides
    AWT - help work with the user input (mouseListeners, buttonListeners, etc)
    And knowledge of a database.
    those are the most obvious things that you will need to understand.
    I strongly suggest buying a Java book from which you need to start at the beginning. Although the concept of OOP is the same through most languages Java has terms - as do all languages- that will be different from the other languages. Starting at the beginning will be beneficial to your Java coding future.
    Good luck.

  • 24" iMac + Call of Duty 4 (MW):  Setting up graphics for multiplayer

    Any savvy iMac Call of Duty 4 (Modern Warfare) players out there? I'm having a hard time finding posts at Aspyr or online that directly related to the ideal graphic settings for the game, using an imac 24". The manual that came with the game also doesn't explain any of the settings. Could any good players who have the game running smoothly on an imac 24" please share.
    I have heard some guys dummy down all their settings to try and get the best fps possible, but when I do that, it never changes my fps.
    So far this is how I have mine set for multiplay, but I know I'm missing things:
    Multiplayer Game:
    Video mode: 1024X768(lots of screen sizes available)
    Refresh: 60HZ (the only setting available)
    Aspect Ratio: Auto
    Sync Every time: No
    Specular Map: No (What is this?)
    Depth of Field: Y
    Glow: Y
    Number of Dynamic Lights: N
    Soften Smoke: Y
    Ragdoll: Y
    Bullet Impacts: Y
    Model Detail: N
    Water Detail: N
    Thanks everyone.
    Message was edited by: pathfinder31

    Hello pathfinder31,
    I have just got this game thinking it would run great on my mac. But on mine the frames really dip when there is lots going on. I`ve tried lowering the settings, but from what I can tell this doesn't help. There seems to we very little information on the net about the Mac version of this game. If you have found some good settings please let me know as I`m a little disappointed with it.
    Cheers
    mjcuk

  • How to make a really basic pong game for a beginner

    Hello.  I've read through a couple of threads on here dealing with making a game of pong in LabView, but in them the users had questions with far more complex aspects of the program than I want to deal with.  I am a beginner programmer in LabView with limited experience in Java and Visual Basic programming.  I was tasked with creating a game over winter break, and now that I finally have some time (this weekend that is), I decided that I'd make a really simple game of pong.  However, I have seriously overestimated the difficulty of this for a beginner who has very limited knowledge of Lab View.
    I ask you to please have some patience with me.
    I know what I want to do, and just need help inplementing it.
    Here is the idea for my design to keep it as simple as possible:
    -Create a field (I am not sure what to use for this, but from my reading it appears that some sort of a picture output is needed, but I cannot find that anywhere).
    -Set up some simple function that can output the dimensions of this field to use with collision tracking.
    -Create a ball that can be tracked by the program.
    -From my reading I understand that the simplest way to "bounce" the ball off the sides appears to simply reverse the X velocity of the ball when it strikes the vertical boundaries and the Y velocity when it strikes the horizontal boundaries.
    -Insert some sort of a "paddle" that the user can control with the left and right arrow keys.
    Now, as I have mentioned I am a beginner with approximately one month maximum knowledge of this software, spread over about a year.  I want to take things slow.  So for starters, would anyone be willing to walk me through creating a visual output for this and creating a ball that will bounce off all sides?
    If I can at least get that far for now, then I can move on (with help I hope!) of inserting an interactive interface for the "paddle."
    I have found some LabView code for a simple game like this, but it also includes a score keeping loop as well as an "automatic play" option, and I am attempting to wade through all that code to find the bones of it to help me with this, but due to my inexperience, this might thake a lot of time.
    I thank you for any and all help anyone may be able to provide.

    EchoWolf wrote:
    -Create a field (I am not sure what to use for this, but from my reading it appears that some sort of a picture output is needed, but I cannot find that anywhere).
     Wel, there is the picture indicator in the picture palette. In newer versions it's called "2D picture". The palettes have a search function. Using the palette search function is a basic LabVIEW skill that you should know. If you've seen the example for the other discussion, it uses a 2D boolean array indicator. The boolean array is only recommended for a monochrome very low resolution display.
    EchoWolf wrote: -Set up some simple function that can output the dimensions of this field to use with collision tracking.
    -Create a ball that can be tracked by the program.
    That seems backwards. Properly programmed, the code always knows the dimension and the ball position. The program generates, (not tracks!) the ball movement. Of course you need to do some range checking on the ball position to see when it collides with the walls.
    EchoWolf wrote:
    -From my reading I understand that the simplest way to "bounce" the ball off the sides appears to simply reverse the X velocity of the ball when it strikes the vertical boundaries and the Y velocity when it strikes the horizontal boundaries.
    Of course you could make it more realistic by keeping track of three ball parameters: x, y, spin.
    EchoWolf wrote:
    -Insert some sort of a "paddle" that the user can control with the left and right arrow keys.
    Pong is typically played with the up-down arrow keys.
    EchoWolf wrote:
    Now, as I have mentioned I am a beginner with approximately one month maximum knowledge of this software, spread over about a year.
    LabVIEW knowledge is not measured in time units. What did you do during that month? Did you attend some lectures, study tutorials, wrote some programs?
    EchoWolf wrote:
    So for starters, would anyone be willing to walk me through creating a visual output for this and creating a ball that will bounce off all sides?
    I have found some LabView code for a simple game like this, but it also includes a score keeping loop as well as an "automatic play" option, and I am attempting to wade through all that code to find the bones of it to help me with this, but due to my inexperience, this might thake a lot of time.
    Start with the posted example and delete all the controls and indicators that you don't want, then surgically remove all code with broken wires.
    Alternatively, start from scratch: Create your playing field. Easiest would be a 2D classic boolean array that is all false. Use initialize array to make it once. Now use a loop to show the ball as a function of time.
    Start with a random ball position. to display it, turn one of the array elements true before wiring to the array indicator using replace array subset.
    Keep a shift register with xy positions and xy velocities and update the positions as a function of the velocities with each iteration of the loop. Do range checking and reverse the velocieis when a edge is encountered.
    What LabVIEW version do you have?
    LabVIEW Champion . Do more with less code and in less time .

  • Multiplayer game center games and netgear router

    I can't get multiplayer networking type games to work behind my Netgear WNDR4000 router.  I tried a cheapo old router that I have an it works fine.
    Specifically I am trying Airwings on two different iPads that are both behind the same router. 
    Any suggestions?

    I never got this working with the Netgear router.  I created a support ticket with Netgear, but they told me to contact Apple.   I tried a Dlink router.   That didnt work either.
    Finally tried a Linksys EA3500 router and that seemed to work.

  • How to create a multiplayer game for steam using flash/flex?

    Hi guys,
    We've got a multiplayer game ready to go. Currently it is not multiplayer, but we'd like to get it to a stage where it can be played over the steam network by users of steam and owners of steam games.
    We'd like to if anyone could briefly give us a breakdown of how to get out game up on steam and available for multiplayer?
    Does steam host servers, and can we utilise a steam server to transfer data between players or would we have to run our own server?
    Currently were using flash builder to publish via adobe air to a windows desktop exe. Can anyone briefly explain how - once a player has downloaded the game from steam we can connect two players? Does anyone know how to use actionscript 3 to access steam network?
    Anyone have any experience developing multiplayer turn based game for steam using flash /actionscript 3 /adobe air?
    Thanks for your help in advance,
    i

    You would want to use the SteamWorks API, which is available from Steam as a C++ library, but there is most likely an Adobe Native Extension (ANE) that would allow you to use the library in AS3.
    I've never used SteamWorks but it seems to support peer-2-peer matchmaking (in other words, you wouldn't even need your own server, I think.)
    SteamWorks API:
    https://partner.steamgames.com/documentation/api
    Search results for "SteamWorks AIR ANE":
    https://www.google.com/search?q=steamworks+air+ane
    -Aaron

  • Iphone 4 won't BT connect with Ipod for Multiplayer game

    Ok.  So I've searched and can't find a solid answer.  I downloaded a Battleship game and have it both on my ipod touch and iphone4.  I tried using the multiplayer function with my wife through BT, but my iphone won't connect (find her ipod).  Her ipod finds my iphone but my iphone just cycles through.  From what I can tell from the searches I have done is the iPhone ****** people off because it won't connect through bluetooth with anything but headsets, etc.  But I thought I read that it will connect through BT for games.  And even when the Battleship game searches BT it says it's looking for other ipods, iphones, or ipads.  So I'm wondering if my ipod and iphone SHOULD be connecting for the game, but for some reason isn't. 
    Any help would be appreciated.

    No one has any help for me or has also had this problem? 

  • How do I set up my Airport Extreme to best use multiplayer games locally

    How do I set up my Airport Extreme to best use multiplayer games with my family. Everyone is located in the same house and uses the same router.
    I have tried a few games but have not  successfully connected  2 players

    That is a weird question, as your GAMES could be interpreted a hundred different ways. Are we talking about third party devices here or what?

Maybe you are looking for

  • Crystal Report Engine

    We have an ASP .Net application developed using VS2008 and Crystal Report for .NET in VS2008. We display most of the reports in Crystal Report Viewer, we also print the report directly to a network printer using PrintToPrinter function. We deployed t

  • Oracle Java Call

    Dear All, Need your help. I am posting my sample class below public static java.sql.ResultSet getData(String dbConnectStr,String dbuserID,String dbpwd,String query) throws Exception // Obtain default connection // Query all columns from the EMP table

  • SQL error -20003 at location stats_tab_collect-20

    Hello All, we are executing ths statistics with the followin command brconnect -u / -c -f stats -t all -f collect but the proccess report errors like: BR0301E SQL error -20003 at location stats_tab_collect-20, SQL statement: 'BEGIN DBMS_STATS.GATHER_

  • Force shortcut creation without user's prompt

    Is there any way i can force Shortcut creation even if the user selected "No" and this without changing Java panel's settings? I'm using Java *1.5.0_05-b0*5. thx Rasel

  • Dataware house with Oracle or distributed computing

    Hi All, When I talked with some guys in some big companies on the DW (ETL especially), all of them said they love distributing computing with Hadoop or Hive much more than Oracle. When they have huge data per day for processing (say n TB), Oracle or