Java program to embed on a chip

How is it done? Any hardware / software needed? Tutorials and articles about that? Thanks in advande

http://www.ibutton.com/TINI/index.html
http://www.ajile.com/products.htm

Similar Messages

  • Java program not updating in correct sequence in applet

    Greetings,
    I have a java program with interactive graphic components. After completely writing the program, I create two shells ( or handle): an application shell with JFrame and an applet shell with JApplet. The application version of the program works fine. But the applet version skips some (middle) steps in the painting process when responding to user inputs.
    Does anyone have any ideas as to what's going on?
    I am not able to embed code snippets because my Internet has not being working and am finger typing this on my cellphone.
    Thanks for any help.

    My cable person won't come before Monday so I am struggling for now. Thanks for the replies, though.
    More info:
    1) both shells are extremely basic. They both simply add the drawing panel like so:
    DrawingPane drawingPanel = new DrawingPanel();
    add(drawingPanel);//frame.add for application
    the application uses statc main; the applet uses init. Nothing more.
    2) the program paints the hands and fingers of a stick figure red or green dependring on which foot of the figure is clicked.
    3) the application version works completely
    4) the applet version updates the right hand the first time; but not on subsequent clicks. More mysteriously, although it skips the hand, it still go on to update the fingers.
    5) No I don't know about event threads yet.
    Thanks.

  • How to attach java program with CRM OD

    Hi
    i have a java program that i want to attach with CRM OD user interface so that i can run it on the press of a button or through any other way. Please suggest me some way to do this.

    Hi,
    The web applet and web tabs features allow you to embed content within CRM On Demand. You can develop an interface to your code (i.e. HTML page containing a button that will invoke your java application) which can appear within the CRMOD UI using these features.
    Thanks,
    Sean

  • Open Windows Media Player through Java program

    I need to open a video and some music in windows media player... but I don't know how....
    Can anybody help???

    I hav implemented windows media player using JSP....i am sending code
    However for java program i do not know
    <html>
    </body>
    <!-- begin embedded WindowsMedia file... -->
          <table border='0' cellpadding='0' align="left">
          <tr><td>
          <OBJECT id='mediaPlayer' width="320" height="285"
          classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
          codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
          standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
          <param name='fileName' value="c:\abc.wmv">
          <param name='animationatStart' value='true'>
          <param name='transparentatStart' value='true'>
          <param name='autoStart' value="true">
          <param name='showControls' value="true">
          <param name='loop' value="true">
          <EMBED type='application/x-mplayer2'
            pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
            id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
            bgcolor='darkblue' showcontrols="true" showtracker='-1'
            showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
            src="c:\abc.wmv" autostart="true" designtimesp='5311' loop="true">
          </EMBED>
          </OBJECT>
          </td></tr>
          <!-- ...end embedded WindowsMedia file -->
        <!-- begin link to launch external media player... -->
            <tr><td align='center'>
            <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
            <!-- ...end link to launch external media player... -->
            </td></tr>
          </table>
    </body>
    </html>

  • Call Java program in APEX

    Hi, I am an APEX newbie... I need to call a Java program (.JAR file) from a PL/SQL script inside an APEX application. My question is, does the JAR file need to be in a particular place (and if so, what's the best way to get it there)?
    - somewhere in the APEX database?
    - somewhere in the production database (9i)?
    - could it be called if it resides on a shared network drive?
    Any help would be appreciated... everything I've found thus far tells me to use the loadjava tool to get it onto the prod. database, but I want to make sure that there isn't an easier option as I've had some trouble with that.
    Thanks in advance...
    Kenny

    Hi,
    If you want to call the method of the java class that is stored in the jar you have to make this jar file accessible to the client.
    1/ The jar file can be stored in the database by using loadjava utility
    E.g. loadjava -u scott/tiger -resolve yourjavapackage.jar
    More details on http://www.oracleutilities.com/OSUtil/loadjava.html
    and http://www.csee.umbc.edu/help/oracle8/java.815/a64683/tools1.htm
    1.1/ Once the jar file is in the database you can access it's object methods by defining the pl/sql function that is able to call particular java method
    E.g.
    FUNCTION jCreateDir (dir varchar2, checkExistsOnly number, grantRootDir varchar2)
    RETURN NUMBER as LANGUAGE java
    NAME 'mypkg.Utils.createDirectory(java.lang.String, int, java.lang.String) return int';
    Above function then calls the java method defined in the class included in the jar file (jar file is just an archive of the java classes - to bundle several classes, images... in one file)
    The example contents of the java class
    package mypkg;
    import java.io.File;
    public class Utils {
    public static int createDirectory(String dir, int checkExistsOnly, String grantScriptDir)
    ///some code here
    1.3/ So if you know what method to call, what are the input parameters and return value you can create your calling procedure/function in pl/sql
    I am not very sure if you can load jar files containing the classes that render some user interface items(buttons,panels etc - items from awt or swing package) so basicaly load just the code that performs actions like computation/ xml transformation/ file I/O so anything that does not require GUI items.
    2/ If your jar file contains the objects that display some user interface control or you need to call the java from the javascript then you need to embed your jar file in the html code by using <OBJECT > or <APPLET> tag
    Re: Open program in FF
    Rado

  • Java program in Jsp

    Dear Friends,
    I am new to jsp
    Can embed java program in my jsp page ?
    my java program contains outputstream, printwriter etc.,
    can i put those in jsp program ?
    please help me.
    Thanks in advance
    yours
    rajesh

    Of course you can. That's the whole point of JSP... Hence the name "Java Server Page".
    JSP is designed to allow Java to interact with your page. You can instantiate classes and do anything you could normally do from within a non-jsp java app.
    Michael

  • Evaluation version of Java programs

    Hi everybody.
    I have created my own Java program and now I need to create an evaluation copy of this program, so that users can try it for 30 days by example.
    I know there are programs that do this, but these programs produce an exe (grrrrrr), but I want Java evaluation copies.
    Any suggestion?

    Just a thought....haven't ever tried it, but this has certainly crossed my mind several times when developing application -- and for the same reasons you're needing a policing mechanism.
    Perhaps you could use digital certificates with an expiration date. If you obtain a signer from a CA and then produce your own certificates with an expiration date you can protect your code.
    When initializing you can check the expiration date of the certificate. You'll probably have to serialize and encrypt some of the data (i.e. JCE) so people can't simply binary edit everything.
    Many sites demand that users register themselves for download. Taking this approach you can actually generate and package the digital certificate that moment via Java, giving the user, say 60 days, to use the application. This way, each user gets a full 60 days, but you simply generated a certificate signed by your root. This way, nobody can forge the certificate since you have the private key. You'll probably need to embed and encrypt the certificate somewhere so that it's not replaceable. Even if someone did replace it, they'd have to replace it with one from your signer.
    There certainly would need to be some more thought behind this, but my first impression is that it's possible. If you're interested I can try explaining the concept in more detail as it relates to trust/key stores with JSSE.

  • Desperately need some help with client-server java programming

    Hi all,
    I'm new to client server java programming. I would like to work on servlets and apache tomcat. I installed the apache tomcat v 5.5 into my machine and i have sun java 6 also. I created a java applet class to be as a client and embed it into an html index file, like this:
    <applet code="EchoApplet.class" width="300" height="300"></applet>However, when I try to run the html file on the localhost, it print this error: classNotFoundException, couldn't load "EchoApplet.class" class. On the other hand, when I open the index file on applet viewer or by right clicking, open with firefox version 3, it works.
    I thought that the problem is with firefox, but after running the applet through the directory not the server, i found that the problem is not any more with firefox.
    Can anyone help me to solve this problem. I'm working on it for 5 days now and nothing on the net helped me. I tried a lot of solutions.
    Any help?

    arun,
    If the browser is going to execute $myApplet, first it must get the $myApplet.class from the server, right?
    So it follows that:
    1. $myApplet.class must be acessible to server, and
    2. the server must know exactly where to find $myApplet.class
    So, the simplest solution is to is put the $myApplet.class in the same directory as the HTML file which uses it... then your applet tag is simple:
      <applet height="200" width="400" code="$myApplet.class" ></applet>* The height & width attributes are required
    * Note the +.class+ is required in the code attribute (a common mistake).
    * This works uniformly (AFAIK) accross all java-enabled browsers.
    * There are incompatibilities with the codebase attribute. Poo!
    Cheers. Keith.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • Running a java program

    This shows how dumb i am.
    I have a java program all wrote. How can i run it without using the compiler? Can i have a .exe file or something that I just have to click on to run??
    Thanks again
    Agdude

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\awaguespack>cd jbproject\untitled1\classes\untitled1
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>java
    form
    Exception in thread "main" java.lang.NoClassDefFoundError: form (wrong name: unt
    itled1/form)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>dir
    Volume in drive C has no label.
    Volume Serial Number is C065-81CA
    Directory of C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\
    untitled1
    07/24/2003 02:21 PM <DIR> .
    07/24/2003 02:21 PM <DIR> ..
    07/24/2003 02:21 PM 7,655 form.class
    1 File(s) 7,655 bytes
    2 Dir(s) 36,031,016,960 bytes free
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>echo
    %classpath%
    %classpath%
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>

  • Running a java program at "Start Up"

    Besides running an html file with an applet in it. Are there any simple ways to launch a java program every time the computer is turned on.
    I am not asking for specific directions, but rather just an idea, and i will go find my own guide.

    Well two ideas (if ur on windows) u could try are -
    one, if you had a class file you could simply create a
    batch file on windows that says java <class> and then
    put that batch file in your startup so that the class
    is run at startup or else you could think of modifying
    the registry keys on windows to run this class at
    startup - whichever works for you.Or you could just jar the program up, adding a Main-Class indicator in the manifest, and then add a shortcut to the jar to the startup folder, as someone else stated. Theres little need to go messing around with DOS batch in modern windows.

  • Running a java program from an icon

    I want to run my program from an icon on my desktop. I have a .bat file that I've built a shortcut to and it works.MY GUI program does display and run when I click on the icon. The problem is that the DOS window also shows up behind my GUI.
    Is there anyway to prevent the DOS window from showing? Or is there another way to run a Java program without resorting to a DOS command line or running it through FORTE or another IDD?

    Chris's solution worked well, with one small problem. Once my GUI starts, it takes up the whole screen. Normally when I run it, it appears as a small window.
    not a big problem, I can reduce it easily after it starts. But does anyone know a way to make it come up in the reduced size it norally comes up in when I run it from my IDE?

  • Running a java program via a batch file

    I am unable to run a java program from a batch file that I created.
    spiderpackage.EntryPoint is a class file which I am trying to run with a -v option to output something.What should I do to get the output?
    echo ^<html^>^<body^>
    echo hello^<br^>
    call java spiderpackage.EntryPoint -v
    echo ^</body^>^</html^>

    This has nothing to do with java programming. Have a look at the windows help for the call command.
    The echo <html> stuff doesn't make sense. What's it for?
    The command in you batch file should be:
    java -cp . spiderpackage.EntryPoint -v
    assuming that java is in the system path, and the EntryPoint.class is in a directory called spiderpackage which is a subdirectory of your current working directory

  • Running a Java program at startup in Linux

    Hello
    How do I run a Java program at startup in Linux? I know in Windows I can put a .bat file in C:\Windows\Start Menu\Programs\StartUp\ directory, but in Linux I have no idea how it is done.
    Thank you,
    Mihai

    This is really a Linux question, not Java.
    And then it depends on the version of Linux you are using.
    Maybe this will help, otherwise you should try on a forum for your version of Linux.

Maybe you are looking for

  • Default remote key check box

    Hi , Does anyone know the significance of defalut remote key mapping check box that appears during Edit Key mapping ? Let me know if it can be used in any way. Regards Yogesh

  • Help! I upgraded to Mavericks and now Aperture won't open.

    It says "you can't open the application "Aperture" because it is not supported on this type of Mac.  I would never have upgraded if I had known I would lose Aperture. And I don't want to pay to upgrade Aperture.

  • Install SAP NetWeaver ABAP Trial 7.02 Win 64-bit  problems :(

    Hello Community, since 4 Days i try to install this Version of SAP NetWeaver ABAP Trial 7.02 Win 64 Version SP 6, but it fails every time, i'm at end of my power now , is there any one who can help me with this? Or gibe me a direkt link to download t

  • How to converting WMV files?

    How to converting WMV files from PC to iPod playable files? thanks for all your help

  • Flashcard/Slideshow app?

    I have an original iPhone. I've been looking for an app to do something fairly simple, which is to make flash cards for learning a language. For example, first card says "gracias," (in pretty large letters), then you flick your finger to go to the an