Interconnect scanner with java'aplicationa

I have to do an aplication'java and this has to comunicate with a scanner,
the scanner'drivers is implement in C. I mean use JNI for the comunication
between drivers and the aplication'java but I need that the methods'drivers
be implement how native.
I read that I have to do something like a wrapper or swing generators'wrappers
anyone have some experience with my problem?
please I need some orientacion about how begin to work
Sorry for my English,It�s very bad
thank for advance

Hi
Navigate to your view and make it editable
add barcode UI element and a text view UI element
In the view designer define a action ex: scan that take a parameter called scantext
In the context create a value attribute of type string
select your barcode ui element and assign the type property to intermic or symbol ( this barcode is supported to those manf)
assign your action ex: scan to the onRead event of the barcode reader
Map the context attribute to your text view Ui element
add the below source code in your view implementation
public void onActionScan(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String scantext )
//@@begin onActionScan(ServerEvent) wdThis.wdGetContext().currentContextElement().setData(scantext);
//@@end
public static void wdDoModifyView(IPrivateBarCodeTestView wdThis, IPrivateBarCodeTestView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
if (firstTime) {
IWDBarCodeReader barCodeReader = (IWDBarCodeReader) view.getElement("BarCodeReader");
barCodeReader.mappingOfOnRead().addSourceMapping ("data","scantext");
//@@end
let me know how it goes....

Similar Messages

  • How to connect scanner or printer or barcode reader with java

    hello friends
    How to conncect printer ,scanner or barcode reader with java program directly .
    please send some suggestion .
    Thanks in advance
    Nitin

    922264 wrote:
    Thanks for the feedback. I'm having trouble getting my getText method to return the actual value, but here is my updated code:
    BufferedReader br = new BufferedReader( new StringReader( getText() ) );....
    public void getText(Document doc)
    Element e = doc.getDocumentElement();
         NodeList nodeList = doc.getElementsByTagName("Interface");
         for (int i = 0; i < nodeList.getLength(); i++)
              Node node = nodeList.item(i);
              if (node.getNodeType() == Node.ELEMENT_NODE)
                   Element element = (Element) node;
                   NodeList nodelist = element.getElementsByTagName("Description");
                   Element element1 = (Element) nodelist.item(0);
                   NodeList ndLst = element1.getChildNodes();
                   //System.out.print((ndLst.item(0)).getNodeValue());
         return doc;
    }Here is the compiler error I am getting:
    ImportDesc.java:32: error: method getText in class ImportDesc cannot be applied
    to given types;
    BufferedReader br = new BufferedReader( new StringReader
    ( getText() ) );
    ^
    required: Document
    found: no arguments
    reason: actual and formal argument lists differ in length
    Note: ImportDesc.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 errorThoughts?
    Edited by: 922264 on Mar 21, 2012 10:33 AMYour getText method is not returning anything.

  • Need help with Java Programming

    Hello All,
    I dont know how to save all the lines separatly and then work with the numbers?
    Example TxtIn:
    2 5
    0 9 2 3 4 // I dont know how many lines will appear, and dont know how many numbers in a line
    1 2 3 9
    1 5 4
    2 0 0 5 6
    2 5 1 9
    4 6 1 5
    4 9 1 8
    9 1 4 8
    9 5 0
    Example TxtOut:
    1 9 4 0
    I would really appreciate your help in this.
    In my code, i only past one time in the text file, and clear the numbers of the list, but i need to make more check =S
    Here is the code:
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.util.Scanner;
    import java.util.StringTokenizer;
    * @author Antonio
    public class web {
        /** Creates a new instance of Main */
         * @param args the command line arguments
        public static void main(String[] args) throws FileNotFoundException {
            int contador;
            ArrayList<Integer> lista = new ArrayList<Integer>();
            Scanner scn = new Scanner(new File("in.txt"));
            try {
            PrintWriter fileOut = new PrintWriter(new FileWriter("out.txt"));
            int ciudades = scn.nextInt();
            int aerolineas = scn.nextInt();
            int ciudadabuscar = scn.nextInt();
            int aerolinea = scn.nextInt();
            int bandera=0;
            while (scn.hasNextLine()){
                    String cad = scn.nextLine();
                    StringTokenizer st = new StringTokenizer(cad," ");
             while (st.hasMoreTokens())
                    String t = st.nextToken();
                    lista.add ( Integer.parseInt(t) );
               int a[]= new int[lista.size()];
               for (int x=0; x<lista.size(); x++)
                            a[x] = lista.get(x);
                          for (int x=0; x<lista.size(); x++)
                   for (x=1;x<lista.size();x++){
                            if (ciudadabuscar == a[0] && aerolinea == a[1])//tenia x=1
                                for (x=2;x<lista.size();x++)
                                { fileOut.printf("%d ",a[x]);
                                  ciudadabuscar= a[2];
                                  bandera = 1;}
                         lista.clear();
            if(bandera==0){
            fileOut.println("No hay destinos posibles por esta línea");
            fileOut.close();
            }catch(FileNotFoundException ex){}catch(IOException ex){}
    }

    #1 Solution is the same as i am working but...if i found AND another pair needs tobe searched...i dont know how to start again with step 1...
    i onli continues reading..that is why i am never show
    2 5//i am reading the file looking for 2 and 5
    0 9 2 3 4
    1 2 3 9
    1 5 4 // I NEVER show the number 4....
    2 0 0 5 6
    2 5 1 9 // here i found them...and now i have to look in the file 1 5 and 9 5 (but 1 5 are before this..so i can never found them)
    4 6 1 5
    4 9 1 8
    9 1 4 8
    9 5 0 // here i found 9 5
    Correct OutTxt: 1 9 4 0
    My OutTxt: 1 9 0...Never show the number 4, because i dont know how to start again...
    thank u
    Edited by: Ing_Balderas on Dec 11, 2009 2:25 PM

  • Help with java (2 simple classes)

    would anyone be able to help me with some questions about two very short java classes?
    i have come up with some answers of my own, but yeah, i'm not sure how correct my answers are....
    the 4 questions are:
    1. The data attributes m, n and grid in the HeatGrid class are declared private, and methods
    such as gridHeight(), gridWidth() and copyGrid() are provided to extract their value. Why
    is the better class design than simply declaring those attributes as public?
    My answer: So other classes accessing them cannot modify those data atributes, i am not sure why this is better class design.
    2. Why must the (global) constants in HeatSim.java be declared static ?
    My Answer: because HeatSim is what you run first and so you don't create a HeatSim object, you just access its methods, thus the need to make them static.
    3. Assuming HeatGrid has been fully implemented, during the execution of the statement
    HeatGrid = new HeatGrid(inGridFile), how many objects of HeatGrid, double [][] and
    Scanner are created?
    My Answer: 1 HeatGrid object, 1 doulbe[][] object and 1 scanner object
    Which of these objects must still exist after the statement completes execution?
    4. For each of the classes HeatSim and HeatGrid, identify the client and supplier classes
    (including library classes).
    My Answer: So far this is what i have done. for the HeatSim class, i said that the supplier classea are:
    double
    int
    boolean
    String
    Math Class
    viewgrid class
    array
    and the clients for the HeatSim class are:
    HeatGrid class
    if anyone can help me i will but up the VERY short code to these two classes. I am really stuck and any help woould be greatly appriciated! :)
    Lots o love
    Sarah

    ok here is the code (i don't have my compelted copy on me but this will do for the moment).....
    import java.lang.Integer;
    import java.lang.Double;
    import java.text.DecimalFormat;
    public class HeatSim {
        final static boolean ENABLE_VIEW = true; // if true, create GUI to view grid
        final static double DEFAULT_THR = 1.0e-02;
        final static int DEFAULT_PAUSE = 100; // pause between each update of window in ms
        final static int DISPLAY_WIDTH = 7;   // width to print each grid value
        final static int MAX_MN_DISPLAY = 10; // maximum grid size to be displayed
        public static void main(String[] args) {
            // initialize program `parameters' according to the command line,
            // entering `default' values if none were given
            String inGridFile = (args.length < 1)? "": args[0];
            int nIter = (args.length < 2)? 1: Integer.parseInt(args[1]);
            double Thr = (args.length < 3)? DEFAULT_THR: Double.parseDouble(args[2]);
            String dumpFile = (args.length < 4)? "": args[3];
         DecimalFormat residFormat = new DecimalFormat("0.00E0");
            ViewGrid view = null;
            System.out.println("HeatFlow simulation program");
            if (inGridFile.equals("")) {
                System.out.println("Error: an empty grid file name was entered");
                return;
            // create HeatGrid object
            HeatGrid heatGrid = new HeatGrid(inGridFile);
            int m = heatGrid.gridHeight();
            int n = heatGrid.gridWidth();
            if (m <= MAX_MN_DISPLAY  && n <= MAX_MN_DISPLAY) {
                System.out.println("\nGrid at time 0:" );
                heatGrid.display(DISPLAY_WIDTH);
            if (ENABLE_VIEW) {
                // create a ViewGrid WINDOW object to view the grid
                view = new ViewGrid(m+2, n+2, DEFAULT_PAUSE);
                view.display(heatGrid.time(), 0.0, heatGrid.copyGrid());
            while (heatGrid.time() != nIter && heatGrid.residual() > Thr) {
                heatGrid.iterate();
                if (m <= MAX_MN_DISPLAY  && n <= MAX_MN_DISPLAY) {
                    System.out.println("Grid at time " + heatGrid.time() +
                                    " has residual " +
                         residFormat.format(heatGrid.residual()));
                    heatGrid.display(DISPLAY_WIDTH);
                if (ENABLE_VIEW) {
                     view.display(heatGrid.time(), heatGrid.residual(),
                                  heatGrid.copyGrid());
            } //while(...)
            if (ENABLE_VIEW) {
                view.finalize();
            if (!dumpFile.equals("")) {
             heatGrid.dumpGrid(dumpFile);
            System.out.println("\nHeat Flow simulation of (" + m + "+2)x(" + n +
                               "+2) grid ends at time " +  heatGrid.time() +
                               " with residual " +
                      residFormat.format(heatGrid.residual()));
        } //mainProgram()
    } //HeatSim
    import java.util.Scanner;
    import java.io.*;
    import java.text.DecimalFormat;
    public class HeatGrid {
        private int m, n;
        private double[][] grid;     // m+2 x n+2 array representing a grid
        private int t;               // the time the grid has been evolved
        private double resid;        // residual left from the last timestep
        // initializes m, n and grid according to the information in the grid file
        // of name gridFileN; sets t to 0, and resid to Double.MAX_VALUE
        public HeatGrid(String gridFileN) {
        } //HeatGrid()
        // returns the value of m
        public int gridHeight() {
            return 0;         // [ replace with an appropriate value ]
        } //gridHeight()
        // returns the value of n
        public int gridWidth() {
            return 0;         // [ replace with an appropriate value ] =
        } //gridWidth()
        // returns the value of t
        public int time() {
            return 0;         // [ replace with an appropriate value ]
        } //time()
        // returns the value of the residual from the previous timestep
        public double residual() {
            return 0;         // [ replace with an appropriate value ]
        } //residual()
        // returns a copy of the grid
        public double[][] copyGrid() {
            return null;         // [ replace with an appropriate value ]
        } //copyGrid
        // precondition: all elements of grid can be printed to 1 decimal place
        // using width characters.
        // prints the m+2 x n+2 grid by rows, rows in descending order.
        // All values are printed to 1 decimal place, and are right-justified
        // in a text field of width characters.
        // Note: this method is for debugging; hence right-justification is useful
        public void display(int width) {
        } //display()
        // advance the simulation a single timestep
        public void iterate() {
         } //iterate()
        // prints the m+2 x n+2 grid by rows, rows in ascending order.
        // All values are printed to 2 decimal places, with at least one space
        // between them.
        // Note: this method is intended for result checking by a computer program;
        // thus justification is not important.
        public void dumpGrid(String outGridFileN) {
        } //dumpGrid

  • What is going on with Java? How do I disable if needed?

    What is going on with Java. Should I be concerned? How do I disable Java on my Mac if needed?

    Don't believe anyone who says that Macs are 100% secure and malware free. There have been several notable instances where after hearing this many people have found themselves in the midst of a Mac malware outbreak (MacDefender, DNSChanger, and Flashback, just to name a few).
    These attacks have been rare, and with "many people" being around 1 percent of all Mac users, for now this has been far of an issue than on other platforms, but security issues do exist for Macs.
    Whether or not this warrants the use of special security software is up to you.
    My recommendation is to keep a low-key and free malware scanner on your system, such as iAntivirus, ClamXav, or Sophos Home edition that can be configured to only run on-demand, and then should you feel the need use it to run a scan of your system every now and then. You can also use a reverse firewall like Little Snitch to monitor all outbound connections, which was key for many Mac users who found evidence of the Flashback malware on their systems when that outbreak occurred (just see here for the thread where many detected the suspect behavior: https://discussions.apple.com/thread/3844172).
    Since malware is still quite rare on Mac systems, it is debatable as to whether or not security software is necessary, but my stance is if configured as I described then there is very minimal chance it will adversely affect the system. I've configured numerous Macs with anti-malware utilities and have not seen any problems with them, so for the most part there should be neglegable impact (if any). Keep in mind some security tools are more intrusive than others, and include a number of scanning routines that are enabled by default, so each one has its own approaches that will need to be considered. The ones I mentioned here are very light-weight.
    The thing that will keep your system safest is (besides "common sense" safe computing practices) to use plugin managers and ad-blockers to prevent Java, Flash, and other plug-ins and scripts from launching automatically.

  • Static class containing scanner throws java.util.NoSuchElementException

    I use the scanner class pretty often in my coding and recently i have been trying to create a static method i can put in an external class to do the scanning for me and trap any errors.
    I seem to be able to create the class successfully but i have a slight problem in that i cannot use the method twice in the same program without having it throw a java.util.NoSuchElementException
    If anyone could figure out what error i have made and suggest a way to fix it i would be very grateful
    code is as follows:
    Scan.java:
    // name information removed for privacy
      // class info removed for privacy
      Assignment: 4.3,
      File Name: /ASSIGNMENTS/ASSIGNMENT_4/Part3/Scan.java
    import java.util.Scanner;
    public class Scan
      public static double nextDouble (String prompt)
        // variable to hold the result
        double result = 0.0;
        // variable to determine if input was ok
        Boolean inputOK = false;
        // do-while loop to get some input
        do
          // print the prompt. what do you want to ask for?
          System.out.print ( prompt );
          // Try to scan and capture the input and catch the exception
          try
            // create the scanner object
            Scanner scan = new Scanner (System.in);
            // parse the input`
            result = scan.nextDouble();
            // if we reach this step then good. we got good input let's exit the loop
            inputOK = true;
            // close the scanner
            scan.close();
          // oops we got an error!
          catch (java.util.InputMismatchException e)
            // inform the user of the error
            System.out.println ("That is not a number! Try again. \n");
            // input was not ok so we can't exit the loop yet
            inputOK = false;
        // keep looping as long as inputOK is false
        } while (!inputOK);
        // return out result
        return result;
    }Mathematics.java:
    // name information removed for privacy
    // class information removed for privacy
    * Assignment: 4.3
    * File Name: ASSIGNMENTS/ASSIGNMENT_4/Part3/Mathematics.java
    // Import Scanner class
    import java.util.Scanner;
    //Class Body
    public class Mathematics{
    // Main method. AUTO EXECUTE
      public static void main(String[] args)
    // additional variable declarations removed for brevity
        // Create double precision floating point variables
          double  coeff4 = 0.0, coeff3 = 0.0, coeff2 = 0.0, coeff1 = 0.0, cons = 0.0;
        coeff4 = Scan.nextDouble("Enter the coefficient of x^4 (0.0 if none): ");
        coeff3 = Scan.nextDouble("Enter the coefficient of x^3 (0.0 if none): ");
        coeff2 = Scan.nextDouble("Enter the coefficient of x^2 (0.0 if none): ");
        coeff1 = Scan.nextDouble("Enter the coefficient of x (0.0 if none): ");
        cons = Scan.nextDouble("Enter the constant (0.0 if none): ");
    // do fun things with input (code removed for brevity)
    }output looks like this
    dragonfly@Home:~/ASSIGNMENTS/ASSIGNMENT_4/Part3$ java Mathematics
    Enter the coefficient of x^4 (0.0 if none): hello boys!
    That is not a number! Try again.
    Enter the coefficient of x^4 (0.0 if none): 1.2.
    That is not a number! Try again.
    Enter the coefficient of x^4 (0.0 if none): d
    That is not a number! Try again.
    Enter the coefficient of x^4 (0.0 if none): 1
    Enter the coefficient of x^3 (0.0 if none): Exception in thread "main" java.util.NoSuchElementException
            at java.util.Scanner.throwFor(Scanner.java:817)
            at java.util.Scanner.next(Scanner.java:1431)
            at java.util.Scanner.nextDouble(Scanner.java:2335)
            at Scan.nextDouble(Scan.java:23)
            at Mathematics.main(Mathematics.java:34)
    dragonfly@Home:~/ASSIGNMENTS/ASSIGNMENT_4/Part3$

    Through trial and error i seem to have hit upon a solution to my problem. i am stress testing it now but i think it will hold up admirably
    import java.util.Scanner;
    public class Scan
    // scan in a double without a prompt. catch and handle any exceptions
    public static double nextDouble ()
        return nextDouble("");
    // give the user a prompt and then scan in a double. catch and handle any exceptions
    public static double nextDouble (String prompt)
        // variable to hold the result
        double result = 0.0;
        // variable to determine if input was ok
        boolean inputOK = false;
        // do-while loop to get some input
        do
          // print the prompt. what do you want to ask for?
          System.out.print ( prompt );
          // Try to scan and capture the input and catch the exception
          try
          // Call private method to do the actual scanning
            result = scanDouble();
            // if we reach this step then good. we got good input let's exit the loop
            inputOK = true;
          // oops we got an error!
          catch (java.util.InputMismatchException e)
            // inform the user of the error
            System.out.println ("That is not a number! Try again. \n");
            // input was not ok so we can't exit the loop yet
            inputOK = false;
        // keep looping as long as inputOK is false
        } while (!inputOK);
        // return out result
        return result;
    // Helper method to nextDouble
      private static double scanDouble()
      // hold the result
        double result=0.0;
      // create the scanner object
        Scanner scan = new Scanner (System.in);
      // parse the input
          // If input was not of proper type this call will fail with :
          // java.util.InputMismatchException
          // and return control to calling method
        result = scan.nextDouble();
      // Return our findings
        return result  ;
    }

  • Using Scanner within Java Program

    How do i call a scanner (scan documents) from a java application and collect the output from scanner in java application.

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • Scanner And Java

    How I can scan image from Scanner device
    There is any api in java do that
    or any external package do that
    or any way to do...
    thanks

    I've used JMF to do image capture. But your scanner must have some kind of external API or a way to communicate with Java.

  • XSLT Mapping with Java class not working in Integration Repository

    Hi,
    I have an XSLT mapping program with Java enhancement and I was able to successfully tested it in Stylus Studio. However, when I imported the Java class and the xslt program in Enterprise Service Builder and tested it, my program does not compile.
    Here is the error message: "Transformer Configuration Exception occurred when loading XSLT mapping_temp.xsl; details: Could not compile stylesheet".
    My java program is in a zip file containing SOAPHeaderHandler.java and SOAPHeaderhandler.class. My Java has a package com.nga.xslt.
    Here is the declaration of my Java class in the XSLT: xmlns:javamap="java:com.nga.xslt.SOAPHeaderHandler"
    It seems that it could not read the java class. Can you please advice what is wrong?

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Problem with java installation on Linux

    HI ,
    I am trying to install jdk on Linux..I am new to java and Linux both. I am trying to download the file for the linux installation onto my home PC(windows XP) and then ftp it to my Linux machine. I need to do this because I have a remote login to my Linux machine( a server at school). However when I try to download file my IE jsut crashes. I can see the page for accepting the Agreement but when I click on Accept the next page just stops responding.
    Could someone explain why this is happening.
    thanks,
    G.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • Problem with Java and Windows (Mainly Vista and UAC)

    Hi all,
    I am having a problem with a program that I've devoloped. The program itself is packaged as a jar and I plan to deploy it across multiple platforms eventually however right now i am only concerned about windows based systems. I have made an installer for a windows baised systems using NSIS to install the software files. I made the installer as I need several java packages to be installed so the program would work (JAI, J3D, JAI ImageIO) and I also require the program to have fileassociations on windows.
    I know that this is not what java is about, however the majority of the users will be on windows baised systems so I've decided that OS specific installers is the best option.
    During the process I have noticed that there are several key problem with java for this type of application!
    The first issue that I have come across is getting file associations to work on java. As a .jar is not an excutable it is not possible to directly associate a filetype with it in java so to overcome this I currently run the program from a .bat files and also the program requires large memory so this also allows me to run the program with -xmx. The batch file that I use is :
    <code>
    cd PATH TO PROGRAM
    start javaw -Dsun.java2d.noddraw=true -Xmn100M -Xms500M -Xmx1000M -jar "PATH TO PROGRAM\program.jar" %1 -vram 134217728
    pause;
    </code>
    Ok so all this appears to work fine and allows windows to have file associations and start the program and thats all works perfectly but this is a non-ideal solution. Has anyone got any advice on improving this?
    The next problem that I have appears to be a problem with Vista and UAC (user access control). When a user installs the program and installs the program into the program files directory I found that the program did not work and kept saying that I did not have access to the files in the current directory. This is a problem as I read and write settings files during program execution.
    On a Vista system UAC prevents file write operations into the Program Files directory unless the program has requested elevated status even if the user is a full administrator. The probem is that there appears to be no real way to achieve this under java that I'm aware of...
    Has anyone else had this probem and has a suitable solution?
    Any advice on these issues would realy be appricated.
    Regards
    Joey

    Ok so i've kinda found a solution, its not ideal but its very good. I found this program called Elevate
    A link to the site I got it was
    http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx
    This program allows you start java with a UAC dialog for high access using
    Elevate java -jar myjar.jar
    This then allows you to have full access using java... I guess it could be dangerous but it does the job.

  • Problem with java and flex web service

    Hi,
    I have a basic web service written in java using jax ws 2.1
    ri. I need to call it from Flex using the WebService class
    Annotations for the java web method :
    @WebMethod
    public void Login(
    @WebParam(name="server") String serverURL,
    @WebParam(name=AUTHENTICATE_HEADER,header=true,mode=WebParam.Mode.INOUTHolder<Authenticate Header>
    authHeader)
    When I try and call the service from Flex , it can't find the
    login method and attempts to call it fail. If I set the web service
    to RPC based using @SOAPBinding , the method is found but then
    there are issues with the authentication header.
    What do I need to do to get flex web services communicating
    succesfully with java ?
    Are there are any known compatibility issues ? Or guidelines
    for going about this ?
    Any help would be appreciated

    well Shay,
    i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
    I have included all the files java and the compiled classes, but I do not have files jar.
    But don't works: if i create only one java class with all code inside then it works fine!!
    Daniele

  • Problem with java and yahoo games

    hello everyone,
    i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please, i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please

    So here is what comes to pass.
    Recall this started as a Lion Safari/5+ environment that SU took to version 6.
    Two weeks ago I just updated Flash Player. Today I fire up Java Preferences and I am told that I need to download Java. Did so, intentionally hit the "factory reset" button and then installed the Flash Player from teh Adobe site. The most recent install suggests automatic update but I choose "ask first."
    Restart Safari and we seem to be in order
    Thanks

  • Problem with java and pogo games

    i use mozilla and now with the problems with java and hackers cannot play my pogo games,what can i do? i disabled my java i tried java 6 doesnt work or is not safe,what is a safe way to play games on pogo that use java?

    Oracle has released a Java 7 Update 11 to address security vulnerabilities and you should update to that version.
    *https://support.mozilla.org/kb/how-to-use-java-if-its-been-blocked
    See also:
    *http://kb.mozillazine.org/Java#Windows_installation_issues
    You can find the latest Java version on the Oracle website.
    See Java Platform > Java SE 7U11 and Java 6U38 (Download JRE)
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html

Maybe you are looking for

  • Need help with a For loop that uses a Break statement

    I need to create a for loop which counts down from 100-50 and divides the number being counted down by a counter. Can anyone help me? public class Break public static void main ( String args []) (;      int total = 0      int counter = 0      for { (

  • Problems connecting smart tv to hub.

    Hi all, Im trying to connect a new smart tv useing a the tvs wireless adaptor to my hub. Then i do a connection test on the tv, its passes on 'wireless network connection' but the tv stops on 'check acquired IP address' due to not finding it. Any ide

  • Activity report?

    Hi all, is there any kind of activity report available in SAP-PS, that you can edit and print for a customer? (e.g. via a smartform) Thanks

  • Why is the purge command running every hour, and freezing my system?

    I noticed over the past several days that my mac pro will freeze for several seconds (clock stops, mouse/keyboard don't work. completely frozen) every hour, to the minute. I've tracked it down to the "purge" command, which is causing the problem.  Bu

  • Adobe Air starting up error

    We use a motormanagement software for Yachts (N2Kview from Maretron ) on our computer. This software is using Adobe Air. When we start up the computer we will get an Adobe Air error message in Dutch on the desktop. Translation: "The installation of t