Just started to program in java

Hi,
beginning to learn Java and running into an issue that hoping more experienced ppl can shed some light on:
var payload = payload = Packages.java.lang.Integer.valueOf(apayload, 16).intValue();
apayload is coming in as "18a3f1c6dac211ddb98c5bfb97000000"
I get the following error msg:
Javascript error:
Wrapped java.lang.NumberFormatException: For input string: "18a3f1c6dac211ddb98c5bfb97000000"
It looks like a formatting issue but not sure ...
thx!

32,752,720,102,372,163,850,442,129,803,212,488,704
import java.math.BigInteger;
class Example {
    public static void main(String[] args) {
        String s = "18a3f1c6dac211ddb98c5bfb97000000";
        System.out.format("%,d%n", new BigInteger(s, 16));
}

Similar Messages

  • Starting Cobol program from JAVA

    Hi
    For a school project we have to do a part Java & a part cobol
    The COBOL programmes are all to read CSV files into an MS access DB
    Well as a challenge we have to make a buton in the GUI of our JAVA program that starts 1 of these COBOL programes when clicked
    The java program was written/modelled in Together Architect 2006 (eclipse plugin, sry the school forces us to use it) and the COBOL were/are written in percobol from legacyJ
    txn for any help

    i've done that but i seem to not getting the hang of
    it
    from what i get is it something like thhis
    runetime.getRuntime().exec("myCobolprog.cbl");
    yet it doesnt seem to work
    or i just get errors in the IORead this first:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Photshop CS6 just started saying  program not licensed.

    I have had Photoshop CS6 for a little over a year.  In the middle of using it today, it stop opening anything and gives me the message that my product is not licensed, reinstall or contact Adobe.
    I downloaded the program and do not have a CD to reinstall. My attempt to contact Adobe brought me here.
    Any ideas how to fix this problem?

    I have had no end of problems with CS6 requesting the licensing number.
    Adobe have solved the problem several times but it just keeps re-occuring.
    Once again I am getting the request for entry of the license number. Will this problem ever be resolved completely.
    I feel completely powerless in this situation. Here I am with a piece of software that was very obviously NOT FIT FOR PURPOSE but unable to talk to the sales staff or anyone with any power in ADOBE.
    I have now written again to the head office in UK and Ireland but I do not expect to recieve a reply because that is how softwarte companies treat you. If this was any other market we would get some satisfaction.
    It is a real pity as CS6 is very good - However I just use CS5 now even though I paid £200 for the upgrade. How do I get satisfaction.
    ADOBE - you now owe me for all the time and frustration.
    Pity about the lads in India - they resolve the problem for a while then it returns when something I do in Photoshop occurs to start the request for license number all over again.
    Peter Neate

  • Very n00b error....just started programming and need help?!?!

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration: <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new Greeter();
    ^
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new Greeter();
    ^
    2 errors
    Process completed.
    ok i get this error message alot....well actually just about everytime..
    I got it working just once using texteditor but have no clue how i did it that time...now nomatter what i try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still compile with this error..
    if anybody with patience could tell me what i need to do
    would i have to configure java some more with variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to
    compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration:
    <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5:
    cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    s\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find
    symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    get this error message alot....well actually just
    about everytime..
    I got it working just once using texteditor but have
    no clue how i did it that time...now nomatter what i
    try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still
    compile with this error..
    if anybody with patience could tell me what i need to
    do
    would i have to configure java some more with
    variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance
    Well here is all that goes
    As you said you were pretty new
    I suspect the following error done by most of the novice programmers in JAVA
    Where is the Greeter class ??
    ok may be you must have defined it somewhere else
    Mostly the Java Compiler hasnt found out your Greeting class
    Try locating that " Greeter.java"
    or mention it in an other file located in the same folder as "Newprog.java"
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();

  • Just started java

    Hi i just started java and installed J2re-1_3_1_08-windows-i586-i
    I have an XP OS and tryed to type mij first little java program
    public class app
    public static voi main(String[] args)
    System.out.println(" Greats from Java!");
    now when i try to run this in xp bij c:\Java app i get mij ms-dos screen so fast that i can not read what it said.
    when i run it true cmd and then java app i get an error : Exception in Thread "main" java.lang.noclassdeeffounderror: app
    What am i doing wrong

    but that line of setclass do i have to put it in the
    java program or somewhere else. i did read in the book
    that i had to go to systems of windows xp and set a
    path but the book did not tell me what path i had to
    setActually the path your book was talking about is the windows system path, which is a system environment variable created when you install the os.
    You add to this variable the path to java.exe, javac.exe etc...
    for example if your sdk directory is C:\j2sdk1.4.2 you add the /bin sub-directory to the path by executing (in a dos window) :
    set path = %path%;C:\j2sdk1.4.2\bin
    With this you can type directly java, javac etc... on the command line without the os complaining that it doesn't know these commands.
    The classpath is something specific to java that has relationship to the system path.

  • Starting a external program from java

    hi iam trying to start MySQL server from java, the command in dos is as follows C:\mysql\bin\mysql -u username -p ,then the user hits return and the user is prompted to enter a password. i have got as far as entering the the C:\mysql\bin\mysql -u username -p but dont know how get the prompt back to the java program i would be greatfull if anyone could tell me where iam not doing,heres my code so far
    try{
    Runtime r=null;
    r=r.getRuntime();
    Process p=r.exec("C:/mysql/bin/mysql -u mark_r -p");
    p.waitFor();}
    catch(Exception ex){System.out.print("Error");}}

    You should try using the getOutputStream() and getInputStream() methods for the Process object. Each returns either an inputStream or OutputStream object.
    You should be careful if the mySQL password is added to the command since anyone doing a 'ps' on the machine could see the password.

  • I am trying to download the iTunes 10.7 update so that i can update my ipod and just before the final part of the download starts the program stops and says, 'The installer enountered problems before iTunes could be configured'    What a i doing wrong?!

    I am trying to download the iTunes 10.7 so that i can update my ipod. Just before the final part f the download starts the program stops and says, 'The installer encountered problems before iTunes could be configured'
    What am I doing wrong?!

    I am trying to download the iTunes 10.7 so that i can update my ipod. Just before the final part f the download starts the program stops and says, 'The installer encountered problems before iTunes could be configured'
    What am I doing wrong?!

  • I*ve just installed PS CC but whwn I start the program it says somthing aboout PS CC has stopped to work

    I*ve just installed PS CC but whwn I start the program it says somthing aboout PS CC has stopped to work

    Nobody can tell you anything without proper system information and details like the crash logs from your Event Viewer.
    Mylenium

  • I just updated my itune on my PC and now it doesn't start.  There was no error in installing/upgrading the software but once I rebut the computer the icon appeared but it wouldn't start the program. Did I loose all my music and data?\

    I just updated my itune on my PC and now it doesn't start.  There was no error in installing/upgrading the software but once I rebut the computer the icon appeared but it wouldn't start the program. Did I loose all my music and data?  How can I fix the problem? Thanks

    Try this from MacFixIt as well:
    In the case of drive directory damage or problems with permissions, the solution is usually to use Apple's Disk Utility to repair the disk. Of course, you won't be able to perform this operation normally (simply launching the Disk Utility application, located in Applications/Utilities, and initiating a disk repair) if your system will not startup. So two options exist:
    * Insert your Mac OS X 10.4.x (Tiger) media (DVD or CD) and restart the computer while holding down the "C" key. Once the computer has booted from the installation disc, select "Utilities" from the menubar and open Disk Utility. Repair the disk, then quit Disk Utility and restart your system.
    * Alternatively, you can repair the disk while booted in single user mode if you do not have access to a retail Mac OS X 10.4.x (Tiger) DVD/CD. To startup in single user mode, hold down the "Command" and "S" keys simultaneously at startup. Once properly booted, type the command fsck at the prompt. Repeat these process until no errors appear.

  • Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks. Sven

    Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks.
    Sven

    Problem solved. Copied latest file of iTunes Library.itl from Previous iTunes Libraries and replaced it with the original in Music - iTunes-folder.

  • Hi, I just started a new movie and the program is running very slow. Is there a way to clean up my iMovie program so that it goes faster? Please help.

    Hi, I just started a new movie and the program is running very slow. Is there a way to clean up my iMovie program so that it goes faster? Please help.

    There is nothing you can do with iMovie program itself.  Slow response in usually due to a shortage of system resources (CPU, RAM and disk space).
    How much free disk space do you have on your boot drive and what is the capacity of the drive?
    You can check memory utilization while running iMovie using Activity Monitor (in Applications/Utilities).  What does the Memory tab show for Swap used?
    Are you running many other processor-intensive applications a the same time?
    If you have a lot of events and projects, it will help a bit to hide the ones you are not using by moving them from your iMovie Projects and iMovie Events folders into an enclosing folder so iMovie doesn't load them.
    Geoff.

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • Never programmed with Java

    Hello
    I have never programmed with Java, and dont know, what i can do, I use PHP, but, i am only a novice at it.
    I was wondering, is it possable to get data from a page, and put it into an image? if there is no data from the page, it will ask for the data to be added, and this will update every so often?
    Also, Most of you know about google maps, where you can search for something, well, can i do this same thing in java, have a map, not of the earth, but for a game, and make it easy to add different parts, so that we can search for it, and people can find it easy to look for what they are looking for?

    I think Google Maps is programmed in JavaScript using AJAX (short for Asynchronous JavaScript and XML) and is what as known as a web application. Google has released an API (still in beta) for working with Google Maps. The webpage for this API is http://www.google.com/apis/maps/. More about the development facilities Google provides can be found at http://code.google.com/.
    I've never read the source code to Google Maps before (a lot of which is available by just viewing the source code of the Google Maps webpage, which can be done by clicking, View > Source in Internet Explorer and View > Page Source in Mozilla Firefox), however I don't think it is a terribly complex application (this does not mean, however, that the source code is easy to read). I think the way it works is by requesting individual images as needed from the Google server and piecing them together on the client side (i.e. in the browser). Basically what you would need to do to use their existing code is to replace all requests made to the Google server with requests to a server of your own and have the server return the corresponding images. This might not be particularly easy to do.
    In my opinion, a better approach is just to write your own custom application (probably in Java) which simply mimics the behavior of Google maps, except with your own custom images. This way, you don't have to reverse engineer an entire web application before beginning to write one.
    Writing your own application for this purpose is not as difficult as it sounds, especially not in Java. Once understanding the basics, you will not be too far off from being able to write your application.
    Let's start with the most basic program (this program would be located in a file called Program.java):
    public class Program {
       public static void main(String[] args) {
    }This program simply starts, does nothing, and exits. I will explain this piece of code line by line, but first, I would like to gauge how much you already know to figure out how best to explain this. Have you used classes in PHP before?

  • Just started Livecycle yesterday. Need help with Javascripting

    I'm new to scripting in general, but have figured out enough to be dangerous in Acrobat. Unfortunately, Acrobat no longer fulfills the need I have for dynamic forms and I have started trying to figure out Livecycle. Is the scripting in Livecycle THAT different from Acrobat that I need to relearn the scripting I figured out in Acrobat? Below is an example. It is in a table where I am trying to determine height of instrument (HI) from the elevation (Ele) and the difference between back (BS) and fore sights (FS). Any help is greatly appreciated. Thanks!
    This is the script I used in Acrobat and it worked:
    if(this.getField("BSRow2").value) {
      var add = this.getField("BSRow2").value + this.getField("EleRow1").value
      this.getField("HIRow2").value = add;
    } else {
      var height = this.getField("HIRow1").value
      this.getField("HIRow2").value = height;
    This is the script I used in Livecycle and it doesn't
    if(this.getField(BS).value) {
      var add = this.getField(BS).value + this.getField(Row1.Ele).value
      this.getField(this).value = add;
    } else {
      var height = this.getField(Row1.HI).value
      this.getField(this).value = height;

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to
    compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration:
    <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5:
    cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    s\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find
    symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    get this error message alot....well actually just
    about everytime..
    I got it working just once using texteditor but have
    no clue how i did it that time...now nomatter what i
    try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still
    compile with this error..
    if anybody with patience could tell me what i need to
    do
    would i have to configure java some more with
    variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance
    Well here is all that goes
    As you said you were pretty new
    I suspect the following error done by most of the novice programmers in JAVA
    Where is the Greeter class ??
    ok may be you must have defined it somewhere else
    Mostly the Java Compiler hasnt found out your Greeting class
    Try locating that " Greeter.java"
    or mention it in an other file located in the same folder as "Newprog.java"
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();

  • TSR programming with java

    How can i write a simple TSR program in java (one that stays in ram and is loaded to ram at boot)?

    Haven't seen that acronym for YEARS! Anyway, if you want to start something automatically when Windows (not DOS) starts up, just make sure you can run it via a shortcut. Then put that shortcut into your Startup folder, the one you see when you click Start, Programs, Startup. You can't run any Java program before Windows starts because the java.exe program itself is a Windows executable.

Maybe you are looking for